Moving a VMware offline VM within the VI without changing its Datastore
- $vm = get-vm testvm
- $ds = $vm | get-datastore
- move-vm -VM $vm -Destination (get-vmhost MyDestination) -Datastore $ds
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
PowerShell Code Repository