What is the Powershell command to configure a new Retention Policy in the Information Governance?

%3CLINGO-SUB%20id%3D%22lingo-sub-1398825%22%20slang%3D%22en-US%22%3EWhat%20is%20the%20Powershell%20command%20to%20configure%20a%20new%20Retention%20Policy%20in%20the%20Information%20Governance%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398825%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20Looking%20for%20the%20PowerShell%20command%20to%20configure%26nbsp%3B%3CFONT%3Ea%20new%20Retention%20Policy%20in%20the%20Information%20Governance.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%3EI%20am%20%3CSTRONG%3Enot%3C%2FSTRONG%3E%20Looking%20for%20the%20PowerShell%20Command%20to%20apply%20Retention%20Tags%2C%20which%20is%3CBR%20%2F%3ENew-RetentionPolicy.%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EI%20would%20like%20to%20exclude%20an%20IPM%20Message%20Class%20for%20Voice%20Mail%2C%20which%20is%20not%20possible%20through%20the%20UI.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EThanks%2C%3CBR%20%2F%3EFranck%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1398825%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ERetention%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1399700%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20Powershell%20command%20to%20configure%20a%20new%20Retention%20Policy%20in%20the%20Information%20Governance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1399700%22%20slang%3D%22en-US%22%3E%3CP%3ETo%20work%20with%20Retention%20policies%20in%20the%20SCC%2C%20use%20the%26nbsp%3B%3CFONT%20style%3D%22background-color%3A%20%23ffffff%3B%22%3ENew-RetentionCompliancePolicy%3C%2FFONT%3E%20cmdlet.%20That%20said%2C%20if%20you%20use%20the%20SCC%20policies%2C%20actions%20like%20excluding%20specific%20message%20classes%20are%20not%20possible%2C%20the%20policy%20will%20apply%20to%20all%20messages.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1399759%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20Powershell%20command%20to%20configure%20a%20new%20Retention%20Policy%20in%20the%20Information%20Governance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1399759%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%20%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebut%20in%20the%26nbsp%3B%3CSTRONG%3E%3CFONT%3ENew-RetentionCompliancePolicy%3C%2FFONT%3E%3C%2FSTRONG%3E%3CFONT%3E%20I%20have%20no%20option%20to%20define%20the%20Settings%20of%20the%20Policy%2C%20e.g.%20how%20many%20years%20I%20want%20the%20Retention%20to%20be%20in%20place.%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3EIt%20seems%20to%20me%20that%20this%20is%20defined%20in%20the%3C%2FFONT%3E%3CSTRONG%3E%3CFONT%3E%3CSTRONG%3E%3CFONT%3ENew-RetentionComplianceRule%3C%2FFONT%3E%3C%2FSTRONG%3E.%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3ESo%20what%20is%20defined%20in%20a%20new%20SCC%20Retention%20Policy%20UI%20seems%20to%20be%20a%20mix%20of%20%3C%2FFONT%3E%3CSTRONG%3E%3CFONT%3E%3CSTRONG%3E%3CFONT%3ENew-RetentionCompliancePolicy%26nbsp%3B%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3CFONT%3Eand%26nbsp%3B%3C%2FFONT%3E%3CSTRONG%3E%3CFONT%3E%3CSTRONG%3E%3CFONT%3ENew-RetentionComplianceRule%3F%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CFONT%3E%3CFONT%3EAm%20I%20correct%20here%3F%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CFONT%3E%3CSTRONG%3E%3CFONT%3EThe%26nbsp%3B%3CSTRONG%3ENew-RetentionComplianceRule%20%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FSTRONG%3E%3CFONT%3E%3CFONT%3Ewould%20give%20me%20the%20Option%20of%20excluding%20IPM%20classes.%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3E%3CFONT%3EThanks%2C%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%3E%3CFONT%3EFranck%3C%2FFONT%3E%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1399811%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20the%20Powershell%20command%20to%20configure%20a%20new%20Retention%20Policy%20in%20the%20Information%20Governance%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1399811%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20the%20two%20cmdlets%20go%20hand%20in%20hand%2C%20but%20technically%20the%20policy%20one%20is%20the%20%22parent%22.%20I%20forgot%20about%20the%20ExcludedItemClasses%20parameter%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

Hi there,

 

I am Looking for the PowerShell command to configure a new Retention Policy in the Information Governance.

I am not Looking for the PowerShell Command to apply Retention Tags, which is
New-RetentionPolicy.

 

I would like to exclude an IPM Message Class for Voice Mail, which is not possible through the UI.

 

Thanks,
Franck

 

 

3 Replies
Highlighted

To work with Retention policies in the SCC, use the New-RetentionCompliancePolicy cmdlet. That said, if you use the SCC policies, actions like excluding specific message classes are not possible, the policy will apply to all messages.

Highlighted

Thanks @Vasil Michev ,

 

but in the New-RetentionCompliancePolicy I have no option to define the Settings of the Policy, e.g. how many years I want the Retention to be in place.

 

It seems to me that this is defined in theNew-RetentionComplianceRule.

 

So what is defined in a new SCC Retention Policy UI seems to be a mix of New-RetentionCompliancePolicy and New-RetentionComplianceRule?

Am I correct here?

 

The New-RetentionComplianceRule would give me the Option of excluding IPM classes.

 

Thanks,

Franck

Highlighted

Yes, the two cmdlets go hand in hand, but technically the policy one is the "parent". I forgot about the ExcludedItemClasses parameter :)