【发布时间】:2019-02-08 11:53:06
【问题描述】:
我需要知道哪个 Exchange 用户邮箱当前被不止一个人访问,而不是用户显示名本身。这是我的代码:
Get-Mailbox -ResultSize Unlimited | Get-MailboxPermission | Where-Object { ($_.AccessRights -eq "FullAccess") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT AUTHORITY\SELF") -and -not ($_.User -like '*Discovery Management*') } |
Select @{Name="User Name";expression={(Get-Recipient $_.user.tostring()).displayname}}, Identity,AccessRights,PrimarySMTPAddress | Export-Csv C:\Results.csv -NoTypeInformation
这里需要解决什么问题?
【问题讨论】:
-
"or fix the above",代码有什么问题?
标签: powershell active-directory office365 exchange-server