Home > Windows Server News > Scripting School: Find objects with Windows Script Host
Windows Server News:
EMAIL THIS

Scripting School: Find objects with Windows Script Host

By Christa Anderson, Contributor
03 Aug 2005 | SearchWinComputing.com

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

If you script without objects you will quickly find that your options are fairly limited--unless you're content to work only with user input and never store anything even temporarily.

Now that we've started working with objects in the past two columns, the question is, how do you know if an object exists in a script if you haven't already seen an object in a script?

That was the question a clever reader posed to me recently. It was an especially good question in light of the many sources of objects that I've alluded to in my first couple of columns.

Scripting languages such as VBScript have several sources of objects: the Windows Script Host itself, the file system and VBScript (for scripts written in VBScript, anyway). There are also Windows Management Instrumentation (WMI) and Active Directory Services Interface (ADSI) objects, which describe a single computer and the contents of the directory services, respectively. WMI and ADSI will become even more powerful as time goes on, since Microsoft is putting substantial effort into expanding the way these object models are used to describe systems.

I briefly introduced objects, properties and methods in my first column, a beginner's guide to scripting. The next few columns will give you more background on the various sources of objects, and point you to some online resources.

Let's start with the Windows Script Host itself.


Scripting School: Find objects with Windows Script Host

  Introduction
  Windows Script Host objects
  Wscript.Arguments
  Network resources and user/computer identity
  Running external scripts
  Working with the environment
  Summary

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 Script Host
September 2005: Windows Script Host arguments
October 2005: Scripting School: Turning the environment with WshShell

ABOUT THE AUTHOR:
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 scripting@SearchWinSystems.com.


Tags: VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Microsoft Windows Scripting Language
Create a script to check integrity of your server's drives
Scripting elevation in Windows Vista with JavaScript
Use Ldifde.exe and Csvde.exe data export tools to create Active Directory objects
Scripting School: Replacing text with regular expressions
Scripting School: Writing a script for an office inventory system
Christa Anderson's Scripting School for Windows administrators
How to automate advanced Windows desktop tasks using scripts and macros
Just the FAQs guide to VB Scripting basics
Script reveals which port Terminal Services listens to for incoming connections
Windows scripting for beginners

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Windows Server Management - Virtualization, Consolidation, Clustering
HomeTopicsBlogsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts