VMM: Availability Sets

Aus Wiki-WebPerfect
Version vom 5. November 2018, 10:46 Uhr von Admin (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

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