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
Monday, January 19, 2009
whether AllSigned or Restricted, let PS1 go
Labels:
code signing,
function,
object-based,
PowerShell,
ps1,
regedit,
registry,
set-executionpolicy
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment