. : 无法加载文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1

562 阅读1分钟

powershell打开报错

. : 无法加载文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1。未对文件 C:\Users\Administrator\Docume nts\WindowsPowerShell\profile.ps1 进行数字签名。无法在当前系统上运行该脚本。有关运行脚本和设置执行策略的详细信息,请参 阅 https\:/go.microsoft.com/fwlink/?LinkID=135170 中的 about\_Execution\_Policies。

解决

管理员权限运行 PowerShell,并输入以下命令

set-executionpolicy remotesigned

根据提示选择Y