Remote WSH, which is a new technology included in WSH 5.6, provides the ability to run a script on a remote machine or machines. With Remote WSH, the script is physically copied from the local machine to the remote machine before executing. In order to enable Remote WSH functionality, you must first set up the remote machine with the proper security settings. The steps below perform the tasks that enable Remote WSH.

NoteNote

Both the remote and local machines must be running Windows NT 4 SP3 or greater in order to use Remote WSH.

Procedures

To enable a machine to run remote scripts

  1. Install WSH V5.6 on the machine. If you are using Windows XP or have installed Internet Explorer 6 or greater, WSH 5.6 has already been installed.

    NoteNote

    WSH 5.6 is available for download from the Web at http://msdn.microsoft.com/scripting

  2. Add yourself to the remote machine's Local Administrators group.

  3. To enable Remote WSH, use the System Policy Editor (Poledit.exe) on the server.

    NoteNote

    An administrator who wants to enable Remote WSH should add a subkey entry named Remote of type REG_SZ to the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings. To enable Remote WSH, set the value of Remote to 1; to disable Remote WSH, set the value to 0. If the value of the Remote value is not set, by default Remote WSH is disabled.

    NoteNote

    For more information on the System Policy Editor, see the Microsoft Windows online help system.

  4. WSH is enabled on the machine. To test it, see Running Scripts Remotely.

See Also