有什么方法可以获取交换服务器中可用设备的列表?

Is there any way to get the list of available equipment in exchange server?

我正在尝试获取交换服务中可用的所有资源。要获取我使用以下代码的房间列表,它运行良好

EmailAddressCollection myRoomLists = service.GetRoomLists();

现在同理,我要获取设备列表? 请帮忙

您可以使用 属性 msExchRecipientDisplayType 作为过滤器进行 LDAP 搜索。房间邮箱将此 属性 设置为 7,设备邮箱将其设置为 8。

有用户邮箱、房间邮箱和设备邮箱的概念。您可能无法使用 EWS 找到设备邮箱,但您可能需要搜索 Active Directory。

参考:https://social.msdn.microsoft.com/Forums/office/en-US/4ff04c60-48c2-4a69-ab75-2383e73bfde2/e2010ewsxmljavahow-to-list-all-resource-mailboxes-meeting-room-in-exchange-web-service-2010?forum=exchangesvrdevelopment