Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (16 sloc) 542 Bytes
function Get-MigrationsSet
{
<#
.DESCRIPTION
Lists the currently running + recently finished VM migrations
.EXAMPLE
PS C:\> Get-MigrationsSet
Lists current and recent VM migration tasks
.NOTES
Created on: 20/12/2018
Author: Chris Bradshaw @aldershotchris
#>
Get-Task |
Where-Object { $_.Name -eq "RelocateVM_Task" } |
Select-Object @{Name = "VM"; Expression = { Get-VM -Id $_.ObjectID } }, State, @{Name = "% Complete"; Expression = { $_.PercentComplete } }, StartTime
}
You can’t perform that action at this time.