-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
powershell执行权限问题(遇到的坑) #15
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#当按照作者
1 以管理员身份运行选项启动 Windows PowerShell。要更改当前用户的执行策略,请运行 “Set-ExecutionPolicy -Scope CurrentUser“
2 重新以管理员权限运行qImage.exe
3 粘贴图片时
出现如下错误
Set-ExecutionPolicy : Windows PowerShell 已成功更新您的执行策略,但该设置已被在更具体的范围内定义的
策略覆盖。由于此覆盖,您的 shell 将保留自己的“Unrestricted”当前有效执行策略。键入“Get-ExecutionP
olicy -List”可查看您的执行策略设置。有关详细信息,请参阅“Get-Help Set-ExecutionPolicy”。
所在位置 行:1 字符: 20
licyCommand
解决方法:
用管理员身份运行powershell,在命令行下执行下面2条命令即可。然后重新以管理员权限运行qImage.exe
Set-ExecutionPolicy "RemoteSigned" -Scope Process -Confirm:$false
Set-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/
附:powershell 不是cmd(泪奔)
The text was updated successfully, but these errors were encountered: