Link to home
Start Free TrialLog in
Avatar of dougdog
dougdog

asked on

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
Avatar of Muralidharan R
Muralidharan R
Flag of India image

Avatar of Raheman M. Abdul
Try:
Open Exchange Management Shell and run:

Set-ADServerSettings -ViewEntireForest $True
Get-DistributionGroupMember -identity “group name” | Export-CSV C:\MyFile.Csv
Avatar of dougdog
dougdog

ASKER

seems Get-DistributionGroupMember does not work with dynamic groups
ASKER CERTIFIED SOLUTION
Avatar of Muralidharan R
Muralidharan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Have you run it (a PS console)  an administrator?