本文介绍了GetSearchableMailboxes只返回1500个邮箱分页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个非常简单的脚本来获取所有可搜索的邮箱。我有2000个邮箱但这个API每次只返回1500。想知道结果是否已被分页,但没有关于它的文档。 

I have this very simple script to get all the searchable mailboxes. I have 2000 mailboxes but this API return only 1500 every time. Wondering if the results are paged but there is no documentation regarding it. 

Import-Module "C:\Program Files\Microsoft\Exchange\Web Services\2.2\Microsoft.Exchange.WebServices.dll";$Service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService([Microsoft.Exchange.WebServices.Data.ExchangeVersion]::Exchange2013_SP1);#$Service.UseDefaultCredentials = $true;$Service.Credentials = New-Object System.Net.NetworkCredential("[email protected]", "test123!");$Service.Url ="https://exch2013.test.com/EWS/Exchange.asmx";$Service;$m = $Service.GetSearchableMailboxes([string]::Empty,$false);$count = 1; #$m.SearchableMailboxes | %{$_.SmtpAddress; $count++;}#$count; 




推荐答案

我会将此主题移至  交流发展论坛,因为他们应该有更多的专业知识,你可以及时获得有效的
解决方案。

I'll move this thread to Exchange development forum, as they should have more professional knowledge on this and you may get effective solution timely.

感谢您的理解,


这篇关于GetSearchableMailboxes只返回1500个邮箱分页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 14:39