Monday, January 19, 2009

whether AllSigned or Restricted, let PS1 go

to execute PowerShell script (.ps1) w/o initilizing each code signing

step 1) REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell]
"ExecutionPolicy"="Unrestricted"

By default, the above parameter is not initialised during first time installation. This parameter will remain in the system registry until you remove it manually.

step 2) open powershell object-based function
PS> .\stopit.ps1

No comments:

Post a Comment