PowerShell script exchange
Post Reply
stephen2020
Lurker
Posts: 2
Liked: never
Joined: Dec 22, 2020 12:12 am
Full Name: Stephen
Contact:

Workstation Backup Report

Post by stephen2020 »

Hi All

I'm trying to generate a report of our workstation backup's (managed by agent) and not sure what the best way to achieve this is. I can find the Job with each PC using Get-VBRJob, but ideally I would like to get the details similar to whats in the report when you right click the backup and select "Report". I've written the following, but not sure where to find the Status, last start/finish and size information

Code: Select all

$jobBackups = Get-VBRBackup
$backupsEp = @($jobBackups | ?{$_.JobType -eq "EndpointBackup"})
foreach( $b in $backupsEp)
{
    $JobName = $b.name
    'JOBNAME: ' + $jobname

    $Jobtype = $b.JobType
    $lastpoint = $b.GetLastPoint()
}
e.g report - https://pasteboard.co/JG1v0aK.png
Vitaliy S.
VP, Product Management
Posts: 27114
Liked: 2720 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Workstation Backup Report

Post by Vitaliy S. »

Hi Stephen,

Not sure it is exactly, what you're after, but you can try using this cmdlet to query agent's data > My Veeam Report v9.5.1

Thanks!
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Workstation Backup Report

Post by oleg.feoktistov »

Hi Stephen,

You can also check our Mimic Report.

Thanks,
Oleg
stephen2020
Lurker
Posts: 2
Liked: never
Joined: Dec 22, 2020 12:12 am
Full Name: Stephen
Contact:

Re: Workstation Backup Report

Post by stephen2020 »

Thanks All
oleg - Unfortunately I get "Job can only be backup, backup copy or replication job. Cannot be EpAgentPolicy" for this
Vitaliy - Will test Shaun's script.
Post Reply

Who is online

Users browsing this forum: kcctech1 and 22 guests