Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article

HOW TO: Install/Upgrade Windows Script Host

Checking Your WSH Version

Many of the deployment and management tools that have been written to work with Windows Script Host require a minimum specific version. To check what version your machine is running, do the following:

  1. Go to a command prompt by clicking Start and choosing Run. In the Open field type cmd.exe.
  2. At the command prompt type cscript.exe. You should see an output that start simliar to the following text:
           Microsoft (R) Windows Script Host Version X.Y
    Copyright (C) Microsoft Corporation 1996-2001...
    The version of WSH is indicated by X.Y above.

Upgrading to a New Version

You may or may not need to update WSH depending on the specific script or tool you are using. Version requirements for WSH are given at the beginning of the documentation for each utility.

To upgrade the version of Windows Script Host:

  1. If you have not done so already, map S: to \\\public.
  2. Look in the folder S:\tools\pub\software\WSH for the executable named wsh-X.Y where X.Y is the latest version. Double-click the file.
  3. Click Yes to confirm that you wish to install Windows Script.
  4. Click Yes to agree to the license agreement after reading it.
  5. The installer will copy files to the local disk and notify you when the copying is complete. Click OK to dismiss the message.
  6. If you are asked to reboot the system, click No.
  7. Start a command prompt by clicking Start and choosing Run. In the Open field type cmd.exe.
  8. At the command prompt type cscript.exe //h:cscript. You will be notified that the default scripting host has been changed to cscript.exe, the command-line script interpreter.
  9. Reboot your system.

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Jan 18, 2007 3:43 pm US/Eastern by admin