Use the SC command's Create option to create the MDEX Engine Windows service.
Before running this create-service procedure, make sure that you have Administrator rights.
When creating the service, you must specify the Dgraph --out flag as part of the SC Create command's binpath parameter. Failure to do so will result in the MDEX Engine not being able to start.
To create a Windows service for the MDEX Engine:
[SC] OpenSCManager FAILED 5: Access is denied.
If you do receive this error, verify that you are a member of the Administrators group on the machine (for example, by using the Microsoft Management Console). If you do have Administrator rights, check that you are opening the Command Prompt with the Run as administrator option.
After the service has been created, you can use the SC Config command to change any parameter set by the SC Create command.