Maintain control of your Microsoft 365 data
Post Reply
DanielJ
Service Provider
Posts: 200
Liked: 32 times
Joined: Jun 10, 2019 12:19 pm
Full Name: Daniel Johansson
Contact:

Get retention period through Powershell

Post by DanielJ »

When looking at the values returned by Get-VBORepository, RetentionPeriod is a "friendly" value like "180 days" or "1 year". But when trying to extract this value for a report, it changes to (for example) "180" or "Year1". Is there some way of getting the friendly value, or do I have to build it up from the values of RetentionPeriod, CustomRetentionPeriod and CustomRetentionPeriodType? That doesn't seem straightforward. For repositories with 180 days retention, I get RetentionPeriod = 180, CustomRetentionPeriod = nothing and CustomRetentionPeriodType = "Days". That's easy enough, but for a repository with 1 year retention, I get RetentionPeriod = "Year1", CustomRetentionPeriod = still nothing and CustomRetentionPeriodType = "Months". This would be a lot more logical if there was one value for retention units (days, months, years) and one value for the number of such units.
Polina
Veeam Software
Posts: 2981
Liked: 708 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: Get retention period through Powershell

Post by Polina »

Hi Daniel,

Thanks for the feedback, makes sense. I'll ask the team to look into it.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests