Maintain control of your Microsoft 365 data
Post Reply
mjr.epicfail
Veeam Legend
Posts: 166
Liked: 39 times
Joined: Apr 22, 2022 12:14 pm
Full Name: Danny de Heer
Contact:

Feature Request: VBM365 Get-VBOEntityData -type Site

Post by mjr.epicfail »

Hi all,

I am currently developing a tool to delete single items (or complete tenants and all in between) from a repository and I see that the command Get-VBOEntityData only has 1 sharepoint option "-Site".
When run you get all sharepoint sites, including the personal ones.
Is there a possibility to create a property in the output to mark it as personalsite?

Current output is:

Code: Select all

Title                    
Url                      
Organization             
BackedUpTime             
DisplayName              
Type                     
Where Type always comes back as Site, maybe that could be Site or PersonalSite to mark the difference.

Why do I want this?
When enumerating all items I get doubles when requesting users (which also includes PersonalSites) and when requesting sites you get those too.
VMCE / Veeam Legend 1*
mjr.epicfail
Veeam Legend
Posts: 166
Liked: 39 times
Joined: Apr 22, 2022 12:14 pm
Full Name: Danny de Heer
Contact:

Re: Feature Request: VBM365 Get-VBOEntityData -type Site

Post by mjr.epicfail »

Oh, i missed that this happens for OneDrives too, same request ;)
VMCE / Veeam Legend 1*
Polina
Veeam Software
Posts: 2981
Liked: 708 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: Feature Request: VBM365 Get-VBOEntityData -type Site

Post by Polina »

Hi Danny,

With the Get-VBOEntityData -Type User, you can get the list of users in the specified repository and their backed-up data, including OneDrive and Personal sites (i.e. IsOneDriveBackedUp=True/False, IsPersonalSiteBackedUp=True/False).
mjr.epicfail
Veeam Legend
Posts: 166
Liked: 39 times
Joined: Apr 22, 2022 12:14 pm
Full Name: Danny de Heer
Contact:

Re: Feature Request: VBM365 Get-VBOEntityData -type Site

Post by mjr.epicfail »

Hi Polina,

I know, however if you run Get-VBOEntityData -type Site you also get the all the SharePointsites , including the personal sites.
The same happens for OneDrives.

My question is if we can mark it that its personal. Now I need to filter the Personal SharePointsites on the property URL "*/personal/*". That's rather ugly and prone to mistakes.

User:

Code: Select all

Get-VBOEntityData -Type User -Repository $VBMRepository | select-object *

ArchiveName              : 
IsMailboxBackedUp        : True
MailboxBackedUpTime      : 12-12-2023 21:14:56
IsArchiveBackedUp        : False
ArchiveBackedUpTime      : 
Email                    : admin@*******.onmicrosoft.com
IsOneDriveBackedUp       : True
OneDriveBackedUpTime     : 12-12-2023 21:00:27
IsPersonalSiteBackedUp   : True
PersonalSiteBackedUpTime : 12-12-2023 21:05:09
OneDriveUrl              : {https://*******-my.sharepoint.com/personal/admin_*******_onmicrosoft_com}
PersonalSiteUrl          : {https://*******-my.sharepoint.com/personal/admin_*******_onmicrosoft_com}
Organization             : *******.onmicrosoft.com
AccountType              : User
DisplayName              : *******
Type                     : User
Sites:

Code: Select all

Get-VBOEntityData -Type Site-Repository $VBMRepository | select-object *

Title        : *******
Url          : https://*******-my.sharepoint.com/personal/admin_*******_onmicrosoft_com
BackedUpTime : 12-12-2023 22:05:09
Organization : *******.onmicrosoft.com
Type         : Site

Title        : Communicatiesite
Url          : https://*******.sharepoint.com
BackedUpTime : 12-12-2023 22:11:51
Organization : *******.onmicrosoft.com
Type         : Site
VMCE / Veeam Legend 1*
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 13 guests