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"
posted @ 2014-09-18 15:58  BeierWu  阅读(854)  评论(0编辑  收藏  举报