Requires Elevation

  • Thread starter Thread starter Michael Henderson
  • Start date Start date
M

Michael Henderson

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.
 
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.
 
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]
 
Mike said:
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...
 
Back
Top