Data Governance Retention Policies Do Not Appear to be Enabled

%3CLINGO-SUB%20id%3D%22lingo-sub-69290%22%20slang%3D%22en-US%22%3EData%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-69290%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20created%20a%20Retention%20Policy%20in%20Data%20Governance%20via%20the%20new%20Security%20and%20Compliance%20Portal.%20%26nbsp%3BWe%20have%20set%20Exchange%20Email%20to%20include%20All%20users%20and%20Exclude%20none.%20%26nbsp%3BFrom%20my%20understanding%2C%20this%20console%20is%20a%20one-stop%20spot%20to%20enable%20all%20of%20the%20backend%20policies%20from%20one%20convenient%20console.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20look%20at%20the%20policy%20created%20in%20the%20GUI%20using%20Powershell%2C%20the%20ExchangeLocation%20information%20fields%20are%20blank.%20%26nbsp%3BAccording%20to%20the%20article%20below%2C%20these%20values%20should%20be%20populated.%20%26nbsp%3BAlso%20from%20the%20article%20below%20these%20fields%20should%20be%20added%20seperately.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20seen%20this%20behavior%20before%3F%20%26nbsp%3BOnce%20you%20set%20the%20Retention%20Policy%20up%2C%20how%20can%20you%20tell%20that%20it's%20enabled%2C%20working%2C%20and%20applying%20to%20one%20user%20vs%20another.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fmt691473(v%3Dexchg.160).aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2Fen-us%2Flibrary%2Fmt691473(v%3Dexchg.160).aspx%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20246px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14469i67F1F25BA3410F62%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22RetentionPolicy.PNG%22%20title%3D%22RetentionPolicy.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14470i7CACAFCF01D19205%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22RetentionPolicy2.PNG%22%20title%3D%22RetentionPolicy2.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F14471iBA60A0EC4DE1B82D%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22RetentionPolicy3.PNG%22%20title%3D%22RetentionPolicy3.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-69290%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECompliance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EeDiscovery%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-389412%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-389412%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F64047%22%20target%3D%22_blank%22%3E%40Jeremy%20Silber%3C%2FA%3E%26nbsp%3B%20did%20anyone%20ever%20get%20back%20with%20you%3F%20I%20am%20also%20looking%20for%20the%20information%20on%26nbsp%3B-ExcludedItemClasses.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-176254%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-176254%22%20slang%3D%22en-US%22%3E%3CP%3EDoesn't%20seem%20to%20be%20available%20for%20me%20either%2C%20most%20likely%20a%20documentation%20error%20or%20a%20feature%20that%20will%20be%20coming%20in%20the%20future.%20You%20should%20be%20able%20to%20adjust%20the%20query%20(-ContentMatchQuery)%20to%20exclude%20certain%20item%20classes%20though.%20Read%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fkeyword-queries-and-search-conditions-for-content-search-c4639c2e-7223-4302-8e0d-b6e10f1c3be3%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fkeyword-queries-and-search-conditions-for-content-search-c4639c2e-7223-4302-8e0d-b6e10f1c3be3%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-176160%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-176160%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Vasil%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20point%20me%20in%20the%20right%20direction%2C%20and%20explain%20how%20to%20execute%20this%20command%3F%3C%2FP%3E%0A%3CPRE%3ESet-RetentionComplianceRule%20%5B-ExcludedItemClasses%20%26lt%3BMultiValuedProperty%26gt%3B%5D%20%26lt%3BCOMMON%20PARAMETERS%26gt%3B%3C%2FPRE%3E%0A%3CP%3EI%20have%20every%20permission%20I%20can%20find%2C%20but%20yet%20the%20-ExcludedItemClass%20does%20not%20seem%20to%20be%20available%20via%20PowerShell.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-172756%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-172756%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20a%20question%20only%20the%20devs%20can%20answer%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-172577%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-172577%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Vasil%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%20that%20is%20exactly%20what%20I%20was%20looking%20for.%26nbsp%3B%20i%20didn't%20notice%20there%20was%20an%20additional%20switch%20that%20had%20to%20be%20used%20to%20get%20the%20full%20details.%26nbsp%3B%20Is%20there%20a%20reason%20for%20needing%20the%20detail%20switch%20as%20opposed%20to%20simply%20exposing%20these%20properties%20by%20default%3F%26nbsp%3B%20Seems%20like%20an%20unnecessary%20step.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-172474%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-172474%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20you%20referring%20to%20the%20*location%20properties%3F%20Those%20will%20only%20be%20populated%20if%20you%20use%20the%20-DistributionDetail%20switch.%20To%20create%20a%20policy%20applied%20to%20only%20Exchange%2C%20use%20the%20-ExchangeLocation%20switch%20with%20the%20%22All%22%20value.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-172457%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-172457%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Vasil%2C%3C%2FP%3E%0A%3CP%3EIf%20empty%20equals%20%22all%22%2C%20why%20is%20it%20that%20when%20I%20create%20a%20Compliance%20Retention%20Policy%20that%20only%20targets%20Exchange%20in%20the%20GUI%2C%20PowerShell%20shows%20%7B%7D%20for%20all%20categories%3A%20sharepoint%2C%20odfb%2C%20exchange%2C%20skype%2C%20and%20moderngroups%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHow%20can%20I%20apply%20a%20RetentionCompliancePolicy%20to%20only%20a%20single%20workload%20via%20PowerShell%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%2C%3CBR%20%2F%3E%3CBR%20%2F%3EJeremy%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-69598%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-69598%22%20slang%3D%22en-US%22%3E%3CP%3EOh%20not%20at%20all!%20%26nbsp%3BI%20meant%20no%20disrespect!%20%26nbsp%3B%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20info!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-69591%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-69591%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20mean%20you%20don't%20trust%20me%3F%20%3A(%3C%2Fimg%3E%20I'm%20not%20aware%20of%20any%20document%20that%20mentions%20this%2C%20if%20that's%20what%20you%20mean.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-69490%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-69490%22%20slang%3D%22en-US%22%3EThanks%20Vasil%20but%20is%20there%20any%20way%20for%20me%20to%20tell%20for%20sure%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-69335%22%20slang%3D%22en-US%22%3ERe%3A%20Data%20Governance%20Retention%20Policies%20Do%20Not%20Appear%20to%20be%20Enabled%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-69335%22%20slang%3D%22en-US%22%3E%3CP%3EEmpty%20equals%20%22all%22%20in%20this%20case.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

We have created a Retention Policy in Data Governance via the new Security and Compliance Portal.  We have set Exchange Email to include All users and Exclude none.  From my understanding, this console is a one-stop spot to enable all of the backend policies from one convenient console.

 

When I look at the policy created in the GUI using Powershell, the ExchangeLocation information fields are blank.  According to the article below, these values should be populated.  Also from the article below these fields should be added seperately.

 

Has anyone seen this behavior before?  Once you set the Retention Policy up, how can you tell that it's enabled, working, and applying to one user vs another.

 

Thanks!

 

https://technet.microsoft.com/en-us/library/mt691473(v=exchg.160).aspx

 

RetentionPolicy.PNGRetentionPolicy2.PNGRetentionPolicy3.PNG

11 Replies
Highlighted

Empty equals "all" in this case.

Highlighted
Thanks Vasil but is there any way for me to tell for sure?
Highlighted

You mean you don't trust me? :( I'm not aware of any document that mentions this, if that's what you mean.

Highlighted

Oh not at all!  I meant no disrespect!  :)

 

Thanks for the info!

Highlighted

Hi Vasil,

If empty equals "all", why is it that when I create a Compliance Retention Policy that only targets Exchange in the GUI, PowerShell shows {} for all categories: sharepoint, odfb, exchange, skype, and moderngroups?

 

How can I apply a RetentionCompliancePolicy to only a single workload via PowerShell?

 

Thanks,

Jeremy

Highlighted

Are you referring to the *location properties? Those will only be populated if you use the -DistributionDetail switch. To create a policy applied to only Exchange, use the -ExchangeLocation switch with the "All" value.

Highlighted

Hi Vasil,

 

Thanks, that is exactly what I was looking for.  i didn't notice there was an additional switch that had to be used to get the full details.  Is there a reason for needing the detail switch as opposed to simply exposing these properties by default?  Seems like an unnecessary step.

 

Highlighted

That's a question only the devs can answer :)

Highlighted

Hi Vasil,

Could you point me in the right direction, and explain how to execute this command?

Set-RetentionComplianceRule [-ExcludedItemClasses <MultiValuedProperty>] <COMMON PARAMETERS>

I have every permission I can find, but yet the -ExcludedItemClass does not seem to be available via PowerShell.

 

Thanks

Highlighted

Doesn't seem to be available for me either, most likely a documentation error or a feature that will be coming in the future. You should be able to adjust the query (-ContentMatchQuery) to exclude certain item classes though. Read here: https://support.office.com/en-us/article/keyword-queries-and-search-conditions-for-content-search-c4...

Highlighted

@Jeremy Silber  did anyone ever get back with you? I am also looking for the information on -ExcludedItemClasses.