In one of my previous articles we looked at updating the autodiscover internal URL, today we will update the rest using PowerShell, this includes the following:

  • EWS
  • OAB
  • OWA
  • ActiveSync
  • PowerShell
  • ECP

Here are the list of PowerShell commands that were run to update my lab environment(includes Autodiscover):

• Set-ClientAccessService -Identity Exchange-2019 -AutodiscoverServiceInternalUri

• Get-WebServicesVirtualDirectory -Server Exchange-2019 | Set-WebServicesVirtualDirectory -InternalUrl -ExternalURL

• Set-OWAVirtualDirectory -identity “Exchange-2019\owa (Default Web Site)” -InternalURL -ExternalURL

• Get-OABVirtualDirectory -Server Exchange-2019 | Set-OABVirtualDirectory -InternalURL -ExternalURL

• Get-ECPVirtualDirectory -Server Exchange-2019 | Set-ECPVirtualDirectory -InternalURL -ExternalURL

• Get-MAPIVirtualDirectory -Server Exchange-2019 | Set-MAPIVirtualDirectory -InternalURL -ExternalURL -IISAuthenticationMethods NTLM,Negotiate

• Get-ActiveSyncVirtualDirectory -Server Exchange-2019 | Set-ActiveSyncVirtualDirectory -InternalURL -ExternalURL

• Set-OutlookAnywhere -identity “Exchange-2019\RPC (Default Web Site)” -ExternalHostname -InternalHostname -InternalClientsRequireSSL $true -ExternalClientsRequireSsl $true -ExternalClientAuthenticationMethod:NTLM

Exchange 2019 - create a new mailbox with powershell

Hope it helps.


    Discover more from Everything-PowerShell

    Subscribe now to keep reading and get access to the full archive.

    Continue reading