Maintain control of your Microsoft 365 data
Post Reply
HenryA
Enthusiast
Posts: 35
Liked: 4 times
Joined: Aug 16, 2023 5:31 pm
Full Name: Henry Aragon
Contact:

How to remove specific users from old snapshots

Post by HenryA »

Good day all.

We backed up a DL with some users that we did not need to back up, and only found out about 1 week later. We added the DL to the exclusion list, but the previous snapshots still have data for those users.

I'm trying to figure out what PowerShell command will delete only that user's data from all relevant snapshots. Can anyone point me in the right direction here?
Mildur
Product Manager
Posts: 10290
Liked: 2747 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: How to remove specific users from old snapshots

Post by Mildur »

Hello Henry

The command is Remove-VBOEntityData
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=70

You can follow Example 1:

Code: Select all

$repository = Get-VBORepository -Name "REPOSITORY NAME"
$user = Get-VBOEntityData -Type User -Repository $repository -Name "USER NAME"
Remove-VBOEntityData -Repository $repository -User $user -Mailbox -ArchiveMailbox -OneDrive -Sites
Please be aware, with jet based databases, you won't reclaim any space with the deletion. Deleted blocks in the database will be marked as free and can be reused in further backup sessions.

Best,
Fabian
Product Management Analyst @ Veeam Software
HenryA
Enthusiast
Posts: 35
Liked: 4 times
Joined: Aug 16, 2023 5:31 pm
Full Name: Henry Aragon
Contact:

Re: How to remove specific users from old snapshots

Post by HenryA »

Hello Fabian.

This is perfect! Thank you so much!
ajulio
Influencer
Posts: 11
Liked: 2 times
Joined: Jan 16, 2025 10:54 am
Full Name: Antonio Julio
Contact:

Re: How to remove specific users from old snapshots

Post by ajulio »

Hello,
I receive a warning status. Where can I see what it means?
Antonio Julio
Mildur
Product Manager
Posts: 10290
Liked: 2747 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: How to remove specific users from old snapshots

Post by Mildur »

Hi Antonio

Warning and Error messages should be investigated by our customer support team.

Just for my own interest, what did the warning say? Normally the warning should be self explaining and provide you with some hint what could be wrong.

Best,
Fabian
Product Management Analyst @ Veeam Software
DaStivi
Veeam Legend
Posts: 364
Liked: 56 times
Joined: Jun 30, 2015 9:13 am
Full Name: Stephan Lang
Location: Austria
Contact:

Re: How to remove specific users from old snapshots

Post by DaStivi »

ajulio wrote: Feb 28, 2025 4:20 pm Hello,
I receive a warning status. Where can I see what it means?
What was the warning after using the remove-vboentitydata cmdlets?

I used it a couple of times.
Post Reply

Who is online

Users browsing this forum: No registered users and 74 guests