emelnik
asked on
Need a query to export all the Distribution Lists on a Windows 2003 AD with Exchange 2003
Hello,
I need a query or script that can help me get Distribution Lists the following information on a Windows 2003 AD with Exchange 2003:
1 .Export all existing DL's
2. Attributes: DL displayname, DL internal and external email addresses, DL cn
3. User memberships: username, email address, cn, displayname
4. Owner permissions: username, email address, cn, displayname
5. SendAS permissions: username, email address, cn, displayname
6. Restricted users: username, email address, cn, displayname
7. Restricted groups: group email address, cn, displayname
Any help is greatly appreciated.
I need a query or script that can help me get Distribution Lists the following information on a Windows 2003 AD with Exchange 2003:
1 .Export all existing DL's
2. Attributes: DL displayname, DL internal and external email addresses, DL cn
3. User memberships: username, email address, cn, displayname
4. Owner permissions: username, email address, cn, displayname
5. SendAS permissions: username, email address, cn, displayname
6. Restricted users: username, email address, cn, displayname
7. Restricted groups: group email address, cn, displayname
Any help is greatly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
endital1097,
I have Exchange 2003 not Exchange 2007.
I have Exchange 2003 not Exchange 2007.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Tried the quest tool but I never got it to work the way I need it, got outputs like this:
DisplayName EmailAddresses CanonicalName
----------- -------------- -------------
ld email {SMTP:ldemail@cfmex.com.mx , smtp:lde... sur.banco.banamex.com/Usua riosReplic ...
Ld 7874 Servicio a Clientes {SMTP:Ld7874ServicioaClien tes@cfmex. ... sur.banco.banamex.com/Usua riosReplic ...
Don't know how to get rid of the "..." and get the full output on a csv format.
What I need is a csvde command like the one below:
csvde -f c:\temp\DistributionLists -p subtree -l "cn,mail,displayName" -r (&(objectCategory=Group)(o bjectClass =Group)(|( groupType= 8)(groupTy pe=4)(grou pType=2))) -j c:\temp
Can you help?
DisplayName EmailAddresses CanonicalName
----------- -------------- -------------
ld email {SMTP:ldemail@cfmex.com.mx
Ld 7874 Servicio a Clientes {SMTP:Ld7874ServicioaClien
Don't know how to get rid of the "..." and get the full output on a csv format.
What I need is a csvde command like the one below:
csvde -f c:\temp\DistributionLists -p subtree -l "cn,mail,displayName" -r (&(objectCategory=Group)(o
Can you help?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Pointed me in the direction to solve my problem.
then you would need a script or two to get this like the following to get 1 and 2
Get-QADGroup -GroupType Distribution | Select DisplayName,EmailAddresses
for #3
Get-QADGroup -GroupType Distribution | Get-QADGroupMember | Select SamAccountName,Email,Canon
for #4
Get-QADGroup -GroupType Distribution | Get-QADUser $_.ManagedBy | Select SamAccountName,Email,Canon
this should get you in the direction you need