Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista account administration

Elevation from Command Line?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 03-06-2007   #1 (permalink)
Puppy Breath
Guest


 

Re: Elevation from Command Line?

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...



My System SpecsSystem Spec
Old 03-07-2007   #2 (permalink)
ionixuk
Guest


 

Elevation from Command Line?

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...
My System SpecsSystem Spec
Old 03-07-2007   #3 (permalink)
ionixuk
Guest


 

Re: Elevation from Command Line?

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...

>
>

My System SpecsSystem Spec
Old 03-07-2007   #4 (permalink)
Kerry Brown
Guest


 

Re: Elevation from Command Line?

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...

>>
>>


My System SpecsSystem Spec
Old 03-07-2007   #5 (permalink)
ionixuk
Guest


 

Re: Elevation from Command Line?

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...
> >>
> >>

>
>

My System SpecsSystem Spec
Closed Thread
Update your Vista Drivers Update Your Drivers Now!!

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command Line Ren (Rename) command broken? SixSigmaGuy Vista General 5 05-20-2008 05:52 AM
Changing IP from command line Stefano Vista networking & sharing 2 02-19-2008 10:55 AM
XP command line Qfreed Vista networking & sharing 2 08-25-2007 09:31 AM
Help: command line with no UAC interferance? =?Utf-8?B?c2VucmFiZGV0?= Vista General 10 08-31-2006 05:19 PM
Command Line Input? Singee PowerShell 1 05-31-2006 09:46 AM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

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