Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #script to migrate VMs back to VMWare host
- #connects to VCenter
- connect-viserver aom-c-vcenter-01.c-tran.org
- #Set's target server
- $target = Read-Host 'What Server are we moving VMs to?'
- #imports list of servers from vm-migrate.ps1 and sets it to variable $vms
- $vms = Import-Csv h:\Migrated-VMs.CSV
- #moves servers from $vms to specified host.
- move-vm -vm $vms.name -destination $target -vmotionpriority high
Advertisement
Add Comment
Please, Sign In to add comment