JSI Tip 8215. How do I configure a logon script via Group Policy?

After creating your script, name.bat or name.vbs, you can apply it in the Default Domain policy:

01. Open Active Directory User and Computers.

02. Right-click the <DomainName> and press Properties.

03. On the Group Policy tab, press Open (Group Policy Management Console).

04. Double-click the Default Domain Policy in the right-hand pane.

05. On the Details tab, record the GUID, which is listed next to Unique ID.

06. Close the Group Policy Management Window.

07. Press Cancel on the <DomainName> Properties dialog.

08. Copy your logon script to %SystemRoot%\SYSVOL\sysvol\<DomainName>\Policies\GUID\User\Scripts\Logon.

09. In Active Directory User and Computers, right-click the <DomainName> and press Properties.

10. On the Group Policy tab, press Open.

11. Right-click the Default Domain Policy in the right-hand pane and press Edit.

13. Navigate through User Configuration / Windows Settings / Scripts (Logon/Logoff).

14. Double-click Logon.

15. On the Logon Properties dialog, press Add.

16. Type the file name, NOT the path, of your script into Script Name, or Browse for it.

17. Press OK, Apply, and OK.

18. Close the Group Policy window.

19. Close Active Directory User and Computers.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish