I seen this code for extracting the Removing Snapshop Statistic.. and wondered if the hard Disk read time can be substituted ..
Code: Select all
$Jobs = Get-VBRJob -Name "Job*"
foreach ($Job in $Jobs) {
$LastSession = $Job.FindLastSession()
$TaskSessions = $LastSession | Get-VBRTaskSession
foreach ($vm in $TaskSessions) {
$asd = $vm.Logger.GetLog().UpdatedRecords | where-object {$_.title -eq "Removing VM snapshot"} | Select-Object title, starttime,
updatetime
$diff = $asd.updatetime - $asd.starttime
Write-Host $vm.Name `t $diff.TotalMinutes
}
}