Link to home
Start Free TrialLog in
Avatar of mmoya
mmoyaFlag for United States of America

asked on

Generic Script Format - Cluster Resource Windows Server 2008

Hello Experts, Need your assistance on how to to add the following VB script to a generic script so I can add it as a cluster resource in one of our cluster services in Windows Server 2008. Please help. Thank you!


Dim objShell : Set objShell = CreateObject("Wscript.Shell")

With objShell
  .Run "schtasks.exe /change /tn " & chr(34) & "\Microsoft\TaskName" & chr(34) & " /enable"
  .Run "schtasks.exe /run /tn " & chr(34) & "\Microsoft\TaskName" & chr(34)
  .Run "schtasks.exe /end /s server.domain.com /tn " & chr(34) & "\Microsoft\TaskName" & chr(34)
  .Run "schtasks.exe /change /s server.domain.com /tn " & chr(34) & "\Microsoft\TaskName" & chr(34) & " /disable"
End With
ASKER CERTIFIED SOLUTION
Avatar of mmoya
mmoya
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mmoya

ASKER

I fixed the issue.