Windows Script Host (WSH) is a Windows management tool.
WSH creates an environment for the host script. That is, when the script arrives on your computer, WSH acts as part of the host, making the objects and services available to the script and providing a series of script execution guides. In addition, the Windows script Host also manages security and invokes the appropriate scripting engine.
For a WSH-compliant scripting engine, WSH is language-independent. It provides a simple, powerful, and flexible scripting feature for Windows platforms, allowing you to run scripts from the Windows desktop and from the command prompt.
Windows script hosts are ideal for non-interactive scripting needs, such as scripting logins, scripting management, and computer automation.
WSH Objects and services
The Windows script Host provides several objects for direct manipulation of script execution and provides helper functions for other operations. With these objects and services, you can accomplish the following tasks:
- Print messages to the screen
- Run basic functions, such as CreateObject and GetObject
- Mapping network drives
- Connect to the printer
- Retrieving and modifying environment variables
- Modify registry Keys
Where is WSH?
Windows Script hosts are embedded in Microsoft Windows 98, 2000, and Millennium Edition. If you are running Windows 95, you can download Windows Script Host 5.6 from the Microsoft Windows Scripting Technology Web site (HTTP://www.microsoft.com/china/scripting).