I need to invoke a program with admin privileges from command prompt. it should prompt to the user an alert such as:
I found many answers like:
runas.exe /user:administrator %~dp0\MY_PROGRAM.BAT
But it does not help me, because that in this way, the program run under Administrator account while I need this program to be run under the same user that invokes my script.
I'm working on Win7/8 and Server 2008 R2
No comments:
Post a Comment