PowerShell Setup

Signing PowerShell Scripts

1. Opening Windows PowerShell 1.0 gets this error
Windows PowerShell
Copyright (C) 2006 Microsoft Corporation. All rights reserved.
File \asdfWindowsPowerShellMicrosoft.PowerShell_profile.ps1 cannot be loaded because the execution
 of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At line:1 char:2
+ . <<<< '\asdfWindowsPowerShellMicrosoft.PowerShell_profile.ps1'
PS L:>
PS L:> Get-ExecutionPolicy
Restricted
PS L:> Set-ExecutionPolicy remotesigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution
policy?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
PS L:>

 Process should have elevated status to access IIS configuration data.

Comments are closed.

Post Navigation