Hello,
There is no tool that I know of that allows you to run a command line "as
administrator" from the command prompt itself; you have to elevate a command
prompt, and then run the command.
However, if you are using the search box in the start menu to run programs
(the start menu search box can run programs just like the run dialog box),
you can hold down RIGHT-CTRL, RIGHT-SHIFT, and press ENTER to run the file
As Administrator.
This may not have been the case in beta 2 5384 build, but it works in newer
builds.
- JB
Vista Support FAQ
http://www.jimmah.com/vista/
Krzysztof Mazurek - 18 Aug 2006 15:16 GMT
> Hello,
>
[quoted text clipped - 9 lines]
> This may not have been the case in beta 2 5384 build, but it works in
> newer builds.
[...]
Well, in desperation I got through all executables in system32 directory.
There is a command line tool called:
runas.exe
It all owes anyone to run an application with privileges of other user. You
just have to know userid and password.
Christopher
Jimmy Brush - 18 Aug 2006 15:42 GMT
I didn't think to mention this one because it doesn't exactly imitate the
behavior of Run As Administrator ... with this tool, you actually run the
program in the context of another user, while when you elevate using "run as
administrator", if you are a member of the administrators group the program
runs in the context of your user account.
But, I was just now was looking at the options to runas and they seem to
have added an option /trustlevel ... though it does not seem to be able to
do anything besides running the program as a normal user right now.
Hopefully in the future this command can be used to elevate a command line
just like one can using Run As Administrator.
- JB
Vista Support FAQ
http://www.jimmah.com/vista/