added scripts and SUPERMICRO

This commit is contained in:
2012-02-29 15:47:11 -05:00
parent 939e57d438
commit b9cd8bbfd2
818 changed files with 35440 additions and 0 deletions

26
getweb.vbs Normal file
View File

@@ -0,0 +1,26 @@
Option Explicit
On Error Resume Next
Dim StartTime,EndTime: StartTime = Now ' For seeing how long the script takes to run
Wscript.Echo "StartTime = " & StartTime
' ***************************************************************** '
Dim objParent, strSite, ComputerName, strOutput
ComputerName = "pnymvp01"
Set objParent = GetObject("IIS://" & ComputerName & "/W3SVC")
If err.number <> 0 Then
Wscript.Echo "Error enumerating sites on: " & ComputerName & " - " & err.number & " - " & err.description
Else
Wscript.Echo "Enumerating sites on: " & ComputerName
End If
For Each strSite in objParent
If IsNumeric(strSite.Name) Then
strOutput = strSite.Name & " - " & strSite.ServerComment
Wscript.Echo strOutput
End If
Next
' ***************************************************************** '
EndTime = Now
'Wscript.Echo vbCrLf & "EndTime = " & EndTime
'Wscript.Echo "Seconds Elapsed: " & DateDiff("s", StartTime, EndTime)
Wscript.Echo "Script Complete"
Wscript.Quit(0)