Powershell profile.ps1 cannot be loaded because its operation is blocked by software restriction policies

Powershell profile.ps1 cannot be loaded because its operation is blocked by software restriction policies

 

解决方法:修改注册表

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell]

"ExecutionPolicy"="Unrestricted"





[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell]

"ExecutionPolicy"="Unrestricted"

你可能感兴趣的:(powershell)