PowerShell script exchange
Post Reply
goran_q
Lurker
Posts: 1
Liked: never
Joined: Nov 18, 2021 6:22 pm
Full Name: Goran
Contact:

Get-VBRTaskSession - computer job equivalent

Post by goran_q »

Hi to all,

If you want to retrieve VM job details you can run Get-VBRTaskSession for specific VM job session.
Since in v11 is recommended to use Get-VBRComputerBackupJob for computer jobs, and (indirect) Get-VBRComputerBackupJobSession for computer job sessions, I don't see how is possible to retrieve computer jobs task sessions (Get-VBRTaskSession with computer job sessions ids does not work).

Is it possible to retrieve computer jobs task sessions in v11?

Thank you
Goran
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Get-VBRTaskSession - computer job equivalent

Post by oleg.feoktistov » 1 person likes this post

Hi Goran,

Get-VBRTaskSession actually does retrieve task sessions for agent backup job. I described the solution in this post.
The misunderstanding comes from the agent job session hierarchy features and how Get-VBRComputerBackupJobSession works. Agent management jobs have parent and child backup sessions, so Get-VBRComputerBackupJobSession returns both. The approach is to choose the child one as it is actually where you can get the info on a task session from.


Thanks,
Oleg
tmjidaho
Service Provider
Posts: 11
Liked: 1 time
Joined: Feb 26, 2019 6:57 pm
Full Name: Thomas L Moore
Location: Teton Valley, Idaho
Contact:

Re: Get-VBRTaskSession - computer job equivalent

Post by tmjidaho »

Oleg,

Your link posted below does not work. Is there a chance you could re-post the content?

Thanks in Advance,
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests