Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > Command Line (cmd.exe) administrator access

Reply
Thread Tools Display Modes

Command Line (cmd.exe) administrator access

 
 
Krzysztof Mazurek
Guest
Posts: n/a

 
      08-18-2006
Hello everyone :-)

I'm used to use cmd and several command right from terminal window. Because
of new rights management in Vista, I cannot just execute 'chdkdsk c:' ... I
have to run cmd.exe as administrator and then I can do what wanted to.

My question is ... Is there any connad that command mi to run application in
'administrator mode'? Like for example 'su' command in *nix I log in to
another account, or run command with someone else priviliges. I use
WinKey+R, then cmd and voila :-) Maybe there is a way to run a command from
'Run dialog box" with full adminsitrator rights in one step (to run cmd as
administrator)?


Best regards,
Christopher




 
Reply With Quote
 
 
 
 
Jimmy Brush
Guest
Posts: n/a

 
      08-18-2006
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/

 
Reply With Quote
 
Krzysztof Mazurek
Guest
Posts: n/a

 
      08-18-2006
"Jimmy Brush" <> wrote in message
news:50212D50-4301-488D-92C1-...
> 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.


[...]

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

 
Reply With Quote
 
Jimmy Brush
Guest
Posts: n/a

 
      08-18-2006
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/

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP command line Qfreed Windows Vista Networking 2 08-25-2007 02:31 PM
Run as administrator. Command line option? The Old Bloke Windows Vista General Discussion 4 08-05-2007 10:48 PM
Where is the help for command line commands? Peter Flindt Windows Vista General Discussion 6 07-24-2007 01:51 PM
Elevation from Command Line? Puppy Breath Windows Vista Administration 3 03-08-2007 01:35 AM
How do you use command line in shortcuts now ? steve h. Windows Vista General Discussion 8 06-29-2006 05:25 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59