如何在没有管理员权限的情况下运行 powershell 脚本? [英] How do I run powershell scripts without admin rights?
本文介绍了如何在没有管理员权限的情况下运行 powershell 脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我尝试更改执行策略,我会收到一条消息,提示我无法修改注册表,因为我不是管理员.
If I try to change the execution policy, I get a message that says I can't modify the registry because I'm not an administrator.
这似乎应该是可能的,因为我可以运行批处理文件和其他 .exe 和 .com 程序.
It seems like this should be possible, since I can run batch files and other .exe and .com programs.
推荐答案
您可以尝试设置流程本身的策略.
You can try and set the policy of the process itself.
powershell.exe -ExecutionPolicy 绕过
powershell.exe -ExecutionPolicy bypass
这篇关于如何在没有管理员权限的情况下运行 powershell 脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文