Managing Processes with PS and SCCM

Tagged: ,

This topic contains 3 replies, has 2 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 2 months, 3 weeks ago.

  • Author
    Posts
  • #65286
    Profile photo of Rhys Gottwald
    Rhys Gottwald
    Participant

    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?

    Regards

  • #65299
    Profile photo of Daniel Krebs
    Daniel Krebs
    Moderator

    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
    Profile photo of Daniel Krebs
    Daniel Krebs
    Moderator

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

  • #65302
    Profile photo of Daniel Krebs
    Daniel Krebs
    Moderator

    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.

You must be logged in to reply to this topic.