Monday, October 3, 2016

List all Users Who Have Access to Other Exchange Mailboxes (PowerShell)

Get-Mailbox | Get-MailboxPermission | where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $_.IsInherited -eq $false} | Select Identity,User,@{Name='Access Rights';Expression={[string]::join(', ', $_.AccessRights)}} | Export-Csv -NoTypeInformation C:\\mailboxpermissionscheck.csv

No comments:

Post a Comment

 
span.fullpost {display:inline;}