Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
Posts: 895
Joined: 4.Jan.2007
From: Chicago, IL
Status: offline
Think he meant Exchange Activesync Policy. If that's the case, there's no way to dynamically do it other than creating the policy, use PowerShell to find all the users of a group and cycle through the users using get-casmailbox and assigning the policy to those specific users.
Posts: 4093
Joined: 17.Jan.2008
From: Somewhere near London, UK
Status: offline
Not possible. You would have to use a custom attribute on each user. The options that are available to you are in the wizard within EMC. You will see that they are quite limited.
Posts: 895
Joined: 4.Jan.2007
From: Chicago, IL
Status: offline
It doesn't really matter what I would do. The options are there. Choose the best that fits your needs and do it. There's always the option to script out the expansion of a group and add the Custom Attribute for every user and then just filter on that attribute. you can have the script run using Scheduled Tasks so it'll automatically update the list. I'd personally just one of the available built-in options if possible as there's less working parts and you're keeping things more simple.
When i type this comman i get som errors. New-EmailAddressPolicy “COMTROL EAP” -RecipientFilter {((MemberOfGroup -eq “CN=CONTROL,OU=Groups,OU=CONTROL,OU=Hosting,DC=domain,DC=local”) -and (RecipientType -eq ‘UserMailbox’))} -EnabledPrimarySMTPAddressTemplate ‘SMTP:%g%1s@testdom.local’
Error: New-EmailAddressPolicy : Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": "Invalid filter syntax. For a description of the filter parameter syntax see the command help. "((MemberOfGroup -eq "CN=CONTROL,OU=Groups,OU=CONTROL,OU=Hosting,DC=cpit,DC=dk" ) -and (RecipientType -eq `UserMailbox'))" at position 21." At line:1 char:54 + New-EmailAddressPolicy "COMTROL EAP" -RecipientFilter <<<< {((MemberOfGroup -eq "CN=CONTROL,OU=Groups,OU=CONTROL,OU=Hosting,DC=domain,DC=local") -and (Recipient Type -eq `UserMailbox'))} -EnabledPrimarySMTPAddressTemplate `SMTP:%g%1s@testdom.local'
Posts: 895
Joined: 4.Jan.2007
From: Chicago, IL
Status: offline
You can create the EAP via the GUI. Give it a try, less prone to error. When you go to initiate the creation of the EAP, it'll tell you the PowerShell code you are running in case you want to reference it to what you are entering incorrectly.
Posts: 4093
Joined: 17.Jan.2008
From: Somewhere near London, UK
Status: offline
If you give the users a custom attribute, which can be done in bulk with something like admodify.net then you can create the Email Address Policy through the GUI using that attribute.
Posts: 895
Joined: 4.Jan.2007
From: Chicago, IL
Status: offline
quote:
ORIGINAL: dunch
Like written ealier i can not create a EAP that give members of a group a serten smtp address with GUI it have to be with powershell.
Actually it's been stated that you need to use the Custom Attribute if you want to do it by group. And a couple options have been presented to you. Simon has stated you can use ADModify. And I have said you can have a script to find all members of a group and automatically give them a custom attribute. I also gave you the option of using one of t he available EAP options such as Company. The choice is yours.