Enable-VMMigration
Enables migration on one or more virtual machine hosts.
Syntax
Enable-VMMigration
[-Passthru]
[[-ComputerName] <String[]>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Enable-VMMigration cmdlet enables migration on one or more virtual machine hosts.
Examples
Example 1
PS C:\>Enable-VMMigration
Enables live migration on the local Hyper-V host.
Parameters
-ComputerName
Specifies one or more Hyper-V hosts on which migration is to be enabled.
Type: | String[] |
Position: | 0 |
Default value: | . |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Passthru
Specifies that a Microsoft.HyperV.PowerShell.Host object is to be passed through to the pipeline representing each virtual machine host on which migration is to be enabled.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
None by default; Microsoft.HyperV.PowerShell.Host if -PassThru is specified.