Powershell交换每个用户的共享邮箱

时间:2019-02-26 16:48:46

标签: powershell exchange-server

是否有任何powershell脚本通过powershell进行操作来找出哪些单个用户有权访问哪些共享邮箱

1 个答案:

答案 0 :(得分:0)

$Mailboxes = Get-Mailbox -RecipientTypeDetails SharedMailbox -ResultSize:Unlimited | Select Identity,Alias,DisplayName | sort displayname
$Mailboxes | sort displayname | foreach {Get-MailboxPermission -Identity $_.alias | ft identity,user,accessrights} > C:\Temp\SharedPermissions.txt

来源:https://www.msazureteam.com/?p=500