 |

How to setup a GPO to run Logon Scripts
Prior to creating the Logon Script GPO, you must create the actual script file that
will be run when your users log into Active Directory. This file can be placed on
any server in AD that your users have access to.
Once the file is created, you need to make sure that your users have permissions to
execute the script. It is suggested that you create a scripts$ share that points to
the directory where the logon script is located and grant permission to the share
instead of using file/directory permissions. You can do this via group membership,
or you can give "Authenticated Users" read/execute permission to share$ where your
login script is stored.
- Once the script has been created and the share configured, open Active Directory Users and Computers
- Right click the appropriate OU and select Properties
- Click the Group Policy tab.
- Click the New button and name your GPO according to the required naming standards <OU_Name-Sub_OU_Name-GPO>.
- Click the Edit button.
- In the group policy editor, open the following folder: Computer Configuration\Administrative Templates\System\Logon. In the right hand window, double click on Run these programs at user logon
- Select the Enable option and then click Show.
- In the Show Contents dialog box, click Add. In the Add Item dialog box, type in the path to your logon script using the format \\servername\sharename\filename.
- Click OK.
- Verify that the path is correct and click OK.
- Click OK.
- Close the Group Policy Object Editor window.
- At the OU GPO Properties page, click OK.
Now, anytime a user logs into a computer that is a member of your OU, they will run
this logon script if they also have permissions to the location where the script resides.
|