如何找出谁对 exchange 2010 中的用户列表具有完全邮箱访问权限
How to find out who has full mailbox access for a list of users in exchange 2010
我需要找出一种方法来查看谁对 exchange 2010 PowerShell 中的邮箱列表具有完全访问权限。我可以用
获取邮箱 |获取邮箱权限 |其中 {$.user.tostring() -ne
"NT AUTHORITY\SELF" - 和 $.IsInherited -eq $false}
查看谁对我组织中的每个邮箱具有完全访问权限,但想知道我是否可以调用 CSV 或文本文件来查看列出的那些邮箱的权限。
当然可以。您只需为 CSV 调用 Import-CSV
,或为文本文件调用 Get-Content
(一行 = 一个名称),然后为结果数组调用 foreach { get_mailbox -identity $_.name | ...}
。一个例子:
<<text file follows>>
user1
user2
user3
<<script follows>>
get-content textfile.txt | foreach {
get_mailbox -identity $_ |
get-mailboxpermission |
where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $.IsInherited -eq $false}
}
我需要找出一种方法来查看谁对 exchange 2010 PowerShell 中的邮箱列表具有完全访问权限。我可以用
获取邮箱 |获取邮箱权限 |其中 {$.user.tostring() -ne
"NT AUTHORITY\SELF" - 和 $.IsInherited -eq $false}
查看谁对我组织中的每个邮箱具有完全访问权限,但想知道我是否可以调用 CSV 或文本文件来查看列出的那些邮箱的权限。
当然可以。您只需为 CSV 调用 Import-CSV
,或为文本文件调用 Get-Content
(一行 = 一个名称),然后为结果数组调用 foreach { get_mailbox -identity $_.name | ...}
。一个例子:
<<text file follows>>
user1
user2
user3
<<script follows>>
get-content textfile.txt | foreach {
get_mailbox -identity $_ |
get-mailboxpermission |
where {$_.user.tostring() -ne "NT AUTHORITY\SELF" -and $.IsInherited -eq $false}
}