交换管理外壳条输出


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取回的正确语法是什么?最终结果是将监督邮箱的完全访问权限分配给每个用户。

将 -ExpandProperty 选项添加到"选择"cmdlet。 Select-obejct -ExpandProperty Identity .也可以使用快捷方式 -exp。有关"选择"或"选择对象"cmdlet 的语法,请参阅 http://www.colorconsole.de/PS_Windows/en/Select-Object.htm 或 https://ss64.com/ps/select-object.html