Client Management Suite

 View Only

Custom Inventory IIS Virtual Directories VBScript 

Apr 03, 2009 04:44 PM

Many of you know that it is possible to create NSI files and collect them into an NSE file and load that data into the Notification Server CMDB. This download is a vbscript that retrieves IIS virtual directory information from a server running IIS and creates an NSI file with that information.

For this vbscript, the following variables can be modified according to your own environment:

Servername  =  "LocalHost"
WebSiteID  =  1
WebSite  =  "W3SVC/" & WebSiteID
Level  =  1

The script will return the virtual directory name and the local path.

To use this vbscript, do the following:

  1. Copy the vbs file to the Inventory Solution package directory, which by default is:

    <drive>:\\Program Files\Altiris\Notification Server\NSCap\bin\win32\x86\Inventory Solution.

  2. Modify an aexinvsoln*.ini file by adding the following command line:

    "cscript iisvirtualdirectories.vbs". The line must appear prior to the line that runs aexnsinvcollector.exe.

  3. Allow the package distribution points to update, for the clients to update configuration and run the updated inventory policy.
  4. Create an NS report to view the data. In the case of this sample, the table name will be:

    inv_DefaultWebSite_VirtualDir.

Statistics
0 Favorited
1 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
txt file
IISVirtualDirectories.vbs_.txt   3 KB   1 version
Uploaded - Feb 25, 2020

Tags and Keywords

Comments

Apr 04, 2009 02:11 PM

 

Related Entries and Links

No Related Resource entered.