Forum Discussion
PowerShell counterpart for Failover Cluster Manager "Live Migration Settings"
In Failover Cluster Manager, there's "Live Migration Settings" where I can define what cluster networks I want to carry live migration traffic.
Even after some research, I cannot find a PowerShell cmdlet that lets me do the same...
1 Reply
Live Migration networks are controlled through cluster network roles and migration order.
You can view and configure them with these cmdlets:List all cluster networks
Get-ClusterNetwork
You’ll see each network’s Name, Address, and Role.Enable or disable a network for Live Migration
Use the Role property:
0 = None (not used by cluster communication)
1 = Cluster only
3 = Cluster and Client
LiveMigrationEnabled = Whether it can carry LM traffic
You can directly enable or disable Live Migration on a network:
(Get-ClusterNetwork "Cluster Network 2").LiveMigrationEnabled = $true
(Get-ClusterNetwork "Cluster Network 3").LiveMigrationEnabled = $false
Or to see which are currently enabled:Get-ClusterNetwork | Select-Object Name, LiveMigrationEnabled
Set the Live Migration network priority order
In Failover Cluster Manager, you can drag and drop network order; in PowerShell, use:
(Get-Cluster).MigrationNetworkOrder = @(
(Get-ClusterNetwork "Cluster Network 2").Id,
(Get-ClusterNetwork "Cluster Network 1").Id
)
Check the order afterward:(Get-Cluster).MigrationNetworkOrder
This array defines the order of preference for live migration traffic — the same as what you see in the GUI list.Verify
Get-ClusterNetwork | Format-Table Name, Role, LiveMigrationEnabled
and(Get-Cluster).MigrationNetworkOrder
Example: enable only one network for LM
# Disable all first
Get-ClusterNetwork | % { $_.LiveMigrationEnabled = $false }# Enable only the 10Gb NIC network
(Get-ClusterNetwork "10Gb-LM-Network").LiveMigrationEnabled = $true# Set migration order to use that network first
(Get-Cluster).MigrationNetworkOrder = @(
(Get-ClusterNetwork "10Gb-LM-Network").Id
)Summary
GUI path: Failover Cluster Manager → Networks → Live Migration Settings
PowerShell equivalents:Get-ClusterNetwork / .LiveMigrationEnabled
(Get-Cluster).MigrationNetworkOrder
No dedicated Set-ClusterLiveMigrationNetwork cmdlet exists — you manipulate the LiveMigrationEnabled flag and the MigrationNetworkOrder property directly.