Exchange 2010,我在 Exchange Management Shell 中使用以下内容
$mailidentities = Get-Mailbox | Get-MailboxPermission | where {$_.identity.tostring() -like "* STAFF/*" -and $_.identity.tostring() -NotLike "*Ex_Staff*" -and $_.User.tostring() -like "*SELF*" -and $_.IsInherited -eq $false} | Select-object Identity
foreach ($mailidentity in $mailidentities)
{
Write-Host "$mailidentity"
}
返回结果 @{Identity=domain/Group/UserName}
什么是正确的语法才能返回domain/Group/UserName
?最终结果是为每个用户分配对监督邮箱的完全访问权限。