Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Verify  Web  Server  Status  

 Content of Verify Web Server Status.vbs
MD5 Hash: E2E93FC8D835A4EF5B013745DD5D68E8
' Description: Returns the status of the Web server W3SVC/2142295254.


strComputer = "LocalHost"
Set objIIS = GetObject("IIS://" & strComputer & "/W3SVC/2142295254")
intStatus = objIIS.Status

Select Case intStatus
Case 1 Wscript.Echo "The Web server is starting."
Case 2 Wscript.Echo "The Web server is running."
Case 3 Wscript.Echo "The Web server is stopping."
Case 4 Wscript.Echo "The Web server is stopped."
Case 5 Wscript.Echo "The Web server is pausing."
Case 6 Wscript.Echo "The Web server is paused."
Case 7 Wscript.Echo "The Web server is continuing."
End Select

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a