Solved

problems with exchange 2010 shell

Posted on 2013-11-08
5
1,160 Views
Last Modified: 2013-11-08
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
Comment
Question by:dougdog
5 Comments
 
LVL 4

Expert Comment

by:Muralidharan R
ID: 39633049
0
 
LVL 19

Expert Comment

by:Raheman M. Abdul
ID: 39633248
Try:
Open Exchange Management Shell and run:

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

Author Comment

by:dougdog
ID: 39633344
seems Get-DistributionGroupMember does not work with dynamic groups
0
 
LVL 4

Accepted Solution

by:
Muralidharan R earned 500 total points
ID: 39633372
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
 
LVL 1

Expert Comment

by:zaicnupagadi
ID: 39633691
Have you run it (a PS console)  an administrator?
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question