Writing WSH Scripts
Unless you’re writing pure Perl programs, all your administration scripts run under WSH (even pure VBScripts are run under WSH). Therefore, the next sections discuss some useful features of WSH and how to write your scripts to make use of them. Also mentioned are some places to look for scripts, how to run WSH scripts, and what you can do to control script security.
Even though WSH provides its own object model that can be used to perform many administrative tasks, WMI and ADSI provide more powerful object models for complex scripting. Additionally, using WMI calls from your WSH scripts makes it easier to write scripts that remotely administer systems (WSH scripts can be written to execute on a remote system, but this requires ...
Get Microsoft® Windows Server 2003: Administrator’s Companion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.