Commands › Exchange Online

Set-OutlookAnywhere

Exchange Online ExchangeOnlineManagement Set-*

Modify Outlook Anywhere virtual directories that are used in Internet Information Services (IIS) on Microsoft Exchange servers. Outlook Anywhere uses virtual directories that contain "rpc" in the name.

Quick start script

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

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-OutlookAnywhere
$before | Format-List

# 3. Make the change (dry run first)
Set-OutlookAnywhere -Identity <VirtualDirectoryIdParameter> -WhatIf
Set-OutlookAnywhere -Identity <VirtualDirectoryIdParameter>

# 4. Verify and diff
$after = Get-OutlookAnywhere
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-OutlookAnywhere [-Identity] <VirtualDirectoryIdParameter>
 [-ClientAuthenticationMethod <AuthenticationMethod>]
 [-Confirm]
 [-DefaultAuthenticationMethod <AuthenticationMethod>]
 [-DomainController <Fqdn>]
 [-ExtendedProtectionFlags <MultiValuedProperty>]
 [-ExtendedProtectionSPNList <MultiValuedProperty>]
 [-ExtendedProtectionTokenChecking <ExtendedProtectionTokenCheckingMode>]
 [-ExternalClientAuthenticationMethod <AuthenticationMethod>]
 [-ExternalClientsRequireSsl <Boolean>]
 [-ExternalHostname <Hostname>]
 [-IISAuthenticationMethods <MultiValuedProperty>]
 [-InternalClientAuthenticationMethod <AuthenticationMethod>]
 [-InternalClientsRequireSsl <Boolean>]
 [-InternalHostname <String>]
 [-Name <String>]
 [-SSLOffloading <Boolean>]
 [-WhatIf]
 [<CommonParameters>]

Parameters (18)

ParameterTypeRequiredWhat it controls
-Identity VirtualDirectoryIdParameter yes The Identity parameter specifies the Outlook Anywhere virtual directory that you want to modify. You can use any value that uniquely identifies the virtual directory. For example:
-ClientAuthenticationMethod AuthenticationMethod The ClientAuthenticationMethod parameter specifies the authentication method that the Autodiscover service provides to the Outlook Anywhere clients to authenticate to the Client Access server. Valid values are:
-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.
-DefaultAuthenticationMethod AuthenticationMethod The DefaultAuthenticationMethod parameter specifies the default authentication method for Outlook Anywhere. This parameter replaces the existing ExternalClientAuthenticationMethod, InternalClientAuthenticationMethod...
-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...
-ExtendedProtectionFlags MultiValuedProperty The ExtendedProtectionFlags parameter specifies custom settings for Extended Protection for Authentication on the virtual directory. Valid values are:
-ExtendedProtectionSPNList MultiValuedProperty The ExtendedProtectionSPNList parameter specifies a list of valid Service Principal Names (SPNs) if you're using Extended Protection for Authentication on the virtual directory. Valid values are:
-ExtendedProtectionTokenChecking ExtendedProtectionTokenCheckingMode The ExtendedProtectionTokenChecking parameter specifies whether Extended Protection for Authentication is used for client connections to the virtual directory. Valid values are:
-ExternalClientAuthenticationMethod AuthenticationMethod The ExternalClientAuthenticationMethod parameter specifies the authentication method that's used to authenticate external Outlook Anywhere clients. Valid values are:
-ExternalClientsRequireSsl Boolean The ExternalClientsRequireSsl parameter specifies whether external Outlook Anywhere clients are required to use Transport Layer Security (TLS). Valid values are:
-ExternalHostname Hostname The ExternalHostname parameter specifies the external hostname for the Outlook Anywhere virtual directory. For example, mail.contoso.com.
-IISAuthenticationMethods MultiValuedProperty The IISAuthenticationMethods parameter specifies the authentication method that's used on the Outlook Anywhere virtual directory in IIS. Valid values are:
-InternalClientAuthenticationMethod AuthenticationMethod The InternalClientAuthenticationMethod parameter specifies the authentication method that's used to authenticate internal Outlook Anywhere clients. Valid values are:
-InternalClientsRequireSsl Boolean The InternalClientsRequireSsl parameter specifies whether internal Outlook Anywhere clients are required to use Transport Layer Security (TLS). Valid values are:
-InternalHostname String The InternalHostname parameter specifies the internal hostname for the Outlook Anywhere virtual directory. For example, mail.contoso.com.
-Name String The Name parameter specifies the name of the Outlook Anywhere virtual directory. The default value is Rpc (Default Web Site). If the value you specify contains spaces, enclose the value in quotation marks (").
-SSLOffloading Boolean The SSLOffloading parameter specifies whether a network device accepts Transport Layer Security (TLS) connections and decrypts them before proxying the connections to the Outlook Anywhere virtual directory on the...
-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.