CmdID / PowerShell / Cmdlets / Move
Move-VMStorage
Moves the storage of a virtual machine. Windows Server PowerShell reference
From the Windows Server PowerShell reference 17 parameters Its page in the reference
Parameters
Show its 17 parameters
-AllowUnverifiedPathsAllows the move operation to be attempted even if the paths specified for the destination computer cannot be verified prior to attempting the move operation.-AsJobRuns the cmdlet as a background job.-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more virtual machine hosts on which the virtual machine storage is to be moved.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CredentialSpecifies one or more user accounts that have permission to perform this action.-DestinationStoragePathSpecifies a destination storage path to which all virtual machine storage is to be moved.-Name, -VMNameSpecifies a name.-RemoveSourceUnmanagedVhdsIndicates that Hyper-V deletes the parent virtual hard disk on the source after this cmdlet moves a differencing virtual hard disk, when the migration is finished.-ResourcePoolNameSpecifies the name of the storage resource pool to use after the move operation is complete.-RetainVhdCopiesOnSourceSpecify $true to keep any parent virtual hard disks on the source computer.-SmartPagingFilePathSpecifies the new path to use for a smart paging file, if one is needed.-SnapshotFilePath, -CheckpointFileLocation, -SnapshotFileLocationSpecifies the new path for any snapshot files associated with the virtual machine.-VMSpecifies the virtual machine whose storage is to be moved.-VhdsSpecifies an array of hashtables that contain locations for each individual virtual hard disk to be moved.-VirtualMachinePathSpecifies the path to the virtual machine configuration file and associated memory files.-WhatIf, -wiShows what would happen if the cmdlet runs.