Using SCVMM Powershell to move VM

Hello Everybody.

I made a powershell to Live migrate a lot of VMs VHDs to another share storage in the cluster, Ej:

  • Now the VHDXs are in C:\Cluster Storage\VMStorageDisks\

well,

  • I want to move to C:\Cluster Storage\NewVMsVHDX

 

Im Running the Powershell in my PC (I just have access to the SCVVM Console).

Im Using the SCVMM Cmdlets:

Move-SCVirtualHardDisk -VirtualHardDisk $VHDXtoMove -Path $NewVHDxPath

 

 

My Questions:

When I say move to C:\Cluster Storage\NewVMsVHDX\VMname

 

  • Will be in the Cluster Share or in my PC?
  • Will the SCVMM create the New Folder if it doesnt exist?

 

Many thanks and have a nice week,

 

Angel BC


  • Edited by abiurrunc Wednesday, September 09, 2015 8:18 AM
September 9th, 2015 8:03am

Many Thanks for your answer Elton.

A week ago I tested by myself, the cmdlet that I use (Move-SCVirtualHardDisk -VirtualHardDisk $VHDXtoMove -Path $NewVHDxPath) didn't create by itself the folder, I had to create it using (New-Item $NewVHDxPath -Type Directory).

Since last week I live migrated around 100 VHDx automatically with Powershell.

My doubt is resolved.

Thanks again.

Have a nice week,

Angel Biurrun.

Free Windows Admin Tool Kit Click here and download it now
September 14th, 2015 7:39am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics