是因为powershell对于脚本的执行有着严格的安全限制
策略 Policies:
Restricted / AllSigned / RemoteSigned / Unrestricted / Bypass / Undefined
范围 Scopes:
Process / CurrentUser / LocalMachine
可以执行命令接触当前用户限制:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
是因为powershell对于脚本的执行有着严格的安全限制
策略 Policies:
Restricted / AllSigned / RemoteSigned / Unrestricted / Bypass / Undefined
范围 Scopes:
Process / CurrentUser / LocalMachine
可以执行命令接触当前用户限制:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser