#Change this value to match the name of the external certificate $URLName="mail.example.net" #Change this value to match the real name of the server $ComputerName="exch-svr" Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceInternalUri https://$URLNAME/autodiscover/autodiscover.xml Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -InternalUrl https://$URLNAME/ews/exchange.asmx Get-OABVirtualDirectory | Set-OABVirtualDirectory -InternalURL https://$URLNAME/OAB -ExternalURL https://$URLNAME/OAB Get-ActiveSyncVirtualDirectory | Set-ActiveSyncVirtualDirectory -InternalURL https://$URLNAME/Microsoft-Server-ActiveSync -ExternalURL https://$URLNAME/Microsoft-Server-ActiveSync Set-OutlookAnywhere -identity "$computername\RPC (Default Web Site)" -ExternalHostname $URLNAME Exchange 2007 (none-SBS): Set-OWAVirtualDirectory -identity "$computername\owa (Default Web Site)" -InternalURL https://$URLNAME/owa -ExternalURL https://$URLNAME/owa SBS 2008: Set-OWAVirtualDirectory -identity "$computername\owa (SBS Web Applications)" -InternalURL https://$URLNAME/owa -ExternalURL https://$URLNAME/owa Set-UMVirtualDirectory -Identity “$computername\unifiedmessaging (SBS Web Applications)” -InternalUrl https://$URLNAME/unifiedmessaging/service.asmx
Run get-exchangecertificate and note the thumbprint on the new certificate (watch out for dublets!)
Run Enable-exchangecertificate -thumbprint <TUMBPRINT> -services SMTP,IIS,POP,IMAP
Run iisreset
Restart the Microsoft Exchange services
Restart Clients Pc’s
source: http://exchange.sembee.info/2007/install/singlenamessl.asp