Jump to content

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


Recommended Posts

Posted

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

  • Replies 2
  • Created
  • Last Reply

Popular Days

Guest Masterplan
Posted

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

>

>

Posted

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

>>

>>


×
×
  • Create New...