-
进入PowerShell 模式
-
Get-ExecutionPolicy -List
//查看当前所有作用域
. -
设置权限
Set-ExecutionPolicy RemoteSigned -Scope < scopeName >,
设置当前用户作用域具备权限,具体设置格
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
进入PowerShell 模式
Get-ExecutionPolicy -List
//查看当前所有作用域
.
设置权限
Set-ExecutionPolicy RemoteSigned -Scope < scopeName >,
设置当前用户作用域具备权限,具体设置格
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser