How to: Make All Virtual Machines High Available (en-US)

How to: Make All Virtual Machines High Available (en-US)

 

001
002
003
004
005
006

007

008

009
010
011
012
013

014
015
$Cluster = "Cluster.contoso.com"
$Node    = "Node1.contoso.com"

Import-Module -Name "FailoverClusters"

$VM = Get-WmiObject -Namespace "root/virtualization" `

    -Class msvm_computersystem 
     -Filter "Caption = 'Virtual Machine'" 
     -ComputerName $Node | 
        Select-Object -ExpandProperty "ElementName"
        
$VM | ForEach-Object {
    Add-ClusterVirtualMachineRole -Cluster $Cluster `

        -VirtualMachine $_ | Out-Null
    }

001
002
003
004
005
006
$Cluster = "Cluster.contoso.corm"

Get-Cluster -Name $Cluster | 
    Get-ClusterResource | 
    Where-Object { $_.ResourceType.Name -eq "Virtual Machine" } | 
    Start-ClusterResource
Leave a Comment
  • Please add 1 and 3 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Craig Lussier edited Revision 3. Comment: added en-US to tags and title

Page 1 of 1 (1 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Craig Lussier edited Revision 3. Comment: added en-US to tags and title

Page 1 of 1 (1 items)