Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS script to display virtual directories

Status
Not open for further replies.

remychopp

Technical User
Jun 14, 2004
15
0
0
US
Hey guys/gals,

I was looking for a script that will go through all the users I have under my FTP site and display the virtual directories that are associated with each account. I am running IIS 5.0. If anyone has a script that can do this or point me in the right direction it would be greatly appreciated.
 
Thanks for the link. I installed metaedit 2.2 and pulled up the root volume which has all the virt. directory paths for all the users, but I don't have any way of exporting the information out to a file. Any other tips would be great. Thanks.
 
You can read the metabase directly in code:
[tt]
Dim oRoot
set oRoot = GetObject("IIS://LocalHost/W3SVC/[highlight]1[/highlight]")
[/tt]


Oh, also the virtual directory can be found in the schema as: IIsWebVirtualDir ...I don't recall much beyond that but there is a bunch of stuff on google if you search for IIS metabase. Here are a few:





[highlight]* The "1" is for the first (default) web site.[/highlight]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top