Get all virtual sites in one IIS

  • Thread starter Thread starter Hardy Wang
  • Start date Start date
H

Hardy Wang

Hi,
I am required to build an application to connect to a remote machine and
get all virtual sites in IIS, return each site's URL (one site has multiple
head information associated), eg http://192.168.1.1:84,
http://www.mydomain.com.
I think I should begin with WMI to query all these information. Anybody
can give me some clue?

Thanks!
 
www.iisfaq.com

I have found this site to be extremely helpful for these kinds of tasks.
Most of the examples are in vb script so you'll have to convert them to C#
which usually isn't too difficult.

hth

-Joel
--------------------
 
Back
Top