- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.