powershell PowerShell:按收件人类型交换Active Directory查询
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell PowerShell:按收件人类型交换Active Directory查询相关的知识,希望对你有一定的参考价值。
Get-ADObject -Filter "objectCategory -eq 'person' -and objectClass -eq 'user' -and msExchRecipientDisplayType -bor 1073741824 -and msExchRecipientTypeDetails -bor 1"
Get-QADObject * -LdapFilter "(objectCategory=person)(objectClass=user)(msExchRecipientDisplayType:1.2.840.113556.1.4.804:=1073741824)(msExchRecipientTypeDetails:1.2.840.113556.1.4.804:=1)"
Get-ADObject -Filter "objectCategory -eq 'person' -and objectClass -eq 'user' -and msExchRecipientDisplayType -bor 0 -and msExchRecipientTypeDetails -bor 4"
Get-QADObject * -LdapFilter "(objectCategory=person)(objectClass=user)(msExchRecipientDisplayType:1.2.840.113556.1.4.804:=0)(msExchRecipientTypeDetails:1.2.840.113556.1.4.804:=4)"
Get-ADObject -Filter "objectCategory -eq 'person' -and objectClass -eq 'user' -and msExchRecipientDisplayType -bor 7 -and msExchRecipientTypeDetails -bor 16"
Get-QADObject * -LdapFilter "(objectCategory=person)(objectClass=user)(msExchRecipientDisplayType:1.2.840.113556.1.4.804:=7)(msExchRecipientTypeDetails:1.2.840.113556.1.4.804:=16)"
Get-ADObject -Filter "objectCategory -eq 'person' -and objectClass -eq 'user' -and msExchRecipientDisplayType -bor 8 -and msExchRecipientTypeDetails -bor 32"
Get-QADObject * -LdapFilter "(objectCategory=person)(objectClass=user)(msExchRecipientDisplayType:1.2.840.113556.1.4.804:=8)(msExchRecipientTypeDetails:1.2.840.113556.1.4.804:=32)"
以上是关于powershell PowerShell:按收件人类型交换Active Directory查询的主要内容,如果未能解决你的问题,请参考以下文章
Powershell - 任务管理器 - 权限?
powershell 如何在PowerShell中编写“按任意键继续”
powershell 如何在PowerShell中编写“按任意键继续”
PowerShell - 从 Outlook 中提取电子邮件信息
Powershell 访问Exchange EWS API
使用 powershell 访问 EWS 上的 Inbox 和 SentItems 文件夹