【问题标题】:Exchange Management Shell strip outputExchange 命令行管理程序条输出
【发布时间】:2017-09-02 00:36:53
【问题描述】:

Exchange 2010,我在 Exchange 管理 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 的正确语法是什么? 最终结果是为每个用户分配一个监督邮箱的完全访问权限。

【问题讨论】:

    标签: exchange-server-2010 exchange-management-shell


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-18
      • 2012-01-25
      • 2013-12-17
      • 2018-05-08
      • 2020-09-10
      • 1970-01-01
      • 2011-02-08
      相关资源
      最近更新 更多