I’m trying to export all OneDrive users’ data as ZIP files using PowerShell.
The issue I’m running into is that some users have the same display name.
Get-VEODUser returns a VBOOneDriveUser object that only contains the following properties according to the documentation:
https://helpcenter.veeam.com/docs/vbr/e ... tml?ver=13
- Name
- Organization
- Base64UniqueKey
Because of this, I can’t uniquely identify which user is which when multiple users share the same name.
Here’s the relevant part of my script:
Code: Select all
$session = Start-VEODRestoreSession -RestorePoint $rp -Job $job
$user = Get-VEODUser -Session $session | Where-Object Name -eq $username
Save-VEODDocument -User $user -Path $target -AsZipHas anyone solved this before?
Is there a way to retrieve a unique identifier (UPN, email address, ObjectId, etc.) from Get-VEODUser, or another method to uniquely match users?
Or, is there another way to export onedrive data?
Thanks in advance!