Chapter 27. Logon and Logoff Scripts


Perhaps one of the most common uses for scripting is the creation of logon (and, for Active Directory [AD] domains, logoff) scripts. A number of scripting languages have been created almost exclusively for use in these scripts, including Microsoft’s unsupported Kixtart, the more general-purpose WinBatch, and many others. Dozens of command-line utilities exist that allow batch files to stand in as logon scripts. Although VBScript has a steeper learning curve than these other products, it also offers unmatched power and flexibility. VBScript’s capability to use Component Object Model ...

Get VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows® Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.