Tuesday, May 3, 2022

Get and Set MS Exchange Virtual Directories

Validate all of these are correct when troubleshooting Exchange connectivity problems.

Also, a poster named 'overdrive' in this Spiceworks thread has a really comprehensive setup guide to getting all these right.  It looks so comprehensive that I saved a copy here, in case that one disappears.

get-webservicesvirtualdirectory -server exchange | Select Server,Externalurl,Internalurl
get-mapivirtualdirectory -server exchange | Select Server,Externalurl,Internalurl
IMPORTANT! Note that get/set-clientaccessservice below inexplicably uses "URI" at the end and not "URL" like all the others!
get-clientaccessservice -identity exchange | select name,autodiscoverserviceinternaluri
Get-oabvirtualdirectory -server exchange | Select Server,Externalurl,Internalurl
Get-activesyncvirtualdirectory -server exchange | Select Server,Externalurl,Internalurl
Get-ecpvirtualdirectory -server exchange | Select Server,Externalurl,Internalurl
Get-owavirtualdirectory -server exchange | Select Server,Externalurl,Internalurl
Get-OutlookAnywhere -server exchange | Select Server,ExternalHostname,Internalhostname
If Outlook fails with an RPC over HTTP authentication error:   In addition, to get OutlookAnywhere working Externally you have to enable Basic authentication in "ExternalClientAuthenticationMethod", as the default NTLM doesn't work for external clients.  This may be done in Exchange ECP > Servers > Server Name > Outlook Anywhere, or via Powershell.


No comments:

Post a Comment

DiskGenius and Hasleo Backup

DiskGenius is an all-in-one utility for disk partition management, OS migration and file recovery. https://www.diskgenius.com/ Hasleo offers...