PowerShell script exchange
Post Reply
npitacco
Influencer
Posts: 18
Liked: never
Joined: Jan 12, 2010 3:33 pm
Full Name: Nadia Pitacco
Contact:

Veeam Job Details using powershell

Post by npitacco »

This is nor really a new topic (I have seen past requests), but as far as I know, the most frequent answer is to use VeeamOne, and unfortunately this is not a good answer for me.
The "Job Configuration Dump" report doesn't even list which machine are part of a backup. I need to document each job in a readable way for compliance.
So, anyone else has the same problem, has solved it and is willing to share?
Thanks in advance
Nadia

veremin
Product Manager
Posts: 17834
Liked: 1662 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Veeam Job Details using powershell

Post by veremin »

I think up to that moment all of the job settings have been covered on this subforum. So, if you provide which exact settings you want to get exported, we might point you to right direction. Thanks!

oleg.feoktistov
Veeam Software
Posts: 510
Liked: 176 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam Job Details using powershell

Post by oleg.feoktistov » 3 people like this post

Hi @npitacco,

Besides the forum, VeeamHub is our treasure island. I'd recommend to check MimicReport. If it's not quite what you are looking for, just let us know and we'll figure something out here.

Thanks,
Oleg

npitacco
Influencer
Posts: 18
Liked: never
Joined: Jan 12, 2010 3:33 pm
Full Name: Nadia Pitacco
Contact:

Re: Veeam Job Details using powershell

Post by npitacco »

Thank you for the pointer to BR-MimicReport. It is not what I need, but is is certainly interesting.
About which details I need:
I want to get the same details I have in the modify job wizard without using print screen. The main reason is that print screen are not easily compared.
The "Job Configuration Dump" report could be a part of the answer, but not all
I need:
* Job Name
* Job description
* Virtual machines included
* Virtual machines excluded
* Backup Proxy
* Backup Repository
* Retention Policy
* Backup mode
* Active full backup (if scheduled)
* Maintenance advanced settings
* Storage advanced settings
* Notifications advanced settings
* vSphere advanced settings
* Scripts advanced settings
* Guest processing application-avare status and related settins (Processing options and credentials)
* Schedule and retry options
As you can see it is quite a list.

Thanks in advance
Nadia

jhoughes
Veeam Software
Posts: 209
Liked: 71 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Austin, TX
Contact:

Re: Veeam Job Details using powershell

Post by jhoughes »

Can you post your current code, and which details you are currently having issues with finding or gathering?
Husband, Father, Solutions Architect, Geek Extraordinaire | @AustinVMUG & @ATXPowerShell leader | VMUG US South Regional Champion | VMware vExpert | Cisco Champion

oleg.feoktistov
Veeam Software
Posts: 510
Liked: 176 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam Job Details using powershell

Post by oleg.feoktistov »

@npitacco, yep, quite a list. But you just described all the options retrievable with Get-VBRJob cmdlet even almost keeping precise order of settings :wink:
If you install PowershellCookbook module and apply the following, you'll see all the options you need browsing here and there:

Code: Select all

$job = Get-VBRJob -Name 'BackupJob'
$job | Show-Object
As for friendly view in the report itself, you could look into BR-Mimic Report and see how HTML part is implemented.
If you need any further help with all that, let us know. Thanks!

npitacco
Influencer
Posts: 18
Liked: never
Joined: Jan 12, 2010 3:33 pm
Full Name: Nadia Pitacco
Contact:

Re: Veeam Job Details using powershell

Post by npitacco »

Thank you, I believe with a lot of patience I will be able to pry out the information I need.
But .. can you give me a hint about where do i find the list of VM that are backed up?

oleg.feoktistov
Veeam Software
Posts: 510
Liked: 176 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Veeam Job Details using powershell

Post by oleg.feoktistov » 1 person likes this post

For job includes It's either that:

Code: Select all

$job = Get-VBRJob -Name 'BackupJob'
$objects = $job.GetObjectsInJob()
Or that:

Code: Select all

$job = Get-VBRJob -Name 'BackupJob'
$objects = Get-VBRJobObject -Job $job
Thanks!

npitacco
Influencer
Posts: 18
Liked: never
Joined: Jan 12, 2010 3:33 pm
Full Name: Nadia Pitacco
Contact:

Re: Veeam Job Details using powershell

Post by npitacco »

Grazie mille :-)

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests