VMM: Availability Sets
Aus Wiki-WebPerfect
Inhaltsverzeichnis
Get all Availability Sets
Get-SCAvailabilitySetName
Get all VMs with Availability Sets configured
Get-SCVirtualMachine | ? {$_.AvailabilitySetNames -ne $null} | Sort Name | select Name, VMHost, AvailabilitySetNames
Remove all Availability Sets of a VM
$AvailabilitySetNames= @() Get-SCVirtualMachine <VM-Name> | Set-SCVirtualMachine -AvailabilitySetNames $AvailabilitySetNames
Preferred Owner Nodes
Remove all Preferred Node Owner of a VM
$ClusterPreferredOwner = @() Get-SCVirtualMachine <VM-Name> | Set-SCVirtualMachine -ClusterPreferredOwner $ClusterPreferredOwner