Search code examples
powershelloffice365exchange-serverskype-for-business

Powershell: Getting users for whom retention policy has been enabled based on content type


Is there a way to get the list of users for which retention policy has been enabled based on the content type i.e: Email, Skype for Business, Onedrive and et al.? There are these commands to see the policy and rule but I could not find anyway to get the content and the list of users for which retention policy has been enabled.

Get-RetentionComplianceRule

Get-RetentionCompliancePolicy

enter image description here

Basically, I want a way to retrieve the users for Skype for Business in enclosed on red section in the image above.


Solution

  • Try this: Get-RetentionCompliancePolicy -identity "SfB_Retention" -distributiondetail | Select-Object SkypeLocation