File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
docset/winserver2022-ps/failoverclusters Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ This example pauses the node named `node2` on the cluster named `cluster2`.
5555Suspend-ClusterNode -Name "node1" -Target "node2" -Drain
5656```
5757
58- This example pauses the node named ` node1 ` and moves the workloads from it to the node named ` node2 ` .
58+ This example pauses the node named ` node1 ` and moves the workloads from it to the node named
59+ ` node2 ` .
5960
6061### Example 4: Preview a pause operation
6162
Original file line number Diff line number Diff line change @@ -39,7 +39,8 @@ DHCP assigned.
3939### Example 2: Update DHCP leases for all clustered IP resources
4040
4141``` powershell
42- Get-ClusterResource | Where-Object -FilterScript {$_.ResourceType.Name -eq "IP Address"} | Update-ClusterIPResource
42+ $clusterIP = Get-ClusterResource | Where-Object {$_.ResourceType.Name -eq "IP Address"}
43+ $clusterIP | Update-ClusterIPResource
4344```
4445
4546This example updates the DHCP lease for all of the clustered IP resources that are DHCP assigned.
Original file line number Diff line number Diff line change @@ -41,11 +41,17 @@ the local cluster.
4141### Example 2: Refresh a clustered virtual machine on a cluster
4242
4343``` powershell
44- Update-ClusterVirtualMachineConfiguration -Name "Virtual Machine Configuration VM2" -Cluster cluster1
44+ $parameters = @{
45+ Name = 'Virtual Machine Configuration VM2'
46+ Cluster = 'cluster1'
47+ }
48+ Update-ClusterVirtualMachineConfiguration @parameters
4549```
4650
4751This example refreshes the clustered virtual machine named ` Virtual Machine Configuration VM2 ` on
48- the cluster named ` cluster1 ` .
52+ the cluster named ` cluster1 ` . The example uses splatting to pass parameter values from
53+ the ` $Parameters ` variable to the command. Learn more about
54+ [ Splatting] ( /powershell/module/microsoft.powershell.core/about/about_splatting ) .
4955
5056## PARAMETERS
5157
You can’t perform that action at this time.
0 commit comments