VMware PowerCli Script to do Storage VMotion for a VM to specific Datastore

Following Script will do Storage VMotion of a VM called WinVM to a new datastore called “New-Datastore”
————————————-

Connect-VIServer MYVISERVER

Get-VM “WinVM” |Move-VM -datastore (Get-datastore “New-Datastore”)

Leave a Reply

Your email address will not be published. Required fields are marked *