In the Sample Automation Plan for patching SQL Server Clusters, one of Tasks (ID 115) has relevance that excludes Windows Server 2016. It uses a Visual Basic script to resume the node after it has been made unavailable as a resource owner. The other tasks in this plan all use PowerShell scripts and apply to any OS after Win2008. The script includes the following:
strComputer = "."
Set clusterWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\mscluster")
Set colItems = clusterWMIService.ExecQuery("Select * from MSCluster_Node where Name='" & hostName & "'",,48)
For Each objItem In colItems
Set nodeToPause = objItem
nodeToPause.Resume()
Next
Two questions:
-
Is there any reason that the Visual Basic commands won’t work in 2016?
-
Is there some reason IBM hasn’t updated this task to use PowerShell scripts?
Thanks