Useful Exchange 2007 PowerShell Commands

How to update the GAL manually

Update-GlobalAddressList -Identity <GlobalAddressListIdParameter> -DomainController

For most it would be Update-GlobalAddressList -Identity “Default Global Address List”

How to check the logging in Exchange 2007

get-EventLogLevel

See which certificates Exchange 2007 are using

Get-ExchangeCertificate

Get-ExchangeCertificate |fl  (for more information)

Enable Exchange services for certificate

Enable-exchangecertificate -services IMAP, POP, UM, IIS, SMTP -Thumbprint BCF9F2C3D245E2588AB5895C37D8D914503D162E9

See what URL the CAS server has for autodiscover

Get-ClientAccessServer -Identity CASServer | FL

Change the autodiscover URL

Set-ClientAccessServer -Identity CASServer -AutoDiscoverServiceInternalUri https://mail.yourdomain.com/Autodiscover/Autodiscover.xml

Configure all the InternalURLs for each web distributed service

Set-OABVirtualDirectory -Identity “CASServerOAB (Default Web Site)” -InternalURL https://mail.yourdomain.com/OAB

Enable-OutlookAnywhere -Server CASServer -ExternalHostname “mail.yourdomain.com” -ClientAuthenticationMethod “Basic”-SSLOffloading:$False

Set-ActiveSyncVirtualDirectory -Identity “CASServerMicrosoft-Server-ActiveSync (Default Web Site)” -ExternalURL https://mail.yourserver.com/Microsoft-Server-Activesync

Find out your inbound/outbound message limits

get-transportconfig