Build your professional network on facebook via our app Go to app
 
 
Activity:  0 comments  357 views  last activity : 02 14 2011 05:54:13 +0000
Share
 
 
 

Create vbs file by using below code, mysite.vbs

open dos prompt : fire command c:>cscript mysite.vbs >test.txt

and open file test.txt you will get the site list

======================================================

MachineName = "localhost"
IIsObjectPath = "IIS://" & MachineName & "/w3svc"


Set IIsObject = GetObject(IIsObjectPath)
for each obj in IISObject
if (Obj.Class = "IIsWebServer") then
BindingPath = IIsObjectPath & "/" & Obj.Name

Set IIsObjectIP = GetObject(BindingPath)
wScript.Echo IISObjectIP.ServerComment & " ( W3SVC" & obj.Name & " ) "

ValueList = IISObjectIP.Get("ServerBindings")
ValueString = ""
For ValueIndex = 0 To UBound(ValueList)
value = ValueList(ValueIndex)
Values = split(value, ":")
IP = values(0)
if (IP = "") then
IP = "(All Unassigned)"
end if
TCP = values(1)
if (TCP = "") then
TCP = "80"
end if
HostHeader = values(2)

if (HostHeader <> "") then
wScript.Echo " IP = " & IP & " TCP/IP Port = " & TCP & ", HostHeader = " & HostHeader
else
wScript.Echo " IP = " & IP & " TCP/IP Port = " & TCP
end if
Next
wScript.Echo ""
set IISObjectIP = Nothing
end if
next
set IISObject = Nothing

iis server tricks
sql server tricks
dedicated server
server hardware
computer help

 
0 comments on "get iis all website name list"
Add your comment on "get iis all website name list"

Rate:
Submit
Recruitment firm for tier 1 IT Clients
Viewers also viewed
C vs B
 
0 referals 3 arguments, 51 views
After a cluster of disconcerting e-mails and documents surfaced last week from climate...
 
267 referals 5 comments, 67 views
Dear All: I am planning to set up an NGO shortly, with the following objectives: (a) promote...
 
405 referals 27 comments, 185 views
more...  
Recent Knowledge (82)
Keep sweet cravings at bay for a healthier life The festival season just ended and all of us...
 
2067 referals 14 comments, 257 views
There are some "Blind Spots", the personality traits which are obstacles to become a good...
 
225 referals 4 comments, 380 views
Recovery of its due has been a hectic exercise for the Banks in the absence of a special...
 
1 referals 1 comments, 0 views
more...  
More From Author
While installing payment gateway on windows server with java. its useful.
Tips for avoid sleepiness During the Day at work
After deciding on a property,the next big thing one does is to look for a good home loan. While people think that there is no big deal in getting a home loan with Bank waiting in queue to offer home loans. getting home loan is very difficult.
more...