Syntax
Set-HCXMigration [-Migration] <HCXMigration> -Abort [-Confirm] [-Server <HcxServer[]>] [-WhatIf] [<CommonParameters>]Related Commands
Detailed Description
This cmdlet modifies the HCX migrations. You can use the cmdlet to either abort a migration or change the schedule for a bulk migration.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Migration | HCXMigration | Specifies the HCX migration that you want to update. | true | True (ByValue) | |
Abort | SwitchParameter | Indicates that you can cancel the migration. | true | False | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
RemoveSwitchOver | SwitchParameter | Specifies that you want to remove the schedule window for the migration. | true | False | |
ScheduleEndTime | DateTime | Specifies the end time of the schedule window. | true | False | |
ScheduleStartTime | DateTime | Specifies the start time of the schedule window. | true | False | |
Server | HcxServer[] | Specifies the HCX Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-HCXServer cmdlet. | false | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
VMware.VimAutomation.Hcx.Types.V1.HCXMigrationNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> Set-HCXMigration -ScheduleStartTime '01/18/2019 3:57 PM' -ScheduleEndTime '01/18/2019 4:57 PM' -Migration $migration
Modifies the schedule start time and schedule end time for the given migration. You can use the cmdlet in case of bulk migration.
-------------------------- Example 2 --------------------------
PS C:\> Set-HCXMigration -Abort -Migration $migration
Aborts the given migration and you can use it in case of bulk migration.
-------------------------- Example 3 --------------------------
PS C:\> Set-HCXMigration -Migration $migration -RemoveSwitchOver
Removes the schedule window and you can use it in case of bulk migration.