Hello,
I'm trying to list the Preferred Owner list of some cluster Resources, but we have many nodes and the output is not readable from powershell if I use the standard command but it shows somethink like {server1, server2,.....}
Then I've tried to get the output in table mode, but I don't know how to get it.
I'd like to have something like:
"Cluster Resource name" "PrefOwner1","PrefOwner2","PrefOwner3" .......
I've done
get-clusterresource|Where{$_.resourcetype -match"MyResourceType"}|get-clusterownernode | select clusterobject,,@{n='PrefOwners';e={$_.ownernodes-join","}}|ft-a
This code is working, but I would like to know if could do more easy or more simply.
Regards.