Home Up Feedback

Logon Scripts

Logon Script 1
Logon Script 2
Logon Script 3
Logon Script 4
Logon Script 5
Logon Script 6
Batch File Logon Script
Logon Script FAQ

Sample VBScript logon scripts. The programs map drive letters to network shares according to user group membership. They map local ports to shared network printers according to computer group membership. The program you select will depend on the following factors - the client operating systems that the logon script must support, whether you plan to just test for user group membership or you also want to test for computer group membership, whether you want to recognize membership in nested groups, and whether you want to recognize membership in the "Primary Group".

Logon Script # 1 - A VBScript logon script program that uses a simple IsMember function. Binds to the user object in Active Directory with a loop that is necessary on Windows 95 and Windows 98 clients during logon. Uses the WinNT provider.

Logon Script # 2 - A VBScript logon script program that incorporates an IsMember function that recognizes membership in nested groups. Includes the loop required to bind to the user object on Windows 95 and Windows 98 clients during logon. Uses the LDAP provider.

Logon Script # 3 - A VBScript logon script program that takes advantage of new features in Windows 2000. The IsMember function recognizes membership in nested groups. Not appropriate for Windows 95 or Windows 98 clients. Uses the LDAP provider.

Logon Script # 4 - A simple VBScript logon script program that does not use a separate function to test for group membership. Instead, the program uses the group object IsMember method. This requires binding to the group object to be tested for membership. This won't be efficient if many tests are required. Does not reveal membership in nested groups or the "Primary group". Includes the loop required to bind to the user object on Windows 95 and Windows 98 clients during logon.

Logon Script # 5 - A VBScript logon script program demonstrating how to log information to a log file during logon.

Logon Script # 6 - A VBScript logon script program that uses an IsMember function that recognizes membership in nested groups and the primary group. The program uses ADO to retrieve group names making it more efficient if the users are members of many groups. Includes the loop required to retrieve the user name on Windows 95/98 clients during logon.

Batch File Logon Script - Batch file that launches a VBScript logon script program if the client is a Windows 32-bit operating system. Otherwise, launches a batch file logon script. This batch file can be designated as the logon script for all clients in a network. A program like this is necessary for any clients that are Windows 95, Windows 98, or Windows ME.

Frequently Asked Questions about Logon Scripts - Answers to many questions about how to setup logons scripts, how to support various client operating systems, what languages can be used, and how to setup one logon script that will run on any client.

 
Send mail to HilltopLab@RLMueller.Net with questions or comments about this web site.
Copyright © 2002-2007 Richard L. Mueller
Last modified: June 13, 2008