Hello, firstly apologies if this has been addressed before, but I could not find any useful information about it.
It is usually common for me to be passed lists of even 60 users to exclude from jobs. I wanted to know if there is a way to do this without having to do it one by one, job by job. Adding users to a group and excluding the whole group is not a valid option. Is there a way to do it by powershell for example?
I have seen https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=70 but I don't know if it would be possible to use it in version 6 or how to apply it to users.
Thanks a lot for your help.
-
- Lurker
- Posts: 1
- Liked: never
- Joined: Dec 20, 2023 11:04 am
- Full Name: Aida Seoane
- Contact:
-
- Product Manager
- Posts: 10083
- Liked: 2679 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Exclude multiple users from all jobs
Hi Aida
Yes, PowerShell would be the way --> https://helpcenter.veeam.com/archive/vb ... pitem.html
With New-VBOBackupItem and Add-VBOExcludedBackupItem you can exclude a user from a job. Now you just need to adjust the following code and add a for each loop to process a list of users (imported by CSV) for every job you have.
Example for excluding a single user from a single job:
Let me know if you need help with the foreach loop.
Best,
Fabian
Yes, PowerShell would be the way --> https://helpcenter.veeam.com/archive/vb ... pitem.html
With New-VBOBackupItem and Add-VBOExcludedBackupItem you can exclude a user from a job. Now you just need to adjust the following code and add a for each loop to process a list of users (imported by CSV) for every job you have.
Example for excluding a single user from a single job:
Code: Select all
$org = Get-VBOOrganization -Name "Your M365 Org"
$job = Get-VBOJob -Name "Backup Job"
$user = Get-VBOOrganizationUser -Organization $org -Username "User to Exclude in the UPN format"
$object = New-VBOBackupItem -User $user
Add-VBOExcludedBackupItem -Job $job -BackupItem $object
Best,
Fabian
Product Management Analyst @ Veeam Software
-
- Enthusiast
- Posts: 78
- Liked: 4 times
- Joined: Sep 26, 2022 9:13 pm
- Full Name: Rajeev Mehta
- Contact:
Re: Exclude multiple users from all jobs
what if we are wanting to exlude some groups
-
- Veeam Software
- Posts: 3270
- Liked: 791 times
- Joined: Oct 21, 2011 11:22 am
- Full Name: Polina Vasileva
- Contact:
Re: Exclude multiple users from all jobs
then you need to specify which groups you want to exclude - similar to in the above example with users
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=70
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=70
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=70
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=70
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], GxZerberus and 25 guests