Requires Elevation

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

Kristan Kenney

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

Mike Shepperd

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]
 
R

Robert Moir

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top