Maintain control of your Microsoft 365 data
Post Reply
kontakt@roc-k-it.com
Influencer
Posts: 14
Liked: never
Joined: Apr 15, 2020 2:34 pm
Full Name: Michael Rocholl
Contact:

Check result of backup job (Powershell)

Post by kontakt@roc-k-it.com »

How can I best test success / failure of a Powershell backup job like this:

$job = Get-VBOJob -Name "ROCKIT10_VEEAM"
Start-VBOJob -Job $job

Many thanks
Michael
nielsengelen
Product Manager
Posts: 5636
Liked: 1181 times
Joined: Jul 15, 2013 11:09 am
Full Name: Niels Engelen
Contact:

Re: Check result of backup job (Powershell)

Post by nielsengelen »

U can do this via Get-VBOJobSession. Use -Last to get the last session log.

Code: Select all

$job = Get-VBOJob -Name "ROCKIT10_VEEAM"
Get-VBOJobSession -Job $job -Last
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
kontakt@roc-k-it.com
Influencer
Posts: 14
Liked: never
Joined: Apr 15, 2020 2:34 pm
Full Name: Michael Rocholl
Contact:

Re: Check result of backup job (Powershell)

Post by kontakt@roc-k-it.com »

Thanks - I'll try - Michael
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests