我尝试为我的 powershell 环境创建一个终极设置。
我用一堆语句创建了“Microsoft.PowerShell_profiles.ps1”来设置我的默认配置文件。
但是,当我开始 PowerShell 会话时,我得到:
File C:\Documents and Settings\xxx\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded.
The file C:\Documents and Settings\xxx\My Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 is not digitally signed. The script will not execute on the system.