Maintain control of your Microsoft 365 data
Post Reply
HenryA
Enthusiast
Posts: 31
Liked: 3 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: 9452
Liked: 2513 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: 31
Liked: 3 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests