I've got 3
.bat files in a directory. Two must be run with administrator privileges. One must be run without (full disclosure, I'm not sure why. It installs a windows service, and the service does not work if the
.bat is called as an admin).
I'd like to keep them all in the same place for simplicity's sake, so I can easily switch between them in them same Command Prompt, which I'm running as an administrator. Unfortunately, that means I cannot correctly call the third script, as it's inheriting admin privileges.
The script is pretty straightforward:
start /DC:\path_to_script script.bat
Is there a way to "de-elevate" the call to that
.bat file so it runs without admin rights?