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