News Stay informed about the latest enterprise technology news and product updates.

Scripting School: Connect scripts to remote computers

You can save substantial time by running a script that connects to remote computers by name or as part of an Active Directory domain. This month's scripting column explains how.

Editor's note: This is the eighth column in a continuing interactive series on scripting that appears monthly on You can send any scripting questions to the author, Christa Anderson, at

Last month, we talked about how to read and modify the Registry programmatically. As with the other scripts, a Registry-modifying script that only runs on the local computer doesn't save you much time. To be really effective, you need a script that you can run from one computer to touch other computers.

In this month's column, we look at the ways you can connect to remote computers by name or as part of an Active Directory domain.

Scripting School: Connect scripts to remote computers

  Taking computer names as arguments
  Using WSH Controller
  Reading computer names from a file
  Reading computer names from Active Directory
  Tips for remote script execution

Read all of Christa's scripting columns:
April 2005: Beginner's guide to scripting
May 2005: It's time to increase your scripting expertise
June 2005: Connect users to network resources
July 2005: More on connecting to network resources
August 2005: Find objects with Windows Scripting Host
September 2005: Windows Script Host arguments
October 2005: Scripting School: Turning the environment with WshShell

Christa Anderson
When Christa Anderson began working with Windows Server operating systems in 1992, she became increasingly interested in finding more efficient and flexible ways of performing routine tasks. Christa has written extensively about administrative scripting and taught technical sessions on the subject at conferences such as Comdex and CeBIT, helping people who had never done any scripting to write their own scripts in half a day. In addition to her interest in scripting Windows management, Christa is an authority on server-based computing and the program manager for Terminal Services licensing in Longhorn. If you have a scripting question for Christa, please e-mail her at

Dig Deeper on Windows administration tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.