// 显示Restricted,不允许执行任何脚本 Get-ExecutionPolicy // RemoteSigned 可执行任何脚本,需要管理员权限,才能设置成功 Set-ExecutionPolicy RemoteSigned