Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2001

Using the DispNode and DispTree Scripts

RSS
Subscribe to Windows Web Solutions | See More VBScript Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

IIS Scripting Solutions

The IIS installation process installs several scripts in the C:\inetpub\adminscripts directory. This month, I introduce you to two such scripts: Display Administrative Node (DispNode.vbs) and Display Administrative Tree (DispTree.vbs). You can use these two scripts to display useful information about your Web sites and services.

Both DispNode.vbs and DispTree.vbs are useful when you need to interrogate a Web site and retrieve configuration information. However, each script provides different information and performs this task in a slightly different way. DispNode.vbs displays administrative information about one node (e.g., a Web site) at a time. DispTree.vbs displays the administrative objects in a site.

These scripts can also help you obtain information about a server. For example, if you need to check the configuration of several Web servers in a farm, you can run either of these scripts remotely against those servers. You can also use the scripts to check the configuration of a new server or to audit servers and provide records of the servers at particular points in time.

Using DispNode.vbs
You can't execute DispNode.vbs without parameters because doing so displays the syntax for the script. You must use the —a parameter to execute the script and pass in the path of the node to display. For example, you can use the command

cscript dispnode.vbs —a IIS://localHost/w3svc

to display information about the W3SVC on localhost. (Be aware that unlike the other characters in the path, the IIS part of the node name is case sensitive.) Figure 1 shows the output from executing this command.

The first five lines in Figure 1 identify the object that the script is querying. Note that the specified path requests information about W3SVC, not about a particular Web site. You know that the information isn't about a site because the Name attribute shows W3SVC and not the ID of a particular site. This information is the default information for all new Web sites.

   Previous  [1]  2  3  Next 


Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...


Related Events Delivering Reliable and Effective Web-Based Applications

Making Web Application Perform Better: What to Watch, How to Watch It, and How to Fix It

Check out our list of Free Email Newsletters!

Scripting eBooks Keeping Your Business Safe from Attack: Encryption and Certificate Services

Best Practices for Managing Linux and UNIX Servers

Building an Effective Reporting System

Related IIS and Web Administration Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing