Test running Powershell script in a system context

To simulate your script running using scheduled tasks under the Local System account  run Powershell ISE (or powershell console, or cmd.exe)  in a system context and debug the script.
psexec.exe -s -i powershell_ise.exe

psexec.exe -s -i powershell.exe

psexec.exe -s -i cmd.exe



2 thoughts on “Test running Powershell script in a system context

  1. Buy laptop Toshiba 13.11.2013 at 17:53 Reply

    I am now not certain the place you’re getting your information, but good topic. I needs to spend some time learning much more or working out more. Thank you for magnificent information I was looking for this information for my mission.

  2. Mariel 25.1.2014 at 19:02 Reply

    I personally want to bookmark this post, “Find out whats gonna happen when a Powershell script is run
    in a system context | Soyka’s Blog” on my personal site.
    Would you care in case I personallydo it? Thank you ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Tips, tricks and time-savers for the Windows and ConfigMgr administrator

To The Point

Anything about Technology and Business

Brian's Power Windows Blog

Microsoft in the Enterprise. Windows, Hyper-V, Exchange, SQL, and more!

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?

%d bloggers like this: