Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IISreset

Status
Not open for further replies.

MikeV42

Technical User
Joined
Jun 30, 2006
Messages
1
Location
US
I have been looking for a script that will allow me to
1) check my website
2) if it is not available do an IISreset

I have never used VBS before.
 
You can easily handle the IIS reset like this:

Code:
set wshshell = createobject("wscript.shell")
wshshell.run("cmd.exe /c iisreset")

For checking if the site is alive or not there are many programs out there that do this.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top