Use the SC command's Config option to modify the configuration of the MDEX Engine service.
Before attempting to modify the service configuration, make sure that you have Administrator rights.
After you create the MDEX Engine service with the SC Create command, you can use the SC Config command to modify the service configuration. Because both commands use the exact same set of parameters, any parameter that you set with SC Create can be modified with SC Config. The command is especially useful when you want to add or remove Dgraph flags from the current binpath setting.
sc [remoteServername] config Servicename Optionname= Optionvalue...where Servicename is the name of the existing MDEX Engine Windows service to be modified.
When using the SC Config command, you specify only the parameter settings that will be changed. Any parameter setting that is not specified will remain as-is in the service configuration. Note that to change the service description, you must use the SC Description command.
To modify the MDEX Engine Windows service:
[SC] ChangeServiceConfig SUCCESS