Windows 10 - Launch Programs When PC Starts W/Admim Rights

Windows 8 and 10 General Discussion, Help, Questions, etc.
User avatar
MattMan
Site Admin
Site Admin
Posts: 1471
Joined: Thu Aug 25, 2005 12:00 am
Location: New York
Contact:

Windows 10 - Launch Programs When PC Starts W/Admim Rights

Postby MattMan » Sun Aug 30, 2015 12:16 pm

This article will show you how to automatically start any programs with administration rights when your pc starts up for windows 10. I tried all sorts of things to get my program to start automatically with admin rights. Short of disabling UAC this is what worked for me. I would have been fine with disabling UAC but it seems in Windows 10 some things won't even work if you do this. For example the new Edge browser will not let you use it if UAC is off. That alone was enough for me to come up with this method as who knows what else may not work if you completely turn off UAC.

Step 1: Create A Task Which Runs The Program You Want

First of all, you need to open Task Scheduler. To do that in Win 10 simply type Task Scheduler and click on Task Scheduler desktop app.

Next we create a new task. To create a new task, go to the Actions panel and, on the right hand side, click or tap Create Task.

advanced_task1

When you create this task, in the the General tab, type the name of the task (remember this name, you will need it later on) and check the box which says "Run with highest privileges". This sets the task to run with administrative permissions.

To make sure that you don't have any compatibility issues, go to the "Configure for" drop-down box, at the bottom of the Create Task window. Select Windows 10 or whatever operating system your using (7, 8, 8.1).

ts_uac1



In the Actions tab, create the action that launches the program. The drill is simple here: click New, select the action "Start a program", specify the path to the program that will be executed and click OK. For this article we took as an example the Command Prompt, as shown below.

ts_uac2



Your last stop is the Settings tab. Here you have to make sure that the "Allow task to be run on demand" checkbox is selected. Also, make sure that, when the task is already running, another instance won't be started, by selecting the "Do not start a new instance" option.

ts_uac3



Click OK and you are done. You just created a task that launches the program that you want to use.

Now, to make sure that your task works, take it for a test. Go to the Task Scheduler Library, right-click the task that you just created and press Run.

ts_uac4



Did the program you specified launch? If it did, you are done. If it did not... well... start over. :)

In my case, the test ran without any problems and, as a result, the Command Prompt was launched with administrative permissions.

ts_uac5


Step 2: Create A Shortcut To The Newly Created Task

The second step is to create a shortcut that launches the task that you created. That, in turn, runs the program you selected without a UAC prompt being displayed. Sounds complicated, I know. Fortunately it is not that hard. You'll see!

The fastest way to create a shortcut is to right-click on the Desktop. From the menu that appears, choose "New -> Shortcut".

An important difference when creating a shortcut to a task vs. a normal shortcut is that you need to type <code>schtasks /run /tn "Task Name"</code> in the "Type the location of the item" field. Task Name needs to be replaced with the actual name of the task. Remember earlier I said (remember this name, you will need it later on) well now we need to use it :) In this command, the parameter /run simply runs a specified task while /tnallows you to type the name of the task that you want to run.

ts_uac6



Once the shortcut is created, if you double-click on it, it will run the task that you created and it will launch the program you specified with administrative permissions but without the UAC prompt showing up.

NOTE: If you want to change the icon of the shortcut that you just created, follow the instructions.

To change the icon to something else, right-click on your new shortcut and choose Properties. On the Shortcut tab, click Change icon.

Step 3: Create A Start Up Registry Key To Start Your Task

To make a registry key lets start by typing run in the search box then in the run dialog type regedit and click ok. Once the registry editor opens navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run Once there in the right field your going to right click and select New &gt; String Value. Now give your string a name. You can name it whatever you want. Next right click on the shortcut you created earlier and click on properties then under the shortcut tab where is says target copy the address. Now go back to your registry editor and right click on your newly created string and select modify and paste the address from your shortcut into the Value data area. That's it your done!!

<center>

</center>

Please note parts of this guide came from 7tutorials.com to save me time.
Image
User avatar
Sean
Multi Kill
Multi Kill
Posts: 107
Joined: Thu Dec 20, 2012 12:00 am
Location: Pennsylvania
Contact:

Postby Sean » Sun Sep 13, 2015 10:42 am

It's great that you posted this.... My lappy is a legit Win7 machine, and I am in line for the free upgrade... My gaming rig on the other hand........ muwahahahaha....

We will see if it wants to implode on itself.
Image

~ Don't Let The Bastards Drag You Down ~

Return to “Windows 8 & 10”

Who is online

Users browsing this forum: No registered users and 6 guests