PowerShell script exchange
Post Reply
emcs
Novice
Posts: 8
Liked: 2 times
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
Product Manager
Posts: 8549
Liked: 2223 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: 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
Novice
Posts: 8
Liked: 2 times
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
Product Manager
Posts: 8549
Liked: 2223 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: 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: Amazon [Bot] and 11 guests