我有 Windows 7,我想以管理员身份运行 PowerShell。我在开始菜单中找到它,右键单击它并选择Run as administrator,但我得到以下信息:
Windows 资源管理器已停止工作
即使我尝试打开 PowerShell > Windows PowerShell 帮助,我也会遇到同样的错误。我只能以普通用户身份启动 PowerShell,但这没有用,因为我无法运行以下命令:
Set-ExecutionPolicy RemoteSigned
(ExecutionPolicy : Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft .PowerShell' is denied.)
Run Code Online (Sandbox Code Playgroud)
为什么我无法以管理员权限启动 PowerShell?