用于在Window 7中运行为不同用户的单行命令也包含密码 [英] single line command for Run As Different User in Window 7 that contain password also
本文介绍了用于在Window 7中运行为不同用户的单行命令也包含密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在窗口7中有不同用户的单行命令。
我使用以下命令,但它要求输入密码
runas / user:USER- NAMEC:\full\path\of\Program.exe
有任何方法供应密码也
在上面行?实际上,我从其他应用程序启动应用程序,所以我不想要任何用户交互,但在上面的命令,它要求用户 PASSWORD
psexec -user管理员-p Passwd xcopy a.xml \\server_over_there\c $ \A.xml
Is there any single line command for Run As Different User in Window 7.
I am using following command but then it ask for password
runas /user:USER-NAME "C:\full\path\of\Program.exe"
Is there any way to supply password also
in above line ? Actually i am launching application from other application so I dont want any user interaction But in above command it ask user for PASSWORD
解决方案
PsExec in the MS SysInternals suite:
psexec -user Administrator -p Passwd "xcopy a.xml \\server_over_there\c$\A.xml"
这篇关于用于在Window 7中运行为不同用户的单行命令也包含密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文