简体   繁体   中英

How to initiate my exe file from administrative command prompt

I have logged in with one user in my system. Like, userA. Now, I have opened command prompt window with administrator privileges. In same Administrator command prompt window need to run my EXE file for userA without the password.

I have tried "RunAs" command but it will ask for Password.

Is there any other alternative, where I can solve my problem.

I have logged in with one user in my system. Like, userA.

Ok...

In same Administrator command prompt window need to run my EXE file for userA without the password.

So you are already logged in as userA why would you need to enter the passsword again?

If you need to run something as as a different user you can create a batch file and set up a scheduled task to run it with their credentials, but don't actually give it a schedule. When you are then logged in as a differnt user you can call the scheduled task and it will run as the user it is associated with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM