Figure 1: Default results of Test-ServiceHealth
Test-OutlookWebServices
One of the puzzling things about new Exchange 2007 components is the configuration of the Autodiscover service, especially around the issue of certificate names. If the wrong Subject Alternate Names are listed in certificates or certain configuration areas have not been completed through other Exchange Management Shell commands, the Autodiscover process will fail. For Outlook 2007 users, this means that services like Offline Address Book will not be available. However, configuring Autodiscover can be checked simply by using the Test-OutlookWebServices command . Because this service runs on the Client Access Server role, this test command must also run for the Client Access Server.
The main parameter to provide for this command is –Identity, which is the parameter used to check the Outlook provider and get the form of the email address inside the forest. The command used is:
Test-OutlookWebServices –Identity neil@neilhobson.com | fl
Figure 2: Test-OutlookWebServices output
What you see from the above results are AS (Availability Service), OAB (Offline Address Book) and UM (Unified Messaging) services that have been successfully contacted by EXCH Outlook provider using the internal server's FQDN, but these services are not configured for users via EXPR Outlook provider. This is revealed by the words we show in Figure 3.
These results are a sign that some configuration components are not complete. To confirm this information, you can use the Get-WebServicesVirtualDirectory , Get-OabVirtualDirectory and Get-UMVirtualDirectory commands and check the output where the –ExternalUrl parameter appears. For example, consider Figure 4, where the Get-OabVirtualDirectory command has been run and the results show only the ExternalUrl parameter.
Figure 4: Output of Get-OabVirtualDirectory
The –ExternalUrl parameter controls the URL that Outlook uses to query the OAB when running on an external network or when not in the domain. Conversely, on an internal network, Outlook will query the OAB through the –InternalUrl parameter, which will be set by default for the FQDN of the Client Access Server. However, you will need to configure the –ExternalUrl parameter. We will not talk about the length of the Autodiscover service here because that is not the focus of this article. The main thing you need here is when you see a described service 'not configured for this user' when using the Test-OutlookWebServices parameter, that means one or more –ExternalUrl parameters are missing. You must not forget that there are configurations for Availability Service, OAB and Unified Messaging. Therefore, there will be three commands to configure the external URL. For example, suppose the name of a Client Access Server is CAS1 and an external domain is neilhobson.com, then the three configuration commands will be:
Set-WebServicesVirtualDirectory -Identity 'CAS1EWS (Default Web Site)' –ExternalUrl https://autodiscover.neilhobson.com/EWS/Exchange.asmx
SetOabVirtualDirectory -Identity 'CAS1OAB (Default Web Site)' –ExternalUrl https://autodiscover.neilhobson.com/oab
Set-UMVirtualDirectory -Identity 'CAS1UnifiedMessaging (Default Web Site)' –ExternalUrl https://autodiscover.neilhobson.com/UnifiedMessaging/Service.asmx
When these commands are set up, you can rerun the Test-OutlookWebServices command where you want to see a successful check with the EXPR Outlook provider. An example of such words is shown in Figure 5.
Conclude
So far, we have introduced two Test- cmdlet commands that you can use to check the configuration and operation of your Exchange 2007 server. Hopefully, you will see how commands such as Test-OutlookWebServices can provide values within the configuration areas that have not yet been completed. We will introduce these commands in the second part of this two-part series.