配置用户powershell执行策略(允许用户执行powershell).note

noteId: WEB9656530b6244227a8fa377467329c8c0 · 原始路径:/ALL/Windows - B模块/服务配置/Windows Powershell/配置用户powershell执行策略(允许用户执行powershell).note · 图片:3 · 附件待处理:0

 
 
1、查看策略:
Get-ExecutionPolicy
# 输入 get-exe 然后tab补全即可
 
 
 
2、修改策略(允许用户使用powershell脚本):
Set-ExecutionPolicy Unrestricted
# 按A 同意全部
 
 
 
·不同策略的作用: