djm968 Posted December 10, 2021 Posted December 10, 2021 Anyone know if it's possible to set a retention policy label via PowerShell for a single folder in a mailbox? I can set the retention policy on the entire mailbox, but I want to target a specific folder.
Boredguy Posted December 10, 2021 Posted December 10, 2021 Do you have a "Personal" type Retention tag for the duration that you want on that folder defined and assigned to the Retention Policy the user is assigned (if not Default) For example, in the old Exchange Admin Center -> Retention Tags, we have the default option of "Personal 5 Year Move to Archive" rule which is a type "Personal". If I apply that to our Default Retention Policy users can then select that tag for their folder. You can't just create a tag, it needs to be assigned to the policy for it to be available.
djm968 Posted December 10, 2021 Author Posted December 10, 2021 The tag has already been created and is available to the user to assign manually to the folder. I can automate the creation of the folder with PowerShell but I want to automate the assignment of the tag to the folder. Cannot find any way of doing this through PowerShell
Boredguy Posted December 10, 2021 Posted December 10, 2021 Don't think you can as that folder might not exist. You can specify some default folders, such as Junk/Deleted etc as the tag, but Personal ones is user assignment only. I've not seen a Powershell command to do it
djm968 Posted December 13, 2021 Author Posted December 13, 2021 Don't think you can as that folder might not exist. You can specify some default folders, such as Junk/Deleted etc as the tag, but Personal ones is user assignment only. I've not seen a Powershell command to do it I think you are right, I couldn't find a way of doing it in Powershell either, but I thought I would throw it on here.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now