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
-
- Influencer
- Posts: 14
- Liked: never
- Joined: Apr 15, 2020 2:34 pm
- Full Name: Michael Rocholl
- Contact:
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: Check result of backup job (Powershell)
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
GitHub: https://github.com/nielsengelen
-
- Influencer
- Posts: 14
- Liked: never
- Joined: Apr 15, 2020 2:34 pm
- Full Name: Michael Rocholl
- Contact:
Re: Check result of backup job (Powershell)
Thanks - I'll try - Michael
Who is online
Users browsing this forum: No registered users and 24 guests