PowerShell script exchange
Post Reply
emcs
Lurker
Posts: 2
Liked: never
Joined: Jul 01, 2022 12:43 pm
Full Name: ed h
Contact:

Managed by Agent Job Session Results

Post by emcs »

This should be very simple...

We have a job that is 'Managed by agent' job mode. We want to get the result of the backup job sessions via PowerShell, which it would appear we can use the cmdlet Get-VBRComputerBackupJobSession for, however this cmdlet returns all session types, including 'Windows Agent Policy' sessions, which are relating to agents receiving their policy and we are not interested in this - we only care about 'Windows Agent Backup' sessions. Unfortunately, the session type isn't returned by the cmdlet!

Mildur
Veeam Software
Posts: 3553
Liked: 1181 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: St. Gallen, Switzerland
Contact:

Re: Managed by Agent Job Session Results

Post by Mildur »

Hi Ed

Welcome to the forum.
Have you tried this command? The command will query all "Managed by Agent - Backup Job" Sessions.

https://helpcenter.veeam.com/docs/backu ... ml?ver=110

Code: Select all

Get-VBREPSession
Product Management Analyst @ Veeam Software

emcs
Lurker
Posts: 2
Liked: never
Joined: Jul 01, 2022 12:43 pm
Full Name: ed h
Contact:

Re: Managed by Agent Job Session Results

Post by emcs »

Code: Select all

Get-VBREPSession
That cmdlet will do perfectly - Thanks Fabian!

Mildur
Veeam Software
Posts: 3553
Liked: 1181 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: St. Gallen, Switzerland
Contact:

Re: Managed by Agent Job Session Results

Post by Mildur »

Your welcome. :)
Product Management Analyst @ Veeam Software

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests