Requires Elevation

Posted: 11-24-2006, 04:46 PM
While trying to run the following command:

netsh interface ip set address name="Local Area Connection" static 12.1.1.25
255.0..0 12.1.1.20

I get this error:
The requested operation requires elevation.

Reply With Quote

Responses to "Requires Elevation"

Kristan Kenney
Guest
Posts: n/a
 
Re: Requires Elevation
Posted: 11-24-2006, 04:59 PM
This is because the command prompt in which you are executing this command
from is not an "Administrative" command prompt sesssion.

To run the command prompt elevated, click on Start, All Programs,
Accessories, right click on Command Prompt and click on "Run as
administrator", and then provide consent when User Account Control prompts
you. Then try executing your command again.

Hope this helps,

--
Kristan Kenney
Windows Live Butterfly

News and Experiences on Windows Vista and beyond: http://www.windows-now.com

This post is provided "AS IS" with no warranties, and confers no rights.

"Michael Henderson" <michaelh@nospam.mindspring.com> wrote in message
news:9958FE43-EA89-48A6-82BD-CBBEF04CD178@microsoft.com...
> While trying to run the following command:
>
> netsh interface ip set address name="Local Area Connection" static
> 12.1.1.25 255.0..0 12.1.1.20
>
> I get this error:
> The requested operation requires elevation.
Reply With Quote
Mike Shepperd
Guest
Posts: n/a
 
Re: Requires Elevation
Posted: 11-24-2006, 06:24 PM
I've created a .cmd file "\Windows\System32\RACmd.cmd"
Which contains just this one line:

Runas /user:administrator "cmd.exe /k cd c:\ && color cf && title *****
Admin Console *****"



That will prompt me for the administrator password, then open a cmd prompt
with a distinctive title and color combination so I can easily tell that
it's running with elevated privileges.

--

Mike Shepperd
Sunfire Solutions LLC
Seattle, WA

[This posting is provided AS-IS, with no warranties and confers no rights]


"Kristan Kenney" <km.kenney@ns.nospam.sympatico.ca> wrote in message
news:OuU0rn%23DHHA.3660@TK2MSFTNGP06.phx.gbl...
> This is because the command prompt in which you are executing this command
> from is not an "Administrative" command prompt sesssion.
>
> To run the command prompt elevated, click on Start, All Programs,
> Accessories, right click on Command Prompt and click on "Run as
> administrator", and then provide consent when User Account Control prompts
> you. Then try executing your command again.
>
> Hope this helps,
>
> --
> Kristan Kenney
> Windows Live Butterfly
>
> News and Experiences on Windows Vista and beyond:
> http://www.windows-now.com
>
> This post is provided "AS IS" with no warranties, and confers no rights.
>
> "Michael Henderson" <michaelh@nospam.mindspring.com> wrote in message
> news:9958FE43-EA89-48A6-82BD-CBBEF04CD178@microsoft.com...
>> While trying to run the following command:
>>
>> netsh interface ip set address name="Local Area Connection" static
>> 12.1.1.25 255.0..0 12.1.1.20
>>
>> I get this error:
>> The requested operation requires elevation.
>
Reply With Quote
Robert Moir
Guest
Posts: n/a
 
Re: Requires Elevation
Posted: 11-25-2006, 11:16 AM
Mike Shepperd wrote:
> I've created a .cmd file "\Windows\System32\RACmd.cmd"
> Which contains just this one line:
>
> Runas /user:administrator "cmd.exe /k cd c:\ && color cf && title
> ***** Admin Console *****"
>
>
>
> That will prompt me for the administrator password, then open a cmd
> prompt with a distinctive title and color combination so I can easily
> tell that it's running with elevated privileges.
That isn't a bad idea...


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
If your computer breaks and it requires fixes that are out of your ability, what do you do? Guest Windows 95/98/Me 0 02-22-2008 11:03 AM
How do I explicitly cause a UAC elevation prompt? Kevin Southern Windows Vista Security 2 09-07-2006 09:42 PM
how to get orignal token after Elevation? dispaly name Windows Vista Security 2 07-26-2006 02:09 AM
Game 'requires' administrator account to be installed when it was Narene Windows Vista Administration 2 06-12-2006 03:44 AM
Program requires .NET 1.1.4322 jknoll Windows Vista Install & Setup 3 06-01-2006 10:33 PM