 | | Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks. | Windows 7 - Task - Create to Run a Program at Startup and Log On
Task - Create to Run a Program at Startup and Log On How to Create a Task to Run a Program at Startup and Log On in Windows 7
Published by Brink
03-01-2010
| Task - Create to Run a Program at Startup and Log On How to Create a Task to Run a Program at Startup and Log On in Windows 7  Information This will show you how to create a task in Windows 7 Task Scheduler to run a program of your choice at the Startup and/or Log On of any user account.  Note By default, you cannot run a elevated ( Run as administrator) program that requires UAC permission at startup using the normal Windows 7 startup programs. For a Administrator User Account:
You are able to have Run as administrator (elevated) programs run at startup or at log on for a administrator account in a task in Task Scheduler. For a Standard User Account:
You will not be able to run elevated programs at startup or at log on for a standard user account though. Only unelevated programs (ex: Notepad). Here's How:1. Log on to the user account that you want to create this task to run for. 2. Open the Start Menu, then type taskschd.msc in the search box and press enter. 3. If prompted by UAC, click on Yes. 4. In the left pane of Task Scheduler, click on the Task Scheduler Library folder, then click on New Folder in the far right pane. (see screenshot below) 5. Type in a name (ex: program name "Core Temp") you want for the new task folder to make finding the task easier, then click on OK. (see screenshot below) 6. In the left pane of Task Scheduler, click on the new task folder (ex: Core Temp), and click on Create Task in the far right pane. (see screenshot below) 7. Under the General tab, type in a name for the task (ex: Program Name "Core Temp"). (see screenshot below) 8. Under the General tab, - If Used in a Administrator User Account
- Check the Run with hightest Priveleges box. (see screenshot above)
- If Used in a Standard User Account
- Leave the Run with hightest Priveleges box unchecked. (see screenshot above)
9. Click on the Configure for drop down box to open it, and select Windows® 7, Windows Server™ 2008 R2. (see screenshot above and below) NOTE: This is like compatibility mode. If the program does not support running in Windows 7 normally, then you can select the OS that is does support running in instead to have it run in compatibility mode as if it was running in that OS instead of Windows 7. 10. Do steps 11 and/or 12 below for when you would like to have this task run. 11. To Have the Task Run "At startup"A) Click on the Triggers tab and New button. (see screenshot below)  B) In the Begin the task drop down menu list, select At startup. Next, make sure that Enabled is checked, and click on OK. (see screenshot below) C) Do step 12 as well. It is required for the "At startup" to work. 12. To Have the Task Run "At log on"A) Under the Triggers tab, click on the New button. (see screenshot below) B) In the Begin the task drop down menu list, select At log on. Next, make sure that Enabled is checked, and click on OK. (see screenshot below)
13. Click on the Actions tab and New button. (see screenshot below) 14. In the Action drop down menu list, select Start a program, then click on the Browse button. (see screenshot below) 15. Navigate to and select the program's EXE file or shortcut to the EXE file, then click on Open. (see screenshot below) NOTE: Remember that a standard user account cannot run a elevated program at startup or log on. See NOTE at top of tutorial for more information. 16. Click on OK. (see screenshot below) 17. Click on the Conditions tab, and uncheck the Stop if the computer switches to battery power box first, then uncheck the Start the task only if the computer is on AC power box. (see screenshots below) NOTE: This step is mostly for laptops, so that you will be able to run the program when the laptop is running on battery power.  18. Click on the Settings tab, and check the If the task fails, restart every box. (see screenshot below) 19. Click on OK. (see screenshot above) 20. You can now close Task Scheduler. (see screenshot below) NOTE: If you look in the middle pane under the Author column for the task that you just created, you will be able to tell what user account the task is for. 21. Log off and log on this user account, or restart the computer to test you new task.  Tip To Delete the Task:
If you decide you would like to delete the task later, then you can right click on the task (step 8) in the middle pane and click on Delete and Yes. Next, you can delete the task folder (step 5) when empty the same way. (see screenshot above) That's it,
Shawn |  Published by | | Administrator Join Date: Oct 2008 Location: Texas Posts: 34,826 | |
 Tutorial Tools | | | | | | | | | |
06-21-2010
|
#1 | | Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Ubuntu 10.04 |
Thanks Brink Another great tutorial.
I couldn't get this to work in the earlier versions of Windows 7 (b7048, b7077 & b7100).
It works great in Windows 7 (b7600). 
Steps 10, 11, 12 & 13 confused me, until I realised that one pair was for "At startup" and the other was for "At log on". Perhaps they could be colour-coded.
Is it possible to get Task Scheduler to run programs after another program is closed?
What I was thinking is, it would be great to be able to get CCleaner and/or an AV program to run automatically, after shutting down IE8, Firefox or other browser.
I forgot to clean my cache the other day and my email got hijacked. | My System Specs | | System Manufacturer/Model Number n/a OS Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Ubuntu 10.04 CPU AMD Phenom II x6 1055T, 2.8 GHz Motherboard ASRock 880GMH-LE/USB3 Memory 4 GB DDR3 1333 G-Skill Graphics Card NVIDIA GeForce 8500 GT Sound Card Realtek? Monitor(s) Displays Analog Silicon Graphics Screen Resolution 1600x1200 Mouse Wired Optical Case Tower Hard Drives Western Digital 1 TB (SATA), Western Digital 1.5 TB (SATA) Internet Speed DSL Other Info System Upgraded - 2011-05-21, 2010-07-14
HDD Upgraded - 2010-08-11 |
06-21-2010
|
#2 | | Windows 7 Ultimate x64 SP1 |
Hello Lehnerus,
I added a subtitle in the steps to help with the "At startup" and "At log on".
Creating a task like that will be a bit involved and off topic for this tutorial a bit. I'm not sure on the exact way to create one for this though, but you should go ahead and post that in a new thread in the "General Discussion" forum area to see if you may be able to get a solution on it. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
06-22-2010
|
#3 | | Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Ubuntu 10.04 |
The subtitles are good. 
Quote: Originally Posted by Brink Hello Lehnerus,
I added a subtitle in the steps to help with the "At startup" and "At log on".
Creating a task like that will be a bit involved and off topic for this tutorial a bit. I'm not sure on the exact way to create one for this though, but you should go ahead and post that in a new thread in the "General Discussion" forum area to see if you may be able to get a solution on it.  The subtitle make the sections stand out better.
Sorry about going off topic. | My System Specs | | System Manufacturer/Model Number n/a OS Windows 7 Ultimate SP1 (64 bit), Windows XP SP3, Ubuntu 10.04 CPU AMD Phenom II x6 1055T, 2.8 GHz Motherboard ASRock 880GMH-LE/USB3 Memory 4 GB DDR3 1333 G-Skill Graphics Card NVIDIA GeForce 8500 GT Sound Card Realtek? Monitor(s) Displays Analog Silicon Graphics Screen Resolution 1600x1200 Mouse Wired Optical Case Tower Hard Drives Western Digital 1 TB (SATA), Western Digital 1.5 TB (SATA) Internet Speed DSL Other Info System Upgraded - 2011-05-21, 2010-07-14
HDD Upgraded - 2010-08-11 |
06-22-2010
|
#4 | | Windows 7 Ultimate x64 SP1 |
No problem. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
04-01-2011
|
#5 | | Windows 7 Ultimate x64 SP1 |
Hey Brink I have an issue that's got me ready to completely disable UAC.
I installed APC's Power Chute software (version 3.0) last night. Now whenever I logon or restart the computer I get a UAC prompt before it will run; Version 2.2 never did this. The program is designed to run upon login/startup as it monitors my UPS.
Now the odd thing is once I give it permission.... all is good until the next restart/login.... I can open it from the the taskbar's notification area all day without a UAC prompt. But once I log off or restart I have to OK the UAC prompt again. As you can imagine this is rather annoying since I have to do this for every restart/login.
And now, for some odd reason, after uninstalling 3.0 and reinstalling 2.2, it too does the same thing as 3.0.... gives a UAC prompt upon login/restart where it never did before!
Anyway I tried the procedure listed above but can't get them to work. Any suggestions? Is there an issue because the program starts at system login?
Thanks. BTW I may not get back with you tonight because I'm going nite nite
Thanks. | My System Specs | | System Manufacturer/Model Number Built by me OS Windows 7 Ultimate x64 SP1 CPU Intel Core i7-950 (3.06GHz) OC to 3.8GHz Motherboard Gigabyte GA-X58A-UD5 rev 1, F6 Bios Memory Corsair Dominator -TR3X6G1600C8D (6GB - 3X2GB) Graphics Card AMD Radeon HD6950 2gig (Sapphire) Sound Card X-Fi Titanium Fatality Pro Monitor(s) Displays HP ZR22w 22" LCD Monitor Screen Resolution 1920 x 1080 Keyboard Logitech Wireless Wave Mouse Logitech Performance MX PSU Antec Signature - SG-850 Case Cooler Master HAF X Cooling Noctua NH-C12P SE14 Hard Drives Primary - OCZ Vertex 2 SSD (120GB). Storage - One 1TB WD Caviar Black, One 750 WD Caviar Black. Internet Speed High Speed Cable Other Info Memory Timings - 1600MHz @ 8-8-8-20-1T @ 1.640 volts |
04-01-2011
|
#6 | | |
Hi Drew,
You could always remove the app from startup (using msconfig) and create a task that activates the app (with highest privileges) whenever a user logs in. | My System Specs | | System Manufacturer/Model Number Compaq Desktop OS Windows 7 Ultimate x64 CPU AMD Sempron Dual Core Memory 3GB Graphics Card NVIDIA GeForce 6150SE nForce 430 Screen Resolution 1024x768 Hard Drives 150GB Sata |
04-01-2011
|
#7 | | Windows 7 Ultimate x64 SP1 |

Quote: Originally Posted by Orbital Shark Hi Drew,
You could always remove the app from startup (using msconfig) and create a task that activates the app (with highest privileges) whenever a user logs in. I've already tried that with the procedures here. Are you suggesting that it should be removed from startup? i.e if I use these procedures, it doens't need to be in startup as well?
Hmmmm..... I'll give that a try | My System Specs | | System Manufacturer/Model Number Built by me OS Windows 7 Ultimate x64 SP1 CPU Intel Core i7-950 (3.06GHz) OC to 3.8GHz Motherboard Gigabyte GA-X58A-UD5 rev 1, F6 Bios Memory Corsair Dominator -TR3X6G1600C8D (6GB - 3X2GB) Graphics Card AMD Radeon HD6950 2gig (Sapphire) Sound Card X-Fi Titanium Fatality Pro Monitor(s) Displays HP ZR22w 22" LCD Monitor Screen Resolution 1920 x 1080 Keyboard Logitech Wireless Wave Mouse Logitech Performance MX PSU Antec Signature - SG-850 Case Cooler Master HAF X Cooling Noctua NH-C12P SE14 Hard Drives Primary - OCZ Vertex 2 SSD (120GB). Storage - One 1TB WD Caviar Black, One 750 WD Caviar Black. Internet Speed High Speed Cable Other Info Memory Timings - 1600MHz @ 8-8-8-20-1T @ 1.640 volts |
04-01-2011
|
#8 | | Windows 7 Ultimate x64 SP1 |
Got it Got it now….. The problem is the APC software has a bunch of .exe’s with the main 3 being a systray Icon called display.exe – that one has a shortcut in the Startup folder, then there’s one for the systray called apcsystray.exe, and then we have the actual PowerChute.exe, so...... Anyway what I did was create a task run program using the "apcsystray.exe" and removed the "display.exe" from the Startup folder under All Programs and now all is good. Thanks. | My System Specs | | System Manufacturer/Model Number Built by me OS Windows 7 Ultimate x64 SP1 CPU Intel Core i7-950 (3.06GHz) OC to 3.8GHz Motherboard Gigabyte GA-X58A-UD5 rev 1, F6 Bios Memory Corsair Dominator -TR3X6G1600C8D (6GB - 3X2GB) Graphics Card AMD Radeon HD6950 2gig (Sapphire) Sound Card X-Fi Titanium Fatality Pro Monitor(s) Displays HP ZR22w 22" LCD Monitor Screen Resolution 1920 x 1080 Keyboard Logitech Wireless Wave Mouse Logitech Performance MX PSU Antec Signature - SG-850 Case Cooler Master HAF X Cooling Noctua NH-C12P SE14 Hard Drives Primary - OCZ Vertex 2 SSD (120GB). Storage - One 1TB WD Caviar Black, One 750 WD Caviar Black. Internet Speed High Speed Cable Other Info Memory Timings - 1600MHz @ 8-8-8-20-1T @ 1.640 volts |
04-01-2011
|
#9 | | |
Glad you've sorted it | My System Specs | | System Manufacturer/Model Number Compaq Desktop OS Windows 7 Ultimate x64 CPU AMD Sempron Dual Core Memory 3GB Graphics Card NVIDIA GeForce 6150SE nForce 430 Screen Resolution 1024x768 Hard Drives 150GB Sata Task - Create to Run a Program at Startup and Log On problems? All times are GMT -5. The time now is 03:40 AM. |  |