- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I might do it like this:
$VMsToMove = Get-Datastore "NameofDataStoreContainingTargetVMs" | Get-VM
$TargetDatastore = GetDatastore NameofTargetDatastore
Foreach ($VM in $VMsToMove)
{
Move-VM -VM $VM -Destination $TargetDatastore -Confirm:$False
}
Unless of course you have a particular need to make a CSV to import from.
Chris Nakagaki (中垣浩一)
Blog: https://tech.zsoldier.com
Twitter: @zsoldier
Blog: https://tech.zsoldier.com
Twitter: @zsoldier