Thanks Drysdale
Sorry you are correct, I am using VC 5.1 and do you know any work around in this Senior.
I am using the powershell script to change the IP of guest machines.
Script workflow
1) Remove the NLB cluster
2) Inject the IP
3) Create a NLB cluster
4) Add the hosts to NLB cluster
I am facing the issue on 4th point, SRM unable to execute the command during the recovery.
Script
import-module "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetworkLoadBalancingClusters"
Remove-NlbClusterNode -hostname srmtest01 -force
start-sleep -s 15
$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'"
$wmi.EnableStatic("A.B.C.D", "255.255.255.0")
$wmi.SetGateways("A.B.C.D", 1)
$wmi.SetDNSServerSearchOrder("A.B.c.D")
import-module "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\NetworkLoadBalancingClusters"
start-sleep -s 60
New-NlbCluster -InterfaceName "Local Area Connection" -ClusterPrimaryIP A.A.A.A -OperationMode multicast
start-sleep -s 5
Get-NlbCluster | Add-NlbClusterNode -NewNodeName B.B.B.B -NewNodeInterface “Local Area Connection”