Hi,
I need to find a way to run an external cmd.exe in administrator mode (using the process class).
Right now i am doing as follow...
p.WaitForExit();
this.Visible = true;But this is running as a normal user.I want this as a run as administrator.
I want to run this in vista.
Thanks in advnce.
Shilpa
shilpa bharkhadaPosted Sep 11, 2007, 4:19 AM
Hi,
Thanks a lot....
Regards,
Shilpa
AlanPosted Sep 10, 2007, 2:28 PM
Please see this recent Microsoft blog entry:
http://blogs.msdn.com/aaron_margosis/archive/2007/07/01/scripting-elevation-on-vista.aspx
You can, of course, still run the elevate.js script using the Process class and pass the rest of the command line as an argument. However, there doesn't appear to be a way to circumvent the need for some user interaction on Vista if cmd.exe is to be run with administrator privileges.