Perform the following steps:
- Open the Group Policy Management Console (gpmc.msc).
- In the left navigation pane, expand the Forest node.
- Expand the Domains node, and then navigate to the domain where you want to assign a logon script.
- Expand the domain name and then expand the Group Policy Objects node.
- Locate the GPO that you want to manage.
- Select the GPO.
- In the left navigation pane, right-click the GPO and select Edit from the menu.
The Group Policy Management Editor (gpedit.msc) appears.
- In the Group Policy Management Editor window, expand User Configuration, then Policies and Windows Settings.
- Select Scripts.
- In the main pane, right-click the Logon script and select Properties from the menu
- In the Logon window, click ...