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

前端 未结 2 727
天命终不由人
天命终不由人 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"
    
    0 讨论(0)
  • 2020-12-30 02:31

    In case the local user is NOT what you need and a specific DOMAIN user is, use:

    /user      Username in form USER@DOMAIN or DOMAIN\USER
               (USER@DOMAIN is not compatible with /netonly)
    
    0 讨论(0)
提交回复
热议问题