无法加载profile.ps1,因为在此系统上禁止运行

8 次阅读 预计阅读时间: 少于 1 分钟


n

Windows CLI提示:无法加载文件 C:\Users\zhangjinke\Documents\WindowsPowerShell\profile.ps1,因为在此系统上禁止运行脚本。

nnnn

解决方法:以管理员方式运行PowerShell(不是cmd),输入Set-ExecutionPolicy RemoteSigned

n
最后更新于 2023-08-14