Programs and Documents - Run at User Logon

    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
    Designer Media Ltd


    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)
    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)
    Programs and Documents - Run at User Logon-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"
    Programs and Documents - Run at User Logon-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)
    Programs and Documents - Run at User Logon-remove-1.jpg

    Programs and Documents - Run at User Logon-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

    Programs and Documents - Run at User Logon-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.
    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"
    Programs and Documents - Run at User Logon-reg-3.jpg

    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 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)
    Programs and Documents - Run at User Logon-reg-6.jpg
    B) Click on Yes, to confirm deleting it. (see screenshot below)
    Programs and Documents - Run at User Logon-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







  1. Posts : 960
    Windows 7 Ultimate SP1 - 64 Bit
       #1

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


  2. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello Infinite,

    That's a completely different tutorial.

    Startup Programs - Change
      My Computer


  3. Posts : 15
    Windows 7 Professional 64 Bit
       #3

    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


  4. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

    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


  5. Posts : 15
    Windows 7 Professional 64 Bit
       #5

    Brink said:
    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


  6. Posts : 71,959
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    You're most welcome. :)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 04:55.
Find Us