Microsoft® Windows Server 2003: Administrator’s Companion
by Charlie Russel, Sharon Crawford, Jason Gerend
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access