Windows Failover Clutser cant set Cluster Resource
Solution 1:
This was a doozy. The MS Documentation was leading to really strange results.
The answer is that I was using the wrong version of powershell. Do not use Powershell 7. Use the powershell version that comes native with windows.
This command should work:
PS C:\Users\rdejournett> $t = Get-ClusterGroup -Name "Cluster Group"
PS C:\Users\rdejournett> $t.GetType()
And the resultant object type should be
IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False ClusterGroup Microsoft.FailoverClusters.PowerShell.ClusterObject
In powershell 7 the BaseType is psobject - basically what it is doing is its storing EVERYTHING as an base object (related to cluster groups), so none of the piping works properly.