We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Creating a dynamic distribution group in Exchange 2010 using the EX shell

nachtmsk
nachtmsk asked
on
Medium Priority
825 Views
Last Modified: 2012-05-11
Hi,
I need help with the syntax of creating a new dynamic distro group using the Exchange shell.

I have users who are in specific offices, so I use the "Office" field to designate their office.
I need to create various distro groups based on their office.

Using this: I get all users in a specific office:
Get-Mailbox -Filter {Office -eq 'New York'}

Now, what I want to do is create a distro group called "NY" for example that contains all users in  the Office of 'New York".
I have tried this in several different ways but it's not working:
New-DynamicDistributionGroup -Name "NY"  -Filter {Office -eq 'New York'}

Can anyone tell me how to do this?
Thanks!
Mike
Comment
Watch Question

Shreedhar EtteTechnical Manager
CERTIFIED EXPERT
Top Expert 2010

Commented:

Author

Commented:
Thanks. I was already looking at the article. I was asking for more specific help.
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.