PowerShell script exchange
Markus.K1985
Expert
Posts: 103 Liked: 28 times
Joined: Dec 08, 2014 2:30 pm
Full Name: Markus Kraus
Contact:
Post
by Markus.K1985 » Nov 21, 2023 7:51 pm
this post
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: 2021 Liked: 673 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:
Post
by oleg.feoktistov » Nov 22, 2023 12:47 pm
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
Users browsing this forum: No registered users and 30 guests