Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Migrating a lot of vm's and need a quick powershell script to keep track of vm's progress

$
0
0

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?



Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>