I need to set a drs group to 200+ VMs. I'm not going to do this by hand, obviously.
So I tried to set a drs group on just one VM but it failed.
Here's the line:
Set-DrsClusterGroup -DrsClusterGroup "le" -VM "SRV161" –Add
Here are the error-messages
Some more informations:
Powerclient version -> 6.5.4
PowerClient is connected to a vCenter Server
There are 8 Clusters. All of the drs groups are named equally in every cluster. They are named le and wi.
The VM SRV161 does exist.
What am I doing wrong?
Thank you in advance.
Can you try like this?
If you don't specify the cluster, you get all groups with that name.
And Set-DrsClusterGroup only accepts one group.
Get-DrsClusterGroup -Cluster cluster1 -Name le | Set-DrsClusterGroup -Add -VM srv161