Programs and Documents - Run at User Logon

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

   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)
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)
GPEDIT-2.jpg
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"
GPEDIT-3.jpg
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)
remove-1.jpg

remove-2.jpg

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

REG-0.jpg
4. Do step 5 or 6 below for what you would like to do.

5. To ADD Specific Programs and Documents to Run at Current 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.
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.
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"
REG-3.jpg

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 Current 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)
REG-6.jpg
B) Click on Yes, to confirm deleting it. (see screenshot below)
REG-5.jpg
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




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

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Novatech iRush Pro
OS
Windows 7 Ultimate SP1 - 64 Bit
CPU
Intel Core i5 2500k
Motherboard
Foxconn H67M-S/H67M-V/H67
Memory
2x4GB DDR3 1333Hz
Graphics Card(s)
Ati Radeon 6770
Sound Card
None
Monitor(s) Displays
Samsung S22B150
Screen Resolution
1920x1080
Hard Drives
2x500GB
PSU
500W
Cooling
Fan
Keyboard
HP KU0316
Mouse
Wireless Logitech M185
Internet Speed
20MB/s
Antivirus
Avast Free
Browser
Google Chrome
Other Info
Logitech M185 Mouse
KU-M316 Keyboard

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 Computer

OS
Windows 7 Professional 64 Bit
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 Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
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 Computer

OS
Windows 7 Professional 64 Bit
You're most welcome. :)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
Back
Top