Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1241
  • Last Modified:

problems with exchange 2010 shell

im trying to run a simple script to get a list of members in a exchange dynamic distribution group
im using rthe following code


Get-DistributionGroupMember -identity “group name” | Export-CSV C:\MyFile.Csv

but it keeps giving an error saying the object cannot be found
i have tried several groups and it cant find any
these groups do exist

here is the error

The operation couldn't be performed because object 'group name' couldn't be found on 'server.domain.com'.
    + CategoryInfo          : InvalidData: (:) [Get-DistributionGroupMember], ManagementObjectNotFoundException
    + FullyQualifiedErrorId : F05C848C,Microsoft.Exchange.Management.RecipientTasks.GetDistributionGroupMember
0
dougdog
Asked:
dougdog
1 Solution
 
Raheman M. AbdulSenior Infrastructure Support Analyst & Systems DeveloperCommented:
Try:
Open Exchange Management Shell and run:

Set-ADServerSettings -ViewEntireForest $True
Get-DistributionGroupMember -identity “group name” | Export-CSV C:\MyFile.Csv
0
 
dougdogAuthor Commented:
seems Get-DistributionGroupMember does not work with dynamic groups
0
 
Muralidharan RAssociate ConsultantCommented:
yes.  Get-DistributionGroupMember does not work with the dynamic groups.

Bcoz,
dynamic DL's are based on specific recipient filters rather than a defined set of recipients.

you need to use Get-DynamicDistributionGroup to get hte properties of dynamic DL.


http://technet.microsoft.com/en-us/library/bb232019(v=exchg.150).aspx
0
 
zaicnupagadiCommented:
Have you run it (a PS console)  an administrator?
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now