Elevation from Command Line?

Posted: 03-07-2007, 04:04 PM
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

Responses to "Elevation from Command Line?"

Puppy Breath
Guest
Posts: n/a
 
Re: Elevation from Command Line?
Posted: 03-07-2007, 02:48 AM
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" <ionixuk@discussions.microsoft.com> wrote in message
news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
> 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
 
Re: Elevation from Command Line?
Posted: 03-07-2007, 05:32 PM
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" <ionixuk@discussions.microsoft.com> wrote in message
> news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
> > 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
 
Re: Elevation from Command Line?
Posted: 03-07-2007, 08:55 PM
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" <ionixuk@discussions.microsoft.com> wrote in message
news:93B29CDD-ED23-4652-9CF5-39712466059F@microsoft.com...
> 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" <ionixuk@discussions.microsoft.com> wrote in message
>> news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
>> > 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
 
Re: Elevation from Command Line?
Posted: 03-08-2007, 02:35 AM
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" <ionixuk@discussions.microsoft.com> wrote in message
> news:93B29CDD-ED23-4652-9CF5-39712466059F@microsoft.com...
> > 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" <ionixuk@discussions.microsoft.com> wrote in message
> >> news:2C4F81FE-FAAA-4677-A370-6FC5934DEEB7@microsoft.com...
> >> > 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
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may 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 On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
fax command line Sandro Windows XP Printers / Scanners / Fax 2 11-10-2003 07:36 PM
Command line printer add - HELP! Ben Windows XP Printers / Scanners / Fax 0 09-09-2003 09:08 PM
Printing from Command Line IN Windows XP New Users 1 07-25-2003 12:49 AM
Create ZIP from command line Clay Calvert Windows XP 2 07-05-2003 01:12 AM
Create ZIP from command line Clay Calvert Windows XP Security & Administration 2 07-05-2003 01:12 AM