windows 作为网络服务的交互式命令提示符
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4151184/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Interactive command prompt as NETWORK SERVICE
提问by EMP
How do I open an interactive application, such as cmd.exe or Windows Explorer, running as NETWORK SERVICE? There are ways to do it for the SYSTEM account, but NETWORK SERVICE is proving to be a challenge. I need this to work on Windows 7, but would be interested in solutions for other Windows versions as well.
如何打开作为 NETWORK SERVICE 运行的交互式应用程序,例如 cmd.exe 或 Windows 资源管理器?有一些方法可以为 SYSTEM 帐户执行此操作,但事实证明 NETWORK SERVICE 是一个挑战。我需要它在 Windows 7 上工作,但也会对其他 Windows 版本的解决方案感兴趣。
回答by swatkat
Have you tried PsExec, a couple of interesting links with more information:
您是否尝试过 PsExec,几个有趣的链接,其中包含更多信息:
回答by James Wierzba
Here is how you would use PsExec to run cmd.exe under "NETWORK SERVICE" user context:
以下是使用 PsExec 在“NETWORK SERVICE”用户上下文下运行 cmd.exe 的方法:
psexec -i -u "nt authority\network service" cmd.exe