Generic script to run batch command
hi,
i have added generic script failover cluster windows 2008. need run batch command "iisreset" with script during online or failover. but command not work. did missed something?
----
function online( )
set wsshell = createobject("wscript.shell")
wsshell.run "iisreset",1
online = true
end function
function looksalive( )
looksalive = true
end function
function isalive( )
isalive = true
end function
----
thanks
try natip,
@echo off rem - file: iisrestart.bat rem - description: restart's iis (web, ftp, smtp) rem - author: pete freitag rem - add rem comments if don't want restart rem - of services echo restarting iis... echo ====================================================== net stop "world wide web publishing service" net start "world wide web publishing service" net stop "ftp publishing service" net start "ftp publishing service" net stop "simple mail transport protocol (smtp)" net start "simple mail transport protocol (smtp)" echo ====================================================== echo iis restarted
--------------------------------------------------
regard's | ramu a
Windows Server > High Availability (Clustering)
Comments
Post a Comment