Wednesday, December 26, 2012

Getting started with PowerShell in Windows 7

Enabling it...
  • Choose Start > All programs > Accessories > Windows Powershell
  • Right-click on Window Powershell and (this is important) choose Run as Administrator
  • Type and press Enter: set-executionpolicy remotesigned
  • Type and press Enter when prompted: y
  • Type and press Enter: exit
Running a PowerShell script
  • C:\> powershell c:\pathtoshell\shellname.ps1

No comments:

Post a Comment