Use cluster generic script to run a batch job


i need cluster member auto run batch job when cluster resources fail on member.
use vbscript below:
dim wshshell : set wshshell = createobject("wscript.shell")
function online()
runcommand "c:\start.bat", true
online = 0
end function
function open()
open = 0
end function
function close()
close = 0
end function
function runcommand(command, wait)
runcommand = wshshell.run(command, 1, wait)
end function
problem can't bring online in cluster administrator, , can't trigger batch job. show error code , think miss in code.
please, there can me !!!

hi,

 

for scripting issues, please discuss them in our msdn forum. deal scripting issues , should best resource assist you.

 

http://social.msdn.microsoft.com/forums/en-us/categories/

 

i hope issue can resolved soon.

 

tim quan - msft

 



Windows Server  >  High Availability (Clustering)



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2