Learn how to a build a cloud-first strategyRegister Now


Generic Script Format - Cluster Resource Windows Server 2008

Posted on 2011-05-10
Medium Priority
Last Modified: 2012-05-11
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
Question by:mmoya
  • 2

Accepted Solution

mmoya earned 0 total points
ID: 35746232
Fixed the issue.

Author Closing Comment

ID: 35746238
I fixed the issue.

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question