Hey Guys,
I would like to develop a powershell script which will find the ownernode of HA and reboot the other node. Can you guys help me here.
Listener name:TEST00.example.com
NODE1: TEST01.example.com
Node2: TEST02.example.com
HA name:TESTHA
Get-clustegroup
Name OwnerNode State
TESTHA TEST01 Online
Available Storage TEST02 Offline
Cluster Group TEST02 Online
In the above scenario when I found TEST01 holds the TESTHA I want to reboot TEST02.