- 0
Hi Friends,
I am trying to get list of all users from 30 different DL's across my forest where users added into DL and they are from different domains.
I have already tried following commands:
Get-DistributionGroupMember -identity "DLName" >C:\DL.txt
Get-DistributionGroupMember -identity "DL Name" - DomainController "Domain Controller name" > D:\Saed\MyFile.Csv
No Error but exported file is of Zero KB. No data fetched in it.
Anybody can suggest me Command where I can export users details from 30 different DL's.
Thanks
Pravin Sangwan
Answers
- Vote As Helpful
Hi,
I assume that you are in Exchange 2010. (The solution given beow is Not applicable to previous versions)
While getting details of users from different domains, when you run the Get-DistributionGroupMember command for a distribution group, the command does not return all the members of the distribution group from the other child domain. Instead, you may receive error message.
To resolve this issue, type the cmdlet:Set-ADServerSettings -ViewEntireForest $True
Run the Get-DistributionGroupMember command to retrieve all the members of the distribution group.
Regards from www.windowsadmin.info- Marked As Answer byPravin Sangwan Wednesday, October 27, 2010 12:21 PM
All Replies
- Vote As Helpful
Hi,
I assume that you are in Exchange 2010. (The solution given beow is Not applicable to previous versions)
While getting details of users from different domains, when you run the Get-DistributionGroupMember command for a distribution group, the command does not return all the members of the distribution group from the other child domain. Instead, you may receive error message.
To resolve this issue, type the cmdlet:Set-ADServerSettings -ViewEntireForest $True
Run the Get-DistributionGroupMember command to retrieve all the members of the distribution group.
Regards from www.windowsadmin.info- Marked As Answer byPravin Sangwan Wednesday, October 27, 2010 12:21 PM
- 0I missed out to mention that I am working on Exchange 2007. But Thanks I got the basic Idea. Issue Resolved.
No comments:
Post a Comment