
How to get backup include job detail vm name ,start date, end date and transferred in powershell?
Code: Select all
$job = Get-VBRJob -Name 'Backup Job'
$session = $job.FindLastSession()
$taskSessions = Get-VBRTaskSession -Session $session
foreach ($task in $taskSessions) {
$task | select Name, @{n='StartTimeLocal';e={$_.Progress.StartTimeLocal}}, `
@{n='StopTimeLocal';e={$_.Progress.StopTimeLocal}}, @{n='TransferredSize';e={$_.Progress.TransferedSize}}, `
@{n='Duration';e={$_.Progress.Duration}}
}
Users browsing this forum: No registered users and 3 guests