windows 如何在 runas 命令中嵌入密码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6825672/
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
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 17:36:11 来源:igfitidea点击:
How to embed password in runas command?
提问by karikari
When I run this at the cmd:
当我在 cmd 上运行它时:
runas /env /user:administrator "IECapt.exe --url=http://www.google.com/ --out=test.png"
it prompts for password.
它提示输入密码。
How can I embed the password inside the command so that it does not prompt for the password?
如何将密码嵌入命令中,使其不提示输入密码?
回答by vstm
The /savecred
- option may be what you're searching.
本/savecred
-选项可能要搜索的内容。