File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
docset/winserver2022-ps/failoverclusters Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -71,13 +71,15 @@ $vmGroups = Get-ClusterNode -Name node1 |
7171 Get-ClusterResource -InputObject $_ |
7272 Where-Object ResourceType -Like "Virtual Machine"
7373 }
74- ForEach-Object -InputObject $groups -Process { $_ | Move-ClusterVirtualMachineRole -Node node2 }
74+ ForEach-Object -InputObject $vmGroups -Process { $_ | Move-ClusterVirtualMachineRole -Node node2 }
7575```
7676
77- This example performs a live migration of all clustered virtual machines that are currently owned by
78- the node named node1 to the node named node2. The migration of each virtual machine should complete
79- before the next migration is started. Use this cmdlet before performing maintenance on the
80- specified node.
77+ This example queries a specific cluster node, ` node1 ` , to find the currently owned groups. The
78+ example further filters the owned groups where there resource type is a virtual machine cluster
79+ resource. The filtered groups are stored in the ` $vmGroups ` variable. For each cluster group in the
80+ variable, the command will perform a live migration of all clustered virtual machines to the node
81+ named ` node2 ` . The migration of each virtual machine will complete before the next migration is
82+ started.
8183
8284## PARAMETERS
8385
You can’t perform that action at this time.
0 commit comments