PowerShell script exchange
Post Reply
Markus.K1985
Veeam Vanguard
Posts: 103
Liked: 28 times
Joined: Dec 08, 2014 2:30 pm
Full Name: Markus Kraus
Contact:

[Veeam.Backup.Core.CBackupSession] JobTypes

Post by Markus.K1985 »

Hi,

is there a list of all possible Job Types in the [Veeam.Backup.Core.CBackupSession] object available?

Code: Select all

Get-VBRBackupSession | Select-Object JobType 

               JobType
               -------
SimpleBackupCopyWorker
SimpleBackupCopyWorker
SimpleBackupCopyWorker
oleg.feoktistov
Veeam Software
Posts: 1918
Liked: 636 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: [Veeam.Backup.Core.CBackupSession] JobTypes

Post by oleg.feoktistov » 1 person likes this post

Hi Markus,

You can find that list pretty easily:

1. Get the full name of the type returned for JobType property:

Code: Select all

PS C:\Users\Administrator> $session = Get-VBRBackupSession | select -First 1
$session.JobType.GetType().FullName
Veeam.Backup.Model.EDbJobType
   
2. Find that type in a namespace and display enum values for it:

Code: Select all

[Veeam.Backup.Model.EDbJobType].GetEnumValues()
Please note that Get-VBRBackupSession cmdlet filters out types that are not relevant to backup/backup copy/replica jobs, so not all of the values that you see in EDbJobType enum are connected to Get-VBRBackupSession.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests