Managing Processes with PS and SCCM

Hi All,

I am wanting to create a CI in SCCM that,

  1. Checks to see if a proces is running as admin.
  2. If not, runs the process as an admin.

Can something like this be done?


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 ( can help you to run basically any application as service.