PowerShell script exchange
Post Reply
aantonacci@shci.ca
Influencer
Posts: 21
Liked: never
Joined: Oct 19, 2020 7:42 pm
Full Name: Anthony Antonacci
Contact:

How to Pull "actions" from job sessions

Post by aantonacci@shci.ca »

Hi,

I pull my last session using "$job.FindlastSession()"

I noticed that the session states Failed
The tasks inside the sessions are all success
Our issues is backup Integrety issue (in the console under "actions, its very clear)

how do I pull the "action" list of a session ? (i assume there is a log and in the log there is a reference to the session id...)
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to Pull "actions" from job sessions

Post by oleg.feoktistov »

Hi Anthony,

I believe your question was partly answered by @david.domask here. The difference would be that if you need to pull all the actions you would do something like this instead of $logs.GetAttentionRecords():

Code: Select all

$logs.UpdatedRecords | select Title, Status
Thanks,
Oleg
aantonacci@shci.ca
Influencer
Posts: 21
Liked: never
Joined: Oct 19, 2020 7:42 pm
Full Name: Anthony Antonacci
Contact:

Re: How to Pull "actions" from job sessions

Post by aantonacci@shci.ca »

Haha! I posted that question and left on vacation, forgot to read it!

This is exactly what I need... as I am now realizing that even if a Task is successful the session could be fail!
Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests