Windows PowerShell 问题

解决 PowerShell 策略/脚本被禁止问题
  • MachinePolicy (组策略)
  • UserPolicy
  • Process (当前 PowerShell 会话)
  • CurrentUser (当前用户)
  • LocalMachine (整台机器)

在 PowerShell 中输入以下命令即可解除

1
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

查看当前策略

1
Get-ExecutionPolicy -List

Windows PowerShell 问题
https://huishao.fun/Windows策略问题/
作者
huishao
发布于
2025年12月13日
许可协议