ChallowSupport
asked on
how to edit Global Address List Recipient filter
Hi
Can someone assist me with my powershell syntax...
When we create new GAL's for each client on our Exchange 2010 system we run the following powershell script...
New-GlobalAddressList -Name "ClientX - GAL" -ConditionalCustomAttribut e1 "ClientX" -IncludedRecipients MailboxUsers,MailGroups -RecipientContainer "domain.local/clients/Clie ntX"
We use this as we find clients like to see all users and distribution groups in the same place when they look at the address book in Outlook. They moan when they have to navigate through to the folders in the tree on the left... *sigh* users will be users.
They have now asked us to add some Mail Contacts to the same place
So my question is this.. how to I edit the GAL to add the filter to include mailcontacts too?
I'm guessing I need to start with get-GlobalAddressList "ClientX - Gal".
I'm just unsure of the command to add the mailcontacts recipient filter.
Thanks
Gareth
Can someone assist me with my powershell syntax...
When we create new GAL's for each client on our Exchange 2010 system we run the following powershell script...
New-GlobalAddressList -Name "ClientX - GAL" -ConditionalCustomAttribut
We use this as we find clients like to see all users and distribution groups in the same place when they look at the address book in Outlook. They moan when they have to navigate through to the folders in the tree on the left... *sigh* users will be users.
They have now asked us to add some Mail Contacts to the same place
So my question is this.. how to I edit the GAL to add the filter to include mailcontacts too?
I'm guessing I need to start with get-GlobalAddressList "ClientX - Gal".
I'm just unsure of the command to add the mailcontacts recipient filter.
Thanks
Gareth
ASKER
Hi SreRaj
yes I can confirm that the contacts have the customattribute1 set as ClientX. However your command does not work. I suspect because the GAL already exists (see error below). I would have thought I need a command something like get-GlobalAddressList "ClientX - Gal" | add-recipientfilter etc?
[PS] C:\Windows\system32>New-Gl obalAddres sList -Name "ClientX - GAL" -ConditionalCustomAttribut e1 "ClientX" -IncludedRecipients
MailboxUsers,MailGroups,Ma ilContacts -RecipientContainer "Domain.local/clients/Clie ntX"
Active Directory operation failed on DOMAINDC01.DOMAIN.LOCAL. The object 'CN=ClientX - GAL,CN=All Global Address Lists,CN=A
ddress Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Co nfiguratio n,DC=DOMAI N,DC=LOCAL ' alr
eady exists.
+ CategoryInfo : NotSpecified: (0:Int32) [New-GlobalAddressList], ADObjectAlreadyExistsExcep tion
+ FullyQualifiedErrorId : 10EB12F8,Microsoft.Exchang e.Manageme nt.SystemC onfigurati onTasks.Ne wGlobalAdd ressList
Regards
Gareth
yes I can confirm that the contacts have the customattribute1 set as ClientX. However your command does not work. I suspect because the GAL already exists (see error below). I would have thought I need a command something like get-GlobalAddressList "ClientX - Gal" | add-recipientfilter etc?
[PS] C:\Windows\system32>New-Gl
MailboxUsers,MailGroups,Ma
Active Directory operation failed on DOMAINDC01.DOMAIN.LOCAL. The object 'CN=ClientX - GAL,CN=All Global Address Lists,CN=A
ddress Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Co
eady exists.
+ CategoryInfo : NotSpecified: (0:Int32) [New-GlobalAddressList], ADObjectAlreadyExistsExcep
+ FullyQualifiedErrorId : 10EB12F8,Microsoft.Exchang
Regards
Gareth
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect you are a star!... although you don't need -name
Set-GlobalAddressList "ClientX - GAL" -ConditionalCustomAttribut e1 "ClientX" -IncludedRecipients MailboxUsers,MailGroups,Ma ilContacts -RecipientContainer "domain.local/clients/Clie ntX"
Many thanks!
Set-GlobalAddressList "ClientX - GAL" -ConditionalCustomAttribut
Many thanks!
Open in new window