This is used to remotely migrate the following specific storage object types of a VM:

- VHD
- Snapshot location
- SmartPaging file

Arguments

hyperVClusterName: The name of the Hyper-V cluster the VM is part of.
hyperVHostName: The name of the Hyper-V host the VM is running on.
vhdSourceFilePath: The local path of the VHD file to be migrated.
vhdDestinationFilePath: The target local path where the VHD file will be migrated to.
smartPagingFilePath: The target local path where the SmartPaging file should be moved to.
snapshotFilePath: The target path local path where the snapshort file should be moved to.
credential: The credential with sufficient privileges to perform the migration operation.

Example

Move-RemoteVMStorage -hyperVClusterName $storageMigrationStep.HyperVClusterName `
-vmName $storageMigrationStep.VMName `
-vhdSourceFilePath $storageMigrationStep.SourceFilePath `
-vhdDestinationFilePath $storageMigrationStep.DestinationFilePath `
-snapshotFilePath $storageMigrationStep.SnapshotFilePath `
-smartPagingFilePath $storageMigrationStep.SmartPagingFilePath `
-credential $credential

Last edited Jul 25, 2014 at 9:14 PM by misabel_gem, version 2