#当按照作者1 以管理员身份运行选项启动 Windows PowerShell。要更改当前用户的执行策略,请运行 “Set-ExecutionPolicy -Scope CurrentUser“2 重新以管理员权限运行qImage.exe3 粘贴图片时
出现如下错误
Set-ExecutionPolicy : Windows PowerShell 已成功更新您的执行策略,但该设置已被在更具体的范围内定义的
策略覆盖。由于此覆盖,您的 shell 将保留自己的“Unrestricted”当前有效执行策略。键入“Get-ExecutionP
olicy -List”可查看您的执行策略设置。有关详细信息,请参阅“Get-Help Set-ExecutionPolicy”。
所在位置 行:1 字符: 20
- set-executionpolicy <<<< remotesigned
- CategoryInfo : PermissionDenied: (:) [Set-ExecutionPolicy], SecurityException
- FullyQualifiedErrorId : ExecutionPolicyOverride,Microsoft.PowerShell.Commands.SetExecutionPo
licyCommand
解决方法:
用管理员身份运行powershell,在命令行下执行下面2条命令即可。然后重新以管理员权限运行qImage.exeSet-ExecutionPolicy "RemoteSigned" -Scope Process -Confirm:$falseSet-ExecutionPolicy "RemoteSigned" -Scope CurrentUser -Confirm:$false
原网址:https://blogs.msdn.microsoft.com/pasen/2011/12/07/set-executionpolicy-windows-powershell-updated-your-execution-policy-successfully-but-the-setting-is-overridden-by-a-policy-defined-at-a-more-specific-scope/
在尝试运行qImage.exe时遇到错误,因为PowerShell的执行策略被更具体范围的策略覆盖。解决方法是使用管理员权限打开PowerShell,执行两条命令`Set-ExecutionPolicy RemoteSigned -Scope Process -Confirm:$false`和`Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Confirm:$false`,以更新执行策略,然后重新以管理员权限运行qImage.exe。
1284





