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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access