Feedback by UserVoice

Steve March

My feedback

  1. 18 votes
    Sign in
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    An error occurred while saving the comment
    Steve March commented  · 

    To get a list of users in a policy, I had to do the following:
    $Mailboxes = (Get-RetentionCompliancePolicy -Identity "Policy" -DistributionDetail | Select -ExpandProperty ExchangeLocation)

    $(Foreach ($policyLocation in $Mailboxes) {
    New-Object PSObject -Property @{
    DisplayName = $policyLocation.DisplayName
    UPN = $
    } ) | select-object -Property DisplayName, UPN | Export-Csv -Path "PolicyUsers.csv" -NoTypeInformation

Feedback and Knowledge Base