locked
Running Stop-Process as a non-administrator RRS feed

  • Question

  • I have a PS script that needs to kill a specific application on the local server using the Stop-Process cmdlet. I don't want my service account to be a local administrator on the server but I can't figure out what other access rights I can grant it. I've tried Power Users but that was a no-go.

    Any ideas?

    Tuesday, July 8, 2014 8:23 PM

Answers

  • The account that started the process has permission to stop it.


    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by BPurchell Wednesday, July 9, 2014 11:38 AM
    Tuesday, July 8, 2014 9:11 PM

All replies

  • Can you use the account that owns the process?

    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

    Tuesday, July 8, 2014 8:41 PM
  • The account that started the process has permission to stop it.


    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by BPurchell Wednesday, July 9, 2014 11:38 AM
    Tuesday, July 8, 2014 9:11 PM
  • Thanks Bill - you were right!
    Wednesday, July 9, 2014 11:38 AM