My Blog List

Saturday, October 30, 2010

Exchange 2007 Command Shell for Forest

  • You cannot vote on your own post
    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

    Email: pravinsangwan@gmail.com

Answers

  • Wednesday, October 27, 2010 11:04 AMManU PhiliPMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
    Answer
    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

All Replies

  • Wednesday, October 27, 2010 11:04 AMManU PhiliPMVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
    Answer
    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
  • Wednesday, October 27, 2010 12:21 PMPravin SangwanUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
    You cannot vote on your own post
    0
    I missed out to mention that I am working on Exchange 2007. But Thanks I got the basic Idea. Issue Resolved.

No comments:

Followers

Popular Posts