Is there a way to Query AD for Dist lists and their managers?

  • Thread starter Thread starter Larry
  • Start date Start date
L

Larry

Guest
Hey guys,

I am running server 2003 and have about a hundred distribution lists. Is
there a way to run a query that returns the name of each list as well as the
account that is assigned as manager?

Thanks,
Larry
 
RE: Is there a way to Query AD for Dist lists and their managers?

Hi Larry,

Here is the script:
dsquery * -filter "(&(samAccountType=268435457)(managedBy=*))" -Attr
sAMAccountName managedBy -Limit 0

--
Have a nice day!

http://winmasterplan.blogspot.com


"Larry" wrote:

> Hey guys,
>
> I am running server 2003 and have about a hundred distribution lists. Is
> there a way to run a query that returns the name of each list as well as the
> account that is assigned as manager?
>
> Thanks,
> Larry
>
>
 
Re: Is there a way to Query AD for Dist lists and their managers?

Masterplan,

That worked like a charm. Thanks a bunch!

Larry

"Masterplan" <winmasterplan@gmail.com.> wrote in message
news:E081729A-A006-4417-90F7-FA778CA147F0@microsoft.com...
> Hi Larry,
>
> Here is the script:
> dsquery * -filter "(&(samAccountType=268435457)(managedBy=*))" -Attr
> sAMAccountName managedBy -Limit 0
>
> --
> Have a nice day!
>
> http://winmasterplan.blogspot.com
>
>
> "Larry" wrote:
>
>> Hey guys,
>>
>> I am running server 2003 and have about a hundred distribution lists. Is
>> there a way to run a query that returns the name of each list as well as
>> the
>> account that is assigned as manager?
>>
>> Thanks,
>> Larry
>>
>>
 
Back
Top