Always getting 1500 member of distribution list using PowerShell

前端 未结 3 1139
你的背包
你的背包 2021-01-14 14:23

I would like to get all members (mail address) of a certain distribution list. Currently I just recieve the first 1500 members. My Script looks like that:

         


        
3条回答
  •  清酒与你
    2021-01-14 15:04

    When retrieving a large attribute you need to ask for the values in it in batches. This is often called "ranged retrieval" in directory speak. Nearly every well behaving MSFT LDAP API supports this, including ADSI... http://msdn.microsoft.com/en-us/library/windows/desktop/ms676302(v=vs.85).aspx

提交回复
热议问题