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-DistributionGroupMembe r -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-DistributionGroupMemb er], ManagementObjectNotFoundEx ception
+ FullyQualifiedErrorId : F05C848C,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Ge tDistribut ionGroupMe mber
im using rthe following code
Get-DistributionGroupMembe
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-DistributionGroupMemb
+ FullyQualifiedErrorId : F05C848C,Microsoft.Exchang
Try:
Open Exchange Management Shell and run:
Set-ADServerSettings -ViewEntireForest $True
Get-DistributionGroupMembe r -identity “group name” | Export-CSV C:\MyFile.Csv
Open Exchange Management Shell and run:
Set-ADServerSettings -ViewEntireForest $True
Get-DistributionGroupMembe
ASKER
seems Get-DistributionGroupMembe r does not work with dynamic groups
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Have you run it (a PS console) an administrator?
http://social.technet.microsoft.com/Forums/exchange/en-US/1de41b0c-d616-47cc-b3ce-ec9b6ae6e96c/get-member-of-dynamic-distribution-list?forum=exchange2010