Archive for June, 2009

Exchange 2007 Upgrading your Default Address Lists

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’))}

 

 al01    al02    al03

 

al04    al05    al06

Exchange 2007 Upgrading your default Email Address Policy

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

eap01    eap02    eap03

After running this commands, you’re able to edit the “Default Policy” again.

Exchange 2007 list all mailboxes with there SMTP addresses

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

e2k7

 

 

Enable Password Changing through OWA in Exchange 2003

By design it is not possible to let the user change there password through OWA in Exchange 2003.  But you can make it possible with the following steps.

1.) Open the Internet Information Services (IIS) Manager
2.) Navigate to the Web Sites, Default Web Sites
3.) Creat a new Virtual Directory with the alias Iisadmpwd
4.) Browse to the following path: C:\Windows\System32\Inetsrv\Iisadmpwd
5.) Allow the following permissions: Read, Run scripts, Execute
6.) Enable the change password button in OWA by opening regedit and create the following REG_DWORDDisablePassword with the value 0 (zero)
 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeWEB\OWA
7.) Register the following DLL from the command prompt.
regsvr32 c:\windows\system32\inetsrv\iisadmpwd\iispwchg.dll
8.) Restart your IIS Server with the command iisreset /noforce

iis_01    iis_02    iis_03

iis_04    iis_05    iis_06

iis_07    iis_08    iis_09

iis_10    iis_11

Exchange 2007 change permissions on your Information Store

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