小编Ran*_*Dom的帖子

如何在 proxyAddresses 上使用带有 -LDAPFilter 的 Get-AdObject?

我正在尝试使用 ADObject 上的 LDAPFilter 搜索 SMTP 地址

Get-AdObject  -properties * -LDAPFilter "(proxyAddresses=alert.haveibeenpwned@test.edu)" 
Run Code Online (Sandbox Code Playgroud)

我知道使用 GetADUser 和 Get-Mailbox 或什至使用带有-anr命令的-Filter 可以实现其中的某些功能。但是,为了保持一致性,我更喜欢将本机 LDAP 与 Get-AdObject 命令一起使用。

如何使用 Get-AdObject 搜索多值属性,例如 proxyAddresses?

powershell exchange active-directory ldap microsoft-office-365

4
推荐指数
1
解决办法
5760
查看次数