Rename Retention Tags

Rising Flight 4,316 Reputation points
2022-02-17T22:13:41.427+00:00

Hi Experts

i have a retention tags and i want to rename them using PowerShell. Lets say the Tag name is Test123 and i want to rename it to TestABC,

will the below syntax work and how do i get the retention tag GUID of Test123

Set-RetentionPolicyTag -RetentionID "Test123" -Name "TestABC"

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,504 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 147.4K Reputation points MVP
    2022-02-17T23:22:01.707+00:00

    You wouldnt use that generally:
    https://learn.microsoft.com/en-us/powershell/module/exchange/set-retentionpolicytag?view=exchange-ps
    -RetentionId
    The RetentionId parameter specifies an alternate tag ID to ensure the retention tag found on mailbox items tagged in one Exchange organization matches the tag when the mailbox is moved to another Exchange organization (for example, in a cross-forest deployment or in a cross-premises deployment, when a mailbox is moved from an on-premises Exchange server to the cloud, or a cloud-based mailbox is moved to an on-premises Exchange server).

    Typically, you don't need to specify or modify the RetentionId parameter for a retention tag. This parameter is populated automatically when importing retention tags in a cross-forest or cross-premises deployment.

    instead use this:

    Set-RetentionPolicyTag -Identity "Test123" -Name "TestABC"  
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.