I'm trying to ensure that a newly installed system service does not steal resources from other more important services.
To achieve this I have attempted to modify the ImagePath key within the app's Registry entry in services
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName\
My entry looks like this
"c:\windows\system32\cmd.exe"/c start "name" /belownormal "pathtoservice.exe" -c "configpath"
However this does not work, resulting in a short flash of a window (no readable error) when run from CMD, and when entered into ImagePath It simply results in an error saying the program didn't / can't respond to "start or control"
I'm assuming this is because I'm not setting a launch parameter so much as I am handing the first executable over as the application which is to be controlled and since CMD isn't a service nor is start a container for a service, this simply doesn't work
However I haven't been able to locate an alternative, any and all suggestions welcomed.