Hi All,
I am wanting to create a CI in SCCM that,
- Checks to see if a proces is running as admin.
- If not, runs the process as an admin.
Can something like this be done?
Regards
Hi All,
I am wanting to create a CI in SCCM that,
Can something like this be done?
Regards
Do you mean running with a specified user who has admin rights configured?
Or do you want to check if a process has been elevated to run with admin rights (UAC)?
If you want to check if a process is elevated the page below might help:
Starting a process as admin is more difficult because you would need to embed the credentials into the CI script which is not good practice. Have you thought about running the application as service? The free tool NSSM (http://nssm.cc/) can help you to run basically any application as service.