设置powershell ExecutionPolicy

Get-ExecutionPolicy -List

Set-ExecutionPolicy -Scope CurrentUser AllSigned 

Policies:

Restricted/AllSigned/RemoteSigned/Unrestricted/Bypass/Undefined

Scopes:

Process/CurrentUser/LocalMachine

 

参考:

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.security/get-executionpolicy?view=powershell-6

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.security/set-executionpolicy?view=powershell-6

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.core/about/about_execution_policies?view=powershell-6

上一篇:[小技巧]shift+右键显示 Powershell窗口


下一篇:powershell基础