After you migrated from Exchange 2003 to Exchange 2007, you receive an error when you try to edit your Address Lists “All Contacts”, “All Groups”, “All Rooms”, “All Users”, “Default Global Address List”, “Public Folders”.
let’s update the Address Lists!
Set-AddressList “All Users” -IncludedRecipients MailboxUsers
Set-AddressList “All Groups” -IncludedRecipients MailGroups
Set-AddressList “All Contacts” -IncludedRecipients MailContacts
Set-AddressList “Public Folders” -RecipientFilter { RecipientType -eq ‘PublicFolder’ }
Set-GlobalAddressList “Default Global Address List” -RecipientFilter {(Alias -ne $null -and (ObjectClass -eq ‘user’ -or ObjectClass -eq ‘contact’ -or ObjectClass -eq ‘msExchSystemMailbox’ -or ObjectClass -eq ‘msExchDynamicDistributionList’ -or ObjectClass -eq ‘group’ -or ObjectClass -eq ‘publicFolder’))}


Posted in Microsoft Exchange 2007 Server | No Comments »
After you migrated from Exchange 2003 to Exchange 2007, you receive an error when you try to edit your recipient policy “Default Policy”.
“Unable to edit the specified E-mail address policy. E-mail address policies created with legacy versions of Exchange must be upgraded using the ‘Set-EmailAddressPolicy’ task, with the Exchange 2007 Recipient Filter specified.”
Oké, let’s update the recipient policy! With the following command you can see the properties of this recipient policy.
Get-EmailAddressPolicy | fl Name,*RecipientFilter*,ExchangeVersion
Set-EmailAddressPolicy “Default Policy” -IncludedRecipients AllRecipients

After running this commands, you’re able to edit the “Default Policy” again.
Posted in Microsoft Exchange 2007 Server | 1 Comment »
If you want an overview off all the mailboxes in your Exchange 2007 environment with there primairy SMTP address and there extra SMTP aliasses, you can run the following command.
For a overview off all the options after the pipe command, you can the following command.
Get-Mailbox -Identity <useralias> | fl
Get-Mailbox | fl UserPrincipalName, ServerName, PrimarySMTPaddress, Emailaddresses

Posted in Microsoft Exchange 2007 Server | No Comments »
If you’re using a service account for example your backup software, it’s some times nessesary that this account has full controll permissions on all the mailboxes in your Exchange environment. Now you can set the full controll permissions on all the mailboxes, but it’s better to set the permissions on your information store. So if there are new mailboxes created, they have also the right permissions automatically. With the following command you can set the permissions on information store level:
get-mailboxserver Servername | add-adpermission -user svc-backup -accessrights GenericRead, GenericWrite -extendedrights Send-As, Receive-As, ms-Exch-Store-Admin
Posted in Microsoft Exchange 2007 Scripts | No Comments »