Windows Script Host

Windows Script Host (WSH) is a scripting host that supports both VBScript and JScript. Using WSH, you can write logon and logoff scripts for users, write startup and shutdown scripts for computers, and access COM DLLs. The capability to touch COM makes WSH perfect for your needs in this chapter. Also, you might or might not own Visual Basic, but if you own Windows 2000, you have a copy of WSH already installed—by default—on every Windows 2000 computer in your enterprise. WSH and VBScript also are covered briefly in Chapter 26, "Containers and Organizational Units," with logon scripts. You can create these scripts in Notepad, save them with a .vbs extension, and run them from the command line by executing the filename.

Get Special Edition Using Microsoft Active Directory 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.