What can be done with a batch file Logon script, besides launch a VBScript program?
A batch file Logon script can connect drives to network shares, connect to shared printers, and run command line utilities. Anything you can do at a command prompt can be done in a batch file. For example, a batch file Logon script that maps a drive to a network share and connects to a printer could be similar to below: @echo off net use H: \\MyServer\MyShare net use LPT1: \\MyServer\MyPrinter However, a batch file by itself cannot use ADSI to retrieve information from Active Directory. Unless you use a third party utility, there is no way to determine group membership. One third party tool that does provide the ability to check group membership is KiXtart. The Windows NT resource kit also provides the utility IfMember, which can be used to test for group membership in a batch file. However, IfMember only works on clients with NT or above.
Related Questions
- All other necessary classes and jar files are managed by the startserver script or batch file. Where are the classes for JSPs and Servlets?
- Why can I double-click a file and launch the associated program using the File Transfer Utility program?
- What can be done with a batch file Logon script, besides launch a VBScript program?