Single line command for Run as a different user on Windows 7 that contains a password also

前端 未结 2 731
天命终不由人
天命终不由人 2020-12-30 01:41

Is there any single line command for Run As Different User in Windows 7.
I am using following command but then it ask for password

runas /user:USER-NAME          


        
2条回答
  •  南方客
    南方客 (楼主)
    2020-12-30 02:30

    PsExec in the MS SysInternals suite:

    psexec -user Administrator -p Passwd "xcopy a.xml \\server_over_there\c$\A.xml"
    

提交回复
热议问题