0% found this document useful (0 votes)
33 views3 pages

Knowledgebase of ASP

The document provides a step-by-step guide on how to force an application to always run in Administrator mode without prompting for User Account Control (UAC). It involves creating a Scheduled Task with the 'Run with highest privileges' option and then creating a shortcut that invokes this task. This method allows applications like PowerBuilder to access necessary files in the Program Files (x86) folder seamlessly.

Uploaded by

osamagaber79
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views3 pages

Knowledgebase of ASP

The document provides a step-by-step guide on how to force an application to always run in Administrator mode without prompting for User Account Control (UAC). It involves creating a Scheduled Task with the 'Run with highest privileges' option and then creating a shortcut that invokes this task. This method allows applications like PowerBuilder to access necessary files in the Program Files (x86) folder seamlessly.

Uploaded by

osamagaber79
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

More Next Blog» Create Blog Sign In

Tuesday, October 4, 2011

How to Force an Application to Open in Administrator Mode


without Prompt
Say you have an application, in my case the ancient PowerBuilder and you want it to always "Run as
Administrator" so it has access to writing files to the Program Files (x86) folder instead of the users AppData
folder.

Obviously you don't want to turn off UAC, that would be silly.

Here is a little trick that I've been using for a while to get an application to open without the annoying User
Account Control prompt asking you to Allow the Application to run in Admin mode.

1. Go go the Administrative Tools -> Scheduled Tasks


2. Create a new Scheduled Task

3. Add a Task name and then make sure you select the "Run with highest privileges" option

4. Click on the Actions tab and then browse for the Application you want to open. In my case PowerBuilder
5. Click OK to save the task. Make a note of the Task Name you assigned.
6. Now, create a shortcut, on the target, you will call the task scheduler and then send as an argument the name
of the task you previously created, like this: C:\Windows\System32\schtasks.exe /run /tn "YourTaskName" this
will run your taks by invoking the Task Scheduler Directly.

You are all set, now use the shortcut to access your application. It will open with Administrative privileges.

If you would like to see this workaround in action and get additional details, please check my video posting
below:

Windows 7 - How to Open an Appli…

Hope it helps,
Will

Posted by Will M. at 10:14 AM

Labels: CodeProject, Windows 7


Location: Tampa, FL, USA

10 comments:

Anonymous March 20, 2012 at 9:21 AM


I tried, but: This method works in that case, if you have permission to create scheduled task... but if you
haven't... unfortunately :-)

Norbert, HUN
Reply

Replies

Anonymous April 9, 2012 at 1:42 PM

This is great, does it work for programs stored on a network?

Reply

Lisa W July 27, 2012 at 4:22 AM

Will, I followed your instructions very carefully and made notes (in case it didn't work properly) and it
solved my annoying problem with QuickBooks!!! Thank you so much!!!
Reply

Anonymous February 19, 2013 at 11:00 AM


Can this be done in GPO in a Network environment?

Reply

Replies

brinebold October 30, 2013 at 11:35 AM

If you're willing to put the time into creating a logon script *anything* can be GPO'd. This
doesn't even require more than a bat file to complete. All this is would require is creating a
scheduled task with schtasks then copying a shortcut (.lnk) file to the target computer from a
network drive.

Reply

Walt Dexter March 11, 2013 at 5:25 PM

Sneaky sneaky! I love it.


Reply

Anil Kumar July 14, 2013 at 2:14 AM

Works! Thank you so much!


Reply

Anonymous January 8, 2014 at 6:41 AM


Worked when logon as admin but when i copied the shortcut on normal users desktop it does not work.

Reply

Benzona May 6, 2014 at 1:34 PM

"ERROR: Access is denied."


Reply

Jomy Thottiyil November 24, 2014 at 6:16 AM

How to run AV tech Video Viewer multiple instance at the same time...can anyone tell me?/
Reply

Add comment

You might also like