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

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

RDS 2012 r2 collections show black screen and then close