是否有任何powershell脚本通过powershell进行操作来找出哪些单个用户有权访问哪些共享邮箱
答案 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