- Download and install the Windows Management Framework. Choose the package that includes Windows PowerShell v2 and WinRM 2.0, and that applies to your operating system, system architecture, and language.
Note If your local computer is protected by a Microsoft Internet Security and Acceleration (ISA) server, see Windows PowerShell: FAQs for Administrators.
2. Verify that Windows PowerShell can run scripts
- Click Start > All Programs > Accessories > Windows PowerShell.
- Do one of the following to open Windows PowerShell:
- If you're running Windows Vista, Windows 7, or Windows Server 2008 R2, right-click Windows PowerShell and select Run as administrator. If you get a user account control prompt that asks if you would like to continue, respond Continue.
- If you're running Windows XP or Windows Server 2003, click Windows PowerShell.
- Run the following command:Get-ExecutionPolicy
- If the value returned is anything other than
RemoteSigned
, you need to change the value toRemoteSigned
.
Note When you set the script execution policy toRemoteSigned
, you can only run scripts that you create on your computer or scripts that are signed by a trusted source.
No comments:
Post a Comment