Reply to Message

View discussion in a popup

Replying to:
BenLiebowitz
Expert
Expert

I'm not an expert, so LucD‌ can correct me, but something like this may work...

foreach ($vm in (Get-VM)) (

$hdsrc = Get-HardDisk -VM $vm -Datastore $srcds

foreach ($hd in $hdsrc) {

  Move-HardDisk $hd -Datastore $dstds }

}

Ben Liebowitz, VCP vExpert 2015, 2016, & 2017 If you found my post helpful, please mark it as helpful or answered to award points.
Reply
0 Kudos