Managing Processes with PS and SCCM

This topic contains 3 replies, has 2 voices, and was last updated by  Daniel Krebs 1 year, 4 months ago.

  • Author
  • #65286

    Rhys Gottwald

    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?


  • #65299

    Daniel Krebs

    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)?

  • #65301

    Daniel Krebs

    If you want to check if a process is elevated the page below might help:

  • #65302

    Daniel Krebs

    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.

You must be logged in to reply to this topic.