未对文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1 进行数字签名。无法在当前系统上运行该脚本。
根据文档修改发现
也就是这一步
自定义 PowerShell 提示符
修改后提示的是
未对文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.ps1 进行数字签名。无法在当前系统上运行该脚本。
而不是
无法加载文件 C:\Users\Administrator\Documents\WindowsPowerShell\profile.\ps1
所以它的解决办法应该是使用 RemoteSigned 执行策略运行未签名的脚本