如何设置ExecutionPolicy:拒绝访问registry项
我以pipe理员身份运行Windows Server 2008,并试图将ExecutionPolicy设置为Remotesigned for PowerShell v2,如下所示: Set-ExecutionPolicy RemoteSigned 但是我得到这个错误: Set-ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft .PowerShell' is denied. At line:1 char:20 + Set-ExecutionPolicy <<<< RemoteSigned + CategoryInfo : NotSpecified: (:) [Set-ExecutionPolicy], UnauthorizedAccessException + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.SetExecutionPolicyComma nd 如何解决这个问题?