使用 DirectoryServices 查询 Exchange 服务器
这个问题是另一个团队向我提出的。问题是“如何查询交换服务器特定用户组中的用户”。据称,Exchange 服务器用户组未链接到广告组。我能得到的例子都是基于AD组的查询。我听说有两种方法,要么通过 SQL,要么通过 DirectoryServices。任一解决方案都可以,但通过 DirectoryServices 将超级棒!再次感谢!
the question just came to me from a different team. The question was "how to query the users in the exchange server's particular User group". Its said that the Exchange server user group is not linked to an Ad group. The examples i could get are all for querying based on AD group. I heard there are two ways either through SQL or through DirectoryServices. Either solution is fine, but through DirectoryServices will be super awesome! Thanks again!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果该组是 Active Directory 组,则可以使用 System.DirectoryServices。但是,如果它是 Exchange 公用/专用文件夹中的通讯组,则您需要直接访问 Exchange。适合后者的 API 取决于您的 Exchange Server 版本。使用Exchange 2003,使用WebDAV,虽然通讯组列表扩展相当复杂,但我可以给你一些示例代码。对于 Exchange 2007 及更高版本,如果您使用的是 .Net,请使用 EWS 或 Exchange 托管 API。
If the group is an Active Directory Group, you can use System.DirectoryServices. However, if it's a distribution group in an Exchange public/private folder, you neeed to access Exchange directly. The API suited for the latter depends on your Exchange Server version. With Exchange 2003, use WebDAV, although distribution list expansion is quite complicated, but I could give you some sample code. With Exchange 2007 and later, use EWS or the Exchange Managed API, if you are using .Net.