Procedura per separazione gal no EMC
parametri:
ou_name = nome unità organizzativa
gal_name = gal name
attribute_name = attributo AD da assegnare agli utenti
domain_name = nome del dominio
- Crea nuovo GAL
New-GlobalAddressList " gal_name -GAL" -ConditionalCustomAttribute1 " attribute_name -CA" -IncludedRecipients "AllRecipients" - Crea nuovo elenco di indirizzi (AL)
new-AddressList -Name ' gal_name -AL' -RecipientContainer ' domain_name ' -IncludedRecipients 'AllRecipients' -ConditionalCustomAttribute1 ' ATTRIBUTE_NAME -CA' -Contenitore '\' -DisplayName ' gal_name- AL' - Crea nuova ROOM AddressList
New-AddressList -Name gal_name -ROOMS -RecipientFilter {(Alias -ne $null) -and (CustomAttribute1 -eq " attribute_name -CA") -and (RecipientDisplayType -eq "ConferenceRoomMailbox") -or (RecipientDisplayType -eq "Casella postale della sala conferenze sincronizzata")} - Crea nuova rubrica offline (OAB)
New-OfflineAddressBook -Name gal_name -OAB -AddressLists “ gal_name -GAL” - Crea nuovo criterio rubrica (ABP)
new-AddressBookPolicy -Name ' gal_name -ABP' -GlobalAddressList '\ gal_name -GAL' -OfflineAddressBook '\ gal_name -OAB' -RoomList '\ gal_name -ROOMS' -AddressLists '\ gal_name -AL' - Assegna attributo personalizzato agli utenti in AD
Get-Mailbox -OrganizationalUnit “ ou_name ” | Set-Mailbox -CustomAttribute1 “ nome_attributo -CA” - Applica il
criterio della rubrica agli account utente Get-Mailbox -OrganizationalUnit “ ou_name ” | Set-Mailbox -AddressBookPolicy “ gal_name -ABP”