


Logon scripts can be set up in many different ways. In the Logon Script box, type the name of the script that was saved on the server to assign it to that user (see Figure 1). For a user in Active Directory, you would simply open the properties for the user and click on the Profile tab. Once the logon script has been created, you can assign it to one or more local users, sites, domains, or organizational units (OUs). The Windows Script Host can run these scripts from the desktop of the computer or from a command line. VBScript and JScript allow you to construct a more complicated script. vbs file name extension or JScript commands for text files with the. Visual Basic Scripting Edition (VBScript) Commands: These are stored in text files with the. Scripts written using batch file commands are run by the command shell. Batch files can automate a series of tasks that could be run from a command line. The types of scripting files that are supported are:īatch File Commands: These are stored in text files with the. Once this script is placed in the Netlogon share, it will automatically replicate to all domain controllers in the domain. Logon scripts are generally stored on the domain controller in the Netlogon share, which is located at %systemroot%\System32\Repl\Imports\Scripts folder. Text editors like Notepad can be used to create the script, which is simply a file containing batch language commands.

Not that I would recommend this, but I knew a network administrator who sent out information about the birth of his child via logon script. There are many things that the logon script can do, such as set system environment variables, carry out operating system commands and call other scripts or executable programs. Logon scripts can be used to assign tasks that will be performed when a user logs in to the domain.
