Database Administration |
Network Administrators |
IT Services - Information Risk Management |
5 more ...|
|
||
|
Activity:
0 comments
357 views
last activity : 02 14 2011 05:54:13 +0000
|
||
|
|
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
|
|
|
|
|
|
|
|
|
|
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. |
