O'Reilly logo

Microsoft® Windows Server 2003: Administrator’s Companion by Jason Gerend, Sharon Crawford, Charlie Russel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required