Skip to content

Instantly share code, notes, and snippets.

@danaugustin
Created May 23, 2018 21:34
Show Gist options
  • Save danaugustin/ab3dd754c5710608561ac9a3d159aedb to your computer and use it in GitHub Desktop.
Save danaugustin/ab3dd754c5710608561ac9a3d159aedb to your computer and use it in GitHub Desktop.
connect-viserver -server
$vmlist =
$NS2 = get-datastorecluster -name 'NS2'
foreach ($vm in $vmlist) {get-vm $vm | move-vm -datastore $NS2}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment