The requested operation requires elevation.  
Author Message
scompa





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

I am connected to wireless network in my city. The problem is that when I want to connect to city wireless I need to add a route in Command prompt. In XP it works fine, but when I type this in Vista:

route -p add 10.0.0.0 mask 255.0.0.0 10.46.2.1

I recive this message:

The requested operation requires elevation.

I realy need to do that, otherwise I can't access any page on wireless except 10.46.2.*.



Software Development for Windows Vista9  
 
 
Eric Perlin - MSFT





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Is it the download that fails or the subsequent execution of the downloaded content



 
 
Johan Lindfors - MSFT





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Try to run the Command Prompt with elevated privileges before running the "route" command. Simply right-click the "Command Prompt" and choose to "Run as Administrator". That will initiate the UAC prompt for elevated privileges. If you are a member of the local administrator-group you should simply have to select continue, otherwise you need to enter the administrative password.

Regards

Johan Lindfors
Microsoft AB


 
 
scompa





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

What an easy solution, thank you Johan!
 
 
Brett Buell





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

I am trying to install Poser 7 from a disk and I am getting this same error. "The requested operation requires elevation" is the error that I get when it goes to install Poser 7. (A newer version of the same software). Thank you.


 
 
santir





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

I tried to install Poser 6 (trial version), I did not get any problem.

Here are th steps that I followed.

1. download the zip file to the desktop.

2. Extract the files.

3. Run the exe.( got an elevated prompt.) and installation proceeds.

regards

Santhi


 
 
nOrphf





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

If I run cmd from the Run command, the command promt is not elevated.
Is it possible to Always elevate cmd
I tryed properties but its not possible...

 
 
MrPix





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

When I tried to add a persistent route using the following (in elevated mode):

route -p ADD 192.168.1.0 MASK 255.255.255.0 192.168.0.50

The route is added and I get an OK! prompt, but is not persistent, nor is it listed as a persistent route on the route print screen, can anyone tell me why

BTW, my email addy is: paul(at)mrpix(dot)co(dot)uk .. well you know what I mean, if anyone has any ideas how to make this persistent, I would be grateful.

MrPix


 
 
Eric Perlin - MSFT





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Depending on the way the installation is packaged, this may be a required step.
A case that's not going to work is extractor.exe (non-elevated) extracting a bunch of files and calling CreateProcess on the extracted setup.exe. It's going to produce the error above.

Another work-around is to right-click->RunAsAdministror on that first extractor.
For the ISV that put this together, the change would be to call ShellExecute instead of CreateProcess.



 
 
Deven Kampenhout





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

In theory, it should be possible from the command prompt, try using the runas command (type runas / in cmd for all of the options). You can use the following line to run the cmd shell as Administrator using the run window:

runas /user:administrator cmd

So far, I can get the runas to work, but I'm running into an error stating that access is denied. Either I'm fatfingering the password, or there is some policy setting I need to tweak. I'll let you know if I figure out what I'm doing wrong.


 
 
Hub Repeater





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Eric, do you work for Microsoft Because that was an incredibly MS'ish answer.

Technically correct but does nothing to answer the question. I think that in reading this thread

I still have NO idea what that error is implying. One would assume that it's the currently logged in user account has insufficient rights to perform the requested action. However I know of no such "elevation" beyond that of Admin.

Plus assumptions of nomenclature and Microsoft's idea (like Printer and Print Driver and Network Printer.... good luck there) of what the word SHOULD mean are always two separate ideas.

Anyhow I am not installing anything.

START

RUN

CMD (enter)

[DOS PROMPT]

C:\>"ipconfig /flushdns"

The requested operation requires elevation

C:\>

/release does the same thing too.

Logged in as admin.

explanation

"work-around"

Here's my guess, Since we have about 30 flavors of Vista, they probably (since the word "home" appears) restrict the biggons out of the OS to the point of actual ARGUMENTS in a command being a "feature" of the upgraded os.

If anyone looks at these forums who cares about the future of this company, Vista was a bullet to the head...

No it's not a learning curve issue or "I am too stupid to use Vista" as why it's disliked by the I.T. community.

It's the "Let's give less and less control as time goes on" mentality. Sure I can figure out how to do it but I am willing to bet it's a version restriction. I hope I am wrong but point is the day to day support of microsoft products is starting to make the consulting firms like ourselves MAKE RECOMMENDATIONS for OTHER operating systems. MS support will dwindle because it will fall on Microsoft themselves and they clearly don't want that responsibility based on the 20 years of growth and placing that brunt on the HARDWARE manufacturers. "Sir does it say OEM, okay I am not able to help you call Dell. Thank you. CLICK" That's a fine recipe for being on the top of the heap right

<ADD>

My guess may be incorrect because the trail of answers says "run as administrator"

I have disabled all of the security features including the UAC A N D I am logged in as the admin.

I have no way of "right clicking" any typed command in the RUN bar. Still even though that IS the case, why on earth wouldn't I want to run EVERYTHING as my current user account (admin)

That being said I would have to copy the file to an area where I can right click it (or go to it's existing location)

since ther's no shortcut.. wow that's convenient.

Good luck folks,



 
 
Eric Perlin - MSFT





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Yes, I work for Microsoft. That's kinda what the -MSFT after my name is supposed to indicate.

This previous was in the context of this thread (installation).

The error itself is fairly generic and means that the process you're about to start requires that it runs with elevated privileges. Only ShellExecute handles elevation. If the caller spawns the process using the CreateProcess API, it fails with the corresponding error code.

That's actually the trigger for elevation in the ShellExecute API case. CreateProcess fails, and the elevation request is then brokered through the "Application Information Service".

If you have really disabled UAC, and the user is an admin, you should never get this error.

If you still had UAC on, and you intended to run administrative command line utilities, the recommendation would be to elevate the command prompt you're using.

After the first Start->Run->cmd, there should be a shortcut in the start menu.

You can create such a shortcut anywhere anyway, or walk the menu to "command prompt" in the accessories.

Once you have selected the shortcut, right-click->Run as administrator will get you an elevated command prompt (as if UAC was disabled).



 
 
Deven Kampenhout





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

In theory, it should be possible from the command prompt, try using the runas command (type runas / in cmd for all of the options). You can use the following line to run the cmd shell as Administrator using the run window:

runas /user:administrator cmd

So far, I can get the runas to work, but I'm running into an error stating that access is denied. Either I'm fatfingering the password, or there is some policy setting I need to tweak. I'll let you know if I figure out what I'm doing wrong.

As a followup, I was able to get this to work fine if I used the domain admin account or a local or domain user account that is assigned to the local administrators group. For some reason however, if I try to specify administrator directly (as shown in the snippet above), it doesn't work. Here is a snippet of what worked:

runas /user:machinename\username cmd

(replace machinename and username as appropriate)


 
 
Dustin Mihalko





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Not sure if you figured this out yet, but in order for me to use "runas /user:administrator cmd" i needed to enable the administrator account in the Local Users and Groups snapin, It was apparently disabled by default on my installation if Vista build 5384.


 
 
Pettys





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Eric, thanks for your responses -- I found both of them helpful and informative.

How does one create a shortcut to cmd.exe that will run as administrator I tried creating a shortcut, but the "run this program as administrator" checkbox is disabled. I also tried copying cmd.exe to cmda.exe but then there are display messages missing.

Jason

 
 
David Tyler Hunt





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Were you looking under the 'compatability' tab instead of the 'Shortcut' tab The check box should be in the Shortcut tab, under Advanced.


 
 
Jon_Hou





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

I don't think so.
 
 
mfarace





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

when I right click on the command prompt, it does not show me this option.

if i do "runas /showtrustlevels" it says the only levels available on this computer basic.

I am running Vista Premium, RC1, fully licensed, with one account on the local computer, that is an administrator account.

why don't I see an option for elevated privledges


 
 
Pettys





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

That was it -- thank you for that!

Jason

 
 
Mike K. Clark





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Just a little more information on the subject... I found that at least for me right clicking and running as admin seems to take a while to load all the install information into the system (or maybe its just sitting there pretending to do something although the executable is about 1.2gb in size) again this is what happened to me. My system is brand new, I also do quite a bit of 3D art and animation work, I am also heavily ****ed to flight simulator x. So my computer is pretty robust! Anyway to the point, if you boot your system in safe mode it will ignore all the admin settings for program install. Boot in safe mode and then try installing poser 7 (or anything else that requires elevation). I had to do the same thing when I installed the drivers on my new Geforce card. Then just reboot the system in standard mode and you should be good to go! Its just an easy way around the command shell and running as sys admin. Hope this helps!

-Mike

 
 
David Tyler Hunt





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

AFAIK runas.exe doesn't do elevation.

What options do you have when you right click on a command prompt shortcut Not having "Run as administrator" is a little worrisome.


 
 
Jon Freeman





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

This tread has answered the problem I had yesterday with ipconfig but I'm curious mention of disabling UAC (whatever that is) and wondering whether doing so would eliminate an annoyance for me.

My preffered operating system is Linux and the way that works with root access would suit me, ie. If I log on Vista (Home) with an administrator accout, I would like to accept full responsability for doing so without having to confirm that I want to do certain things or find some command needs "elevation", etc.
I'm only logging on that way as I want full control.

Also, is there an equivilant of sudo so I could just log on as a normal user, open a command prompt in the usual way and say type:

sudo ipconfig /flushdns

To get prompted for a password and excecute the command with the required priveledges

 
 
mfarace





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Ok, this clarifies things :)

The early post said "Simply right-click the "Command Prompt" " - which to me meant click on the title bar of the active command prompt window, which did nothing. But you were more specific and said to right click the 'command prompt shortcut", which I found, and yes, this did have the option for "run as administrator".

Thanks!

Mike


 
 
AndyCadley





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

You could log on with a Standard User account and then UAC will prompt for full Administrative credentials if you want to run a privileged task, The elevate.vbs powertoy can be used if you need a way of doing this from a command line. Alternatively you can just tweak the setting for UAC to 'Request Credentials' using the Local Security Policy (or a tool like TweakUAC) and then use your normal account as if it was a Standard User.

Note that UAC offers considerably more protection than the standard Unix root/user seperation (which Windows has also offered since NT) as it is a form of Mandatory Access Control. Think of it as being similar in purpose to SELinux.


 
 
Four Score Technologies





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

I have a mesh style site-to-site VPN network, and I use classless static routes (Option 249) in DHCP. Apparently, these routes are not getting set on Vista clients because the computer wont allow the command unless set manually. We need to use this feature in order for vpn user to be able to access our entire network. Are there any work arounds

Thanks!

Andrew


 
 
Richard Bunce





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

I am also having this problem.

Although the persistant routes I've put in place are not showing on *route print*... are they actually there Will they dissapear on a restart

Richard.


 
 
Jon Freeman





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Thanks. I like "elevate" and I now have things working as I prefer.

 
 
Eleos





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Eric,

Why would you ever have to run something as an administrator if you are logged on as an administrator I mean, isn't that is bit redundant

Just curious.

Eleos

 
 
Dave Hagarty





PostPosted: Security for Applications in Windows Vista, The requested operation requires elevation. Top

Did you ever get a fix for this I am having the same issue.