need to create an dynamic distribution group based on division attribute

need to create an exchange dynamic distribution group based on division attribute of supplies
LVL 1
dougdogAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vikas BhatExperienced IT Infrastructure Services/operations ManagerCommented:
exchange version?
0
Vikas BhatExperienced IT Infrastructure Services/operations ManagerCommented:
0
dougdogAuthor Commented:
2013 sp3
365 hybrid
0
Webinar: Miercom Evaluates Wi-Fi Security

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom how WatchGuard's Wi-Fi security stacks up against the competition in our upcoming webinar!

dougdogAuthor Commented:
that is for department it is division i need
0
Jason CrawfordTransport NinjaCommented:
Division isn't a recognized filterable property.  A complete list of filterable properties can be found here:

https://technet.microsoft.com/en-us/library/bb738157(v=exchg.160).aspx

I suggest CustomAttributes in Exchange or extensionAttributes in AD in lieu of Division.
0
Jason CrawfordTransport NinjaCommented:
It sounds like you have users with a Division attribute that contains the value, 'Supplies'.  If that is correct, you can run the following script on your Exchange server to copy the contents of the Division attribute to extensionAttribute1 and create a DDG based on that instead:

Import-Module ActiveDirectory
foreach ($user in (Get-ADUser -Filter {Division -ne $null} -Properties Division)) {
  $division = $user.division
  Set-ADUser $user.userprincipalname -Add @{extensionAttribute1=$division}
}

New-DynamicDistributionGroup -Name 'Supplies' -RecipientFilter {CustomAttribute1 -eq 'Supplies'}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vikas BhatExperienced IT Infrastructure Services/operations ManagerCommented:
I agree Jason. As from your comments it looks like your Active directory already is populated with Divison attribute for all users, so in this case you can set value of any Custom Attribute 1-15 (anyone empty) and populate with value of division from Active Directory.

once done you can again create the Dynamic group as below,
Dynamic-Disturbution.jpg
1
dougdogAuthor Commented:
what ever attribute i use must be able to be populated by a system that updates AD
so think that rules out custom attribute
so would need to use any of the filterable properties supplied in the link you sent  or
extension attributes
is this correct? how many extension attributes can there be?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.