Mittwoch, 17. August 2011

Finding users who have Send-As or Full Access permissions to mailboxes

The following one-liner lists all mailboxes where another user has Send-As permissions, and who that user is:
Get-Mailbox -Resultsize Unlimited | Get-ADPermission | ? {($_.ExtendedRights -like "*send-as*") -and -not ($_.User -like "nt authority\self")} | ft Identity, User -auto

And this one-liner displays all mailboxes where another user has Full Access permissions, and who that user is:

Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | ? {($_.AccessRights -match "FullAccess") -and -not ($_.User -like "NT AUTHORITY\SELF")} | ft Identity, User

Both of these one-liners are very useful to determine who has access to other people's mailboxes.

Keine Kommentare:

Kommentar veröffentlichen

Windows 10 Update Fehler 0x80d02002, 0x80244019 und 0xc1800118

Wir haben in den letzten Tagen bereits mehrfach über die Verteilung des  Windows 10 Anniversary Update über den  WSUS  (Windows Server Upda...