Deploying Logon Scripts

Perhaps the simplest way to implement a logon script is to modify the logon script user attribute. Although you can assign logon scripts to users by using the GUI interface, you can also do this easily by using the scriptpath Active Directory attribute of the user object. I prefer, however, to use Group Policy to assign the logon script to users. However you choose to assign logon scripts to your users, once you write the script, this script will need to be saved in the sysvol share in the scripts directory. If you do this, you can link the script to multiple Group Policy Objects (GPOs). You could, of course, also save the logon script within the actual GPO itself. If you choose to save it in this way, you will not be able ...

Get Microsoft® Windows® Scripting Self-Paced Learning Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.