Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Programs and Documents - Run at User Logon



Programs and Documents - Run at User Logon

How to Run Specific Programs and Documents at User Logon in Vista, Windows 7, and Windows 8
Published by Brink
16 Jan 2012
Published by

How to Run Specific Programs and Documents at User Logon in Vista, Windows 7, and Windows 8

information   Information
This will show you how to specify additional programs or documents that Windows starts automatically when a user logs on to the system for the first time in addition to any other startup programs.

You must be logged in as an administrator to be able to do the steps in this tutorial.





OPTION ONE
To Set to Run Programs and Documents at User Logon in Group Policy
1. Open the all users, specific users or groups, or all users except administrators Local Group Policy Editor for how you want this policy applied.

2. In the left pane, click on to expand User Configuration, Administrative Templates, System, and Logon. (see screenshot below)
Programs and Documents - Run at User Logon-gpedit-1.jpg
3. In the right pane, right click on Run these programs at user logon and click on Edit. (see screenshot above)

4. Do step 5, 6, or 7 below for what you would like to do.

5. To ADD Specific Programs and Documents to Run at User Logon
A) Select (dot) Enabled, and click on the Show button under Options. (see screenshot below)
Name:  GPEDIT-2.jpg
Views: 7906
Size:  129.8 KB
B) Click twice in a empty line field, and type in the full path of the program's .exe file or document file including the file extension within quotes. (see screenshot below)
NOTE: For example: "C:\Program Files\CCleaner\CCleaner64.exe"
Name:  GPEDIT-3.jpg
Views: 7839
Size:  34.5 KB
C) Repeat step 5B if you wish to add another program or document to the list of items to run at user logon.

D) When finished, click on OK. (see sceenshot below step 6B)

E) Go to step 8.
6. To REMOVE Specific Programs and Documents to Not Run at User Logon
NOTE: This step is to be able to remove any programs and/or documents that you had previously added from step 5.
A) Click on the Show button under Options. (see screenshot below step 5A)

B) Click twice on a listed item you want to remove, then clear it to be blank. (see screenshots below)
Name:  remove-1.jpg
Views: 7783
Size:  42.2 KB

Name:  remove-2.jpg
Views: 7754
Size:  39.4 KB

C) Repeat step 6B if you wish to remove another program or document from the list of items to run at user logon.

D) When finished, click on OK. (see sceenshots below step 6B)

E) Go to step 8.
7. To Not Run any of these Programs and Documents at User Logon
NOTE: This step will also clear the list of all programs and documents added previously in the Show button.
A) Select (dot) either Not Configured or Disabled. (see screenshot below 5A)
NOTE: Not Configured is the default setting.

B) Go to step 8.
8. Click on OK. (see screenshot below step 5A)

9. Close the Local Group Policy Editor window.



OPTION TWO
To Set to Run Programs and Documents at User Logon in Registry Editor

NOTE: This option will affect all users on the computer.
1. Open the Start Menu, type regedit in the search box, and press Enter.

2. If prompted by UAC, then click on Yes (Windows 7) or Continue (Vista).

3. In regedit, navigate to the location below. (see screenshot below)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

Name:  REG-0.jpg
Views: 7848
Size:  105.2 KB
4. Do step 5 or 6 below for what you would like to do.

5. To ADD Specific Programs and Documents to Run at User Logon
A) In the left pane of regedit, right click on the Explorer key, click on New and Key, type Run, and press Enter. (see screenshot below)
NOTE: If you already have the Run key as a subkey of Explorer, then skip this step and go to step 5B.
Programs and Documents - Run at User Logon-reg-1.jpg
B) In the right pane of Run, right click on a empty space, click on New and String Value, type in a number (ex: 1) for what order to run this item at user logon, and press Enter. (see screenshot below)
NOTE: The numbers you use for each new string value needs to be in numerical sequence (ex: 1, 2, 3, etc...) when created, and you cannot have the same number listed more than once.
Programs and Documents - Run at User Logon-reg-2.jpg
C) Double click on the new string value (ex: 1), type in the full path of the program's .exe file or document file including the file extension within quotes, and click on OK. (see screenshots below)
NOTE: For example: "C:\Program Files\CCleaner\CCleaner64.exe"
Name:  REG-3.jpg
Views: 7721
Size:  22.7 KB

Programs and Documents - Run at User Logon-reg-4.jpg

D) Repeat steps 5B and 5C if you wish to add another program or document to the list of items to run at user logon.

E) When finished, go to step 7.
6. To REMOVE Specific Programs and Documents to Not Run at User Logon
NOTE: This step is to be able to remove any programs and/or documents that you had previously added from step 5.
A) In the right pane of Run, right click on the string value number (ex: 3) for the program or document the you no longer want to have run at user logon, and click on Delete. (see screenshot below)
Programs and Documents - Run at User Logon-reg-6.jpg
B) Click on Yes, to confirm deleting it. (see screenshot below)
Name:  REG-5.jpg
Views: 7689
Size:  29.7 KB
C) Repeat steps 6A and 6B if you wish to remove another program or document from the list of items (string value numbers) to run at user logon.

D) When finished, go to step 7.
7. Close regedit.

8. Restart the computer to apply.
That's it,
Shawn



16 Jan 2012   #1
Infinite

Windows 7 Ultimate SP1 - 64 Bit
 
 

How about mentioning dragging it to Startup in the Start Menu, there are also Ext. Programs that can do this?

My System SpecsSystem Spec
16 Jan 2012   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Infinite,

That's a completely different tutorial.

Startup Programs - Change
My System SpecsSystem Spec
21 Oct 2013   #3
bigredeo

Windows 7 Professional 64 Bit
 
 

Question - If you have more than one file listed, will it run them simultaneously? Or will it run them in the order you set them? If it does run them simultaneously, is there a way to make the system wait until the 1st script is run before running the 2nd?
My System SpecsSystem Spec
.


21 Oct 2013   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello bigredeo,

It will start to run them in order, but they will pretty much all run instantly at once.

Depending on what the .vbs script is doing, you might add a timeout/sleep or start /wait (waits until specified program finished before starting another program) command to help them run in the order you like.

Hope this helps,
Shawn
My System SpecsSystem Spec
22 Oct 2013   #5
bigredeo

Windows 7 Professional 64 Bit
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello bigredeo,

It will start to run them in order, but they will pretty much all run instantly at once.

Depending on what the .vbs script is doing, you might add a timeout/sleep or start /wait (waits until specified program finished before starting another program) command to help them run in the order you like.

Hope this helps,
Shawn
Thank you!
My System SpecsSystem Spec
22 Oct 2013   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

You're most welcome.
My System SpecsSystem Spec
Comment

 Programs and Documents - Run at User Logon




Tutorial Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 08:45 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33