Saturday, October 6, 2012

How to run a program as adminitrator via the command line?

runas /profile /user:administrator “Driver:\folder\program”
For example, the administrator account is “AAA” and you want to run BBB.exe of C:\programs, you should do these following steps:
1 Press Win key & R
2 Input “CMD” in open box and click “OK”
3 Input: runas /profile /user:AAA “C:\programs\BBB.exe”  and press “Enter”
4 Input the password of administrator AAA
5 Press “Enter”

No comments:

Post a Comment