mirror of
https://github.com/sstent/Scripts.git
synced 2026-01-26 15:12:27 +00:00
added scripts and SUPERMICRO
This commit is contained in:
14
getiissettings.vbs
Normal file
14
getiissettings.vbs
Normal file
@@ -0,0 +1,14 @@
|
||||
strComputer = "pnyweb02"
|
||||
|
||||
Set objWMIService = GetObject _
|
||||
("winmgmts:{authenticationLevel=pktPrivacy}\\" _
|
||||
& strComputer & "\root\microsoftiisv2")
|
||||
|
||||
Set colItems = objWMIService.ExecQuery _
|
||||
("Select * from IIsWebServerSetting")
|
||||
|
||||
For Each objItem in colItems
|
||||
For i = 0 to Ubound(objItem.ServerBindings)
|
||||
Wscript.Echo "" & objItem.ServerBindings(i).IP & " " & objItem.ServerBindings(i).Port & " " & objItem.ServerBindings(i).Hostname
|
||||
Next
|
||||
Next
|
||||
Reference in New Issue
Block a user