Windows 8 and 8.1 Forums


The requested operation requires elevation

  1. #1


    Posts : 5
    Windows 8

    The requested operation requires elevation


    Hello,

    I have made myself a member of the local administrators group. I have a script I run on all my WinXP and Win7 machines that connects to my office's VPN. The VPN is a split tunnel, so my script will add the routes to other subnets in my network:

    route add 192.168.x.x mask 255.255.255.0 192.168.x.x

    As I said, in WinXP and Win7 this works fine, but in Win8 I receive this error:

    "The requested operation requires elevation"

    I don't want the end user to have to right click on the file and 'Run As Administrator' since the script also takes advantage of user specific environment variables such as %appdata%.

    Any suggestions?

    Thanks!

    TB

      My System SpecsSystem Spec

  2. #2


    Posts : 40
    Windows 8 Enterprise


    I am not sure if this would be applicable for your case, but Task Scheduler can solve your problem.

    Just add a task for your script, select "Run as Administrator", enter your credentials and it will run it silently with no popups with admin rights.
      My System SpecsSystem Spec

  3. #3


    Posts : 5
    Windows 8


    Thanks Dellius, but no, I cannot schedule a VPN connection.
      My System SpecsSystem Spec


  4. #4


    Posts : 40
    Windows 8 Enterprise


    Can't you schedule the script by pointing Task Scheduler directly to its executable file ?

    I use rasdial "My Connection" username password to schedule my broadband PPPOE connection, so that the computer will connect to the Internet before any user logs on, completely silently and with no prompts, bells or whistles.
      My System SpecsSystem Spec

  5. #5


    Posts : 5
    Windows 8


    Sorry for the confusion. Yes, it is possible to schedule this app to run and establish the connection. This is used mainly by my sales staff. I could set the schedule to run at startup and establish the connection. However, when the laptop goes into sleep mode (multiple reasons why) and awakens, the connection will no longer be established. If the user booted their laptop while disconnected from the Internet, the connection would fail as well. My users have also been instructed to disconnect from the VPN when they know it will not be in use. I don't want them to have to reboot or log off/on to re-establish.

    This VPN connection process has worked flawlessly for quite some time on Win7 and WinXP. I hope I will find a way to script things like adding routes or copying files to the Program Files folder. If not, it sounds like Win8 didn't fall to far from the Apple tree.

    TB
      My System SpecsSystem Spec

  6. #6


    Redmond
    Posts : 630
    Windows 8.1 x64


    Technically, adding routes to the routing table in Windows 7 required admin rights as well, so it sounds like UAC has been modified in your Windows 7 environment to auto approve. There's no limitation on XP, of course, but in Vista and higher, modifying the routing table is an administrative-level task that requires elevation.

    You might want to revisit your Win7 environment to see what's going on there.
      My System SpecsSystem Spec

  7. #7


    Posts : 5
    Windows 8


    Right. UAC is disabled on all my Win7 machines. I have disabled UAC on the Win8 machine as well, and am logged on as a local administrator. Still, there are something I can't do....(such as listed above).

    TB
      My System SpecsSystem Spec

  8. #8


    Orbiting the Moon
    Posts : 3,000
    Windows 8.1 x64


    Quote Originally Posted by tropicalbound View Post
    Right. UAC is disabled on all my Win7 machines. I have disabled UAC on the Win8 machine as well, and am logged on as a local administrator. Still, there are something I can't do....(such as listed above).

    TB
    Seems that UAC is a bit different in Win8.

    Try to see this registry thing in Win8 (SIW's post ) at #7 solves it:
    Why does W8 have so many security prompts?
      My System SpecsSystem Spec

  9. #9


    Posts : 40
    Windows 8 Enterprise


    Here seems to be an interesting article about scheduling the event to run on System Wake Up. I will try it out, too, as my problem is very similar to yours.

    I would still like to know where people get the correct event ID's from, but for now this seems to do the job.

    Trigger Task Scheduler in Windows 7 when computer wakes up from sleep/hibernate - Super User
      My System SpecsSystem Spec

  10. #10


    Posts : 40
    Windows 8 Enterprise


    Quote Originally Posted by Hopachi View Post
    Quote Originally Posted by tropicalbound View Post
    Right. UAC is disabled on all my Win7 machines. I have disabled UAC on the Win8 machine as well, and am logged on as a local administrator. Still, there are something I can't do....(such as listed above).

    TB
    Seems that UAC is a bit different in Win8.

    Try to see this registry thing in Win8 (SIW's post ) at #7 solves it:
    Why does W8 have so many security prompts?
    UAC is very different from my experiences with it and the consequences are not nice when you disable it, as now OS functionality is tied to it.

    -You won't be able to use Metro Apps without UAC properly and they will generate a lot of errors.
    -You will NOT get notifications when programs need elevation, and now they will simply fail to run properly without giving a reason.
    -You will not be able to right-click a program and use "Run as Admin", it will still run it with low privileges.

    Eventually, you will need to keep UAC on its standard setting if you want your PC to work correctly.
      My System SpecsSystem Spec

Page 1 of 3 123 LastLast
The requested operation requires elevation

Similar Threads
Thread Forum
"The requested operation requires elevation"
Win 8.1 Pro x64. After years of downloading and installing XYplorer releases and betas w/o problem with Internet Download Manger, the past two days I've been getting an elevation error when trying to install from it (see screenshot). OTOH, I can install directly from the file. I thought of...
General Support
Every operation on flash drive requires confirmation
Hi, I have a 32 GB NTSC flash drive (formatted on an XP machine). When in Windows 8.1 it asks me to confirm every file operation: create a new file, name a newly created file (not rename, but name it for the first time when it doesn't have any name yet!), delete it, copy another file to the flash...
Performance & Maintenance
operation error
Hi dears I have installed windows 8.1 on my workstation and it works good and yesterday i installed it on my colleague's PC, but he use some special application for example hi use Cisco security management 3.3 which it install correctly and every thing is OK but it has a button and the main...
Software and Apps
interrupted operation error
Guys/Girls, hi, my windows error is " interrupted operation insert the recovery cd or other recovery media and reboot your pc..." and i have very important files and programs. please help me.
General Support
Programs can't request elevation
I've been running Windows 8 x64 on an HP ENVY H8-1445 desktop for a couple of months. I have Start8 (Start button plus boot to desktop) and ModernMix (run modern apps in windows) installed to make it bearable. UAC is set at the minimum level (I build live CDs with WinBuilder and it needs to have...
General Support
Requested Operation Requires Elevation - ExamGuard
Hello, Just got a home PC with Windows 8 last week. We were running a program called ExamGuard for the past week. This program basically locks your browser so you can't copy/paste or navigate away from the exam until it's completed. Suddenly today it stopped working. When running a...
Software and Apps

Eight Forums Android App Eight Forums IOS App Follow us on Facebook