Running powershell in System Context

Welcome Forums General PowerShell Q&A Running powershell in System Context

This topic contains 3 replies, has 2 voices, and was last updated by

 
Participant
6 months, 1 week ago.

  • Author
    Posts
  • #98347

    Participant
    Points: 0
    Rank: Member

    Hi Team,

    Kindly help me running powershell in system context i.e. using NT AUTHORITY\SYSTEM without using psexec tool.
    I have to run dsregcmd /debug command, kindly suggest any alternative.

    Thanks,

  • #98350

    Participant
    Points: 0
    Rank: Member

    you could call your script from a scheduled task running as system

    • #98353

      Participant
      Points: 0
      Rank: Member

      Thanks a lot Simon for quick response. I'll try running it as task scheduler, but in case if task scheduler is not a option, do we have any other alternative?

  • #98380

    Participant
    Points: 0
    Rank: Member

    Another option you may try from this blog, I know it is for cmd.exe but should still work for powershell

    Two ways to launch a Windows Command Prompt as user SYSTEM

The topic ‘Running powershell in System Context’ is closed to new replies.