我正在以管理员身份运行
Windows Server 2008,我尝试将ExecutionPolicy设置为PowerShell v2的Remotesigned,如下所示:
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
右键单击Powershell快捷方式,然后选择“以管理员身份运行”
原文链接:https://www.f2er.com/windows/370842.html