Commands › Exchange Online

Test-OutlookWebServices

Exchange Online ExchangeOnlineManagement Test-*

This cmdlet is functional only in Exchange Server 2010. Use the Test-OutlookWebServices cmdlet to verify the Autodiscover service settings for Microsoft Outlook on a computer running Microsoft Exchange Server 2010 that has the Client Access server role installed.

Quick start script

# Test-OutlookWebServices — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Test-OutlookWebServices -AutoDiscoverServer <ClientAccessServerIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Test-OutlookWebServices | Export-Clixml .\OutlookWebServices-$(Get-Date -Format yyyyMMdd).xml

Syntax — 4 parameter sets

Default

Test-OutlookWebServices [[-Identity] <RecipientIdParameter>]
 [-ClientAccessServer <ClientAccessServerIdParameter>]
 [-Confirm]
 [-DomainController <Fqdn>]
 [-MonitoringContext <Boolean>]
 [-TargetAddress <RecipientIdParameter[]>]
 [-WhatIf]
 [<CommonParameters>]

AutoDiscoverServer

Test-OutlookWebServices [[-Identity] <MailboxIdParameter>] -AutoDiscoverServer <ClientAccessServerIdParameter>
 [-Confirm]
 [-MailboxCredential <PSCredential>]
 [-TrustAnySSLCertificate]
 [-WhatIf]
 [<CommonParameters>]

ClientAccessServer

Test-OutlookWebServices [[-Identity] <MailboxIdParameter>] [-ClientAccessServer <ClientAccessServerIdParameter>]
 [-Confirm]
 [-MailboxCredential <PSCredential>]
 [-TrustAnySSLCertificate]
 [-WhatIf]
 [<CommonParameters>]

MonitoringContext

Test-OutlookWebServices [[-Identity] <MailboxIdParameter>] [-MonitoringContext]
 [-Confirm]
 [-MailboxCredential <PSCredential>]
 [-TrustAnySSLCertificate]
 [-WhatIf]
 [<CommonParameters>]

Parameters (10)

ParameterTypeRequiredWhat it controls
-Identity RecipientIdParameter The Identity parameter specifies any valid address in the forest. If you specify this parameter, incorrectly formed addresses and addresses that are outside the forest are rejected. This address is used to test the...
-AutoDiscoverServer ClientAccessServerIdParameter yes The AutoDiscoverServer parameter specifies the server with the Client Access server role installed that's used for Autodiscover.
-ClientAccessServer ClientAccessServerIdParameter This parameter is functional only in Exchange Server 2010.
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...
-MailboxCredential PSCredential The MailboxCredential parameter specifies the mailbox credential to use for a single mailbox test.
-MonitoringContext Boolean The MonitoringContext parameter specifies whether to include the associated monitoring events and performance counters in the results. Valid values are:
-TargetAddress RecipientIdParameter[] The TargetAddress parameter specifies the recipient that's used to test whether Availability service data can be retrieved.
-TrustAnySSLCertificate SwitchParameter The TrustAnySSLCertificate switch allows Exchange to accept certificates from untrusted certification authorities (CAs). You don't need to specify a value with this switch.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.