Raymond.CC Blog
  • Home
  • Forum
  • Giveaway
  • X-Ray 2.0
  • Contact
  • About
  • I’m Feeling Lucky
Search the site...
You are here: Home » Computer » Workaround to Bypass UAC Prompt using Task Scheduler Trick

Workaround to Bypass UAC Prompt using Task Scheduler Trick

Updated by Raymond - 1 year ago - Computer
5
  • Like
  • +1
  • Tweet
  • Printer Friendly and PDF

Recently I was trying out a vbscript (.vbs) and it all worked perfectly on my laptop. However when I tried the same vbscript on my test system, things didn’t go as smoothly because for some weird reason it did not work. Then I found out it was due to User Account Control which is disabled on my laptop but enabled on the test system. The vbscript requires elevation to use Windows Management Instrumentation to enable and disable hardware on device manager. Right clicking on the vbs file and there is no Run as administrator option but this is still not a big problem because I can modify the registry to add the run as administration option for vbs file. The biggest problem is the vbscript requires to run together with arguments and it is best to automatically run it when Windows is booted up.

I can’t just create a batch file to run the vbscript with arguments and put it at Startup folder because UAC will automatically block that from working without informing you. Fortunately there is a trick to bypass the UAC prompt by using the Windows Task Scheduler.

Here are the steps on how to make a program run under Task Scheduler with the highest privileges to bypass the UAC prompt.

1. Click the Start button and type Task Scheduler on the search programs and files bar and hit enter.

2. Click Action from the menubar and select Create Tasks.

Create Tasks

3. You will need to fill up the Name and Description box and check the Run with highest privileges checkbox.

4. Go to Actions tab and click the New button.

5. Make sure that “Start a program” option is selected and browse for the program that you want to run without UAC prompt and click OK. Optionally you can also specify the command line arguments if required.

New Action

6. Now go to Settings tab and make sure that “Allow task to be run on demand” is selected. Click the OK button to create the task and you should see the task being added to the Task Scheduler.

7. You can either manually run the program directly from Task Scheduler by right clicking on the task and select Run, or create a shortcut which is very useful when you want to put it on startup. To create a shortcut, right click on Desktop, select New > Shortcut. Type the following location at the box and click Next.

schtasks /run /TN "X-Ray"

Create Shortcut

You will need to change the X-Ray that is between the double quotes to the name of the task which you’ve used in step 3. You can set any name for the shortcut and click the Finish button. Whenever you need to run the program without the annoying UAC prompt, simply run the shortcut which you’ve created. You can even put the shortcut in Startup folder so that it runs in highest privileges without prompting you to allow the following program to make changes to this computer.

If you totally disable the UAC, you don’t need this but it is good to know that there is a way to bypass the UAC restriction using Task Scheduler. If you have UAC enabled and would like to keep it that way, then you may find this tip useful if you need to run certain programs that requires elevation on Windows startup.

Didn't find what you want? The links below could help:

Disable UAC for Specific Software in Windows 7 with UAC Trust ShortcutDisable UAC for Specific Software in Windows 7 with UAC Trust ShortcutMozilla Maintenance Service maintainanceservice.exe by FirefoxMozilla Maintenance Service maintainanceservice.exe by FirefoxInstall Google Chrome in Program Files Folder instead of AppDataInstall Google Chrome in Program Files Folder instead of AppDataWeaknesses in Windows 7 User Account ControlWeaknesses in Windows 7 User Account Control

5 comments on “Workaround to Bypass UAC Prompt using Task Scheduler Trick”

  1. Pistillino says:
    1 year ago

    thanks

    Reply
  2. Mostafa Dafer says:
    1 year ago

    Wow! Really Cool , thanks for sharing :)

    Reply
  3. Peppino Peppino says:
    1 year ago

    A better way is to elevate User Account Control without prompting. It leaves User Account Control enabled and tinkers just a bit with some of the settings of UAC instead of completely disabling the UAC function which disables the complete security feature in Windows 7 which is not a wise thing to do.

    Press Windows + R, enter secpol.msc and hit enter
    Click on Security Settings
    Local Policies
    Security Options
    double-click User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode
    choose Elevate without prompting
    click ok

    This setting becomes immediately active. Test it by launching a program that prompted for allowance before. You will have no prompt now. 

    Reply
    • Jon Ezrin says:
      1 year ago

      I’m using Windows 7 Home Premium 64-bit and I get “Windows cannot find secpol.msc”.

      Reply
  4. Kees says:
    1 year ago

    Very useful, Ray. Will probably use this. Earlier I had UAC disabled in the registry, but that caused some side-effects and was no ideal situation, so edited it back in the registry. 

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recently Updated

  • flash bios icon

    5 Tools to Easily Install FreeDOS or MS-DOS onto USB for BIOS Flashing

  • avast icon

    Reset or Remove avast! Authorization Password to Access Settings

  • U3 icon

    How to Customize U3 USB Smart Drive to Become Ultimate Hack Tool

New Articles

  • task manager replacement icon

    Memory Usage Test to See Which is the Lightest Antivirus Software

  • kaspersky antivirus 2013 icon

    Activate Free Kaspersky Anti-Virus 2013 ROG with 1 Year License

  • remote access software

    Top 8 Remote Access Software for Providing Online Support

Popular Posts

  • Top 10 FREE Data Recovery Software

    Top 10 FREE Data Recovery Software

  • How to Hack Into a Windows XP Computer Without Changing Password

    How to Hack Into a Windows XP Computer Without Changing Password

  • 10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

    10 Free Software to Mount CD or DVD ISO Image File as Virtual Drives

Recommend on Google
Follow @raymond_cc
Subscribe Youtube »
(c) 2013 Raymond.CC Blog
  • Contact
  • Disclaimer
  • Disclosure
  • Privacy Policy
  • Terms of Use
  • Sitemap