PowerShell script exchange
Post Reply
RubinCompServ
Service Provider
Posts: 413
Liked: 130 times
Joined: Mar 16, 2015 4:00 pm
Full Name: David Rubin
Contact:

Get-VBRBackupSession slow to return a result

Post by RubinCompServ »

When I use the sample code from the Get-VBRBackupSession helpcenter, it takes upwards of 20 seconds to return the single result. This is for a single job that runs once per day. When I try to run this across all of my backup jobs, it takes more than 3 hours to run.

Code: Select all

$job = Get-VBRJob -Name "JOB_NAME"
Get-VBRBackupSession | Where {$_.jobId -eq $job.Id.Guid} | Sort EndTimeUTC -Descending | Select -First 1
Is it just my environments, or is the Get-VBRBackupSession incredibly slow?
Post Reply

Who is online

Users browsing this forum: No registered users and 219 guests