Excuse the easy question but I could use a hand putting this together.
This command gets me the percent complete of the vm migrations
get-task -status running | where name -Like "Relocatevm*" | ft objectid,name,percentcomplete,*time*
This command gets me the names of the vm's being migrated.
$vmid = get-task -status running | where name -Like "Relocatevm*"| select objectid get-vm -id $vmid.objectid
- Sorry can't show output of actual server names
How can I combine the commands to get the vm and its percent complete?