Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Administration > Elevation from Command Line?

Reply
Thread Tools Display Modes

Elevation from Command Line?

 
 
Puppy Breath
Guest
Posts: n/a

 
      03-07-2007
I haven't tried it. But intuitively it seems if you click Start > All
Programs, right-click Command Prompt, and choose Run As Administrator, you
should be good to go. I think you'll be a system Admin rather than a member
of the Local Admins group.

"ionixuk" <> wrote in message
news:2C4F81FE-FAAA-4677-A370-...
> Hey there, anyone know how to run a command from CMD in elevated mode (or
> whatever it's called..!)
>
> For example, how would I run SFC /SCANNOW with elevated permissions direct
> from the command line? I can't be bothered with doing all the
> create-a-shortcut-and-tick-those-boxes things...


 
Reply With Quote
 
 
 
 
ionixuk
Guest
Posts: n/a

 
      03-07-2007
Hey there, anyone know how to run a command from CMD in elevated mode (or
whatever it's called..!)

For example, how would I run SFC /SCANNOW with elevated permissions direct
from the command line? I can't be bothered with doing all the
create-a-shortcut-and-tick-those-boxes things...
 
Reply With Quote
 
Kerry Brown
Guest
Posts: n/a

 
      03-07-2007
Create a shortcut to cmd.exe and in the properties pick Always run as
administrator. Whenever you run this shortcut it will be elevated.

--
Kerry Brown
Microsoft MVP - Shell/User
http://www.vistahelp.ca


"ionixuk" <> wrote in message
news:93B29CDD-ED23-4652-9CF5-...
> Ahaaa cunning.... thanks...!!
>
> Anyone aware of a command like runas or runelev or runaway or something
> like
> that?
>
> "Puppy Breath" wrote:
>
>> I haven't tried it. But intuitively it seems if you click Start > All
>> Programs, right-click Command Prompt, and choose Run As Administrator,
>> you
>> should be good to go. I think you'll be a system Admin rather than a
>> member
>> of the Local Admins group.
>>
>> "ionixuk" <> wrote in message
>> news:2C4F81FE-FAAA-4677-A370-...
>> > Hey there, anyone know how to run a command from CMD in elevated mode
>> > (or
>> > whatever it's called..!)
>> >
>> > For example, how would I run SFC /SCANNOW with elevated permissions
>> > direct
>> > from the command line? I can't be bothered with doing all the
>> > create-a-shortcut-and-tick-those-boxes things...

>>
>>


 
Reply With Quote
 
ionixuk
Guest
Posts: n/a

 
      03-08-2007
Thanks K - yup someone gave me this one earlier.

I'm most interested in knowing how to elevate from just one command tho - it
also seems to me to be the safer option, especially, for example, if you're
doing it from a command line batch script, or something...

"Kerry Brown" wrote:

> Create a shortcut to cmd.exe and in the properties pick Always run as
> administrator. Whenever you run this shortcut it will be elevated.
>
> --
> Kerry Brown
> Microsoft MVP - Shell/User
> http://www.vistahelp.ca
>
>
> "ionixuk" <> wrote in message
> news:93B29CDD-ED23-4652-9CF5-...
> > Ahaaa cunning.... thanks...!!
> >
> > Anyone aware of a command like runas or runelev or runaway or something
> > like
> > that?
> >
> > "Puppy Breath" wrote:
> >
> >> I haven't tried it. But intuitively it seems if you click Start > All
> >> Programs, right-click Command Prompt, and choose Run As Administrator,
> >> you
> >> should be good to go. I think you'll be a system Admin rather than a
> >> member
> >> of the Local Admins group.
> >>
> >> "ionixuk" <> wrote in message
> >> news:2C4F81FE-FAAA-4677-A370-...
> >> > Hey there, anyone know how to run a command from CMD in elevated mode
> >> > (or
> >> > whatever it's called..!)
> >> >
> >> > For example, how would I run SFC /SCANNOW with elevated permissions
> >> > direct
> >> > from the command line? I can't be bothered with doing all the
> >> > create-a-shortcut-and-tick-those-boxes things...
> >>
> >>

>
>

 
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
Command-line reference A-Z Paul Randall Windows Vista General Discussion 9 07-29-2007 01:02 AM
Command Line CMD in Vista Ricardo Teixeira Windows Vista General Discussion 18 03-12-2007 03:00 AM
Vista Command Line rshol Windows Vista File Management 3 02-27-2007 08:32 PM
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