Run this. (Save as ps1, run in Exchange Management Shell, the output is rather 
voluminous, so you should probably redirect to a file.)

This should tell you where the old server name is referred to.

I haven't tested this on Exchange 2010 in a while, but I think it should still 
work.

-----Original Message-----
From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Maglinger, Paul
Sent: Wednesday, August 9, 2017 3:48 PM
To: 'exchange@lists.myitforum.com'
Subject: [Exchange] Test E-mail AutoConfiguration HTTP protocol server name 
incorrect

Exchange 2010 SP3 UR17
When I run Test E-mail Autoconfiguration on my workstation everything looks 
good except under the Exchange HTTP protocol heading where it has the server 
name.  The server listed was one that we decommissioned a while back.  I have 
Googled and searched for where this is coming from and I can't find it.  Can 
someone tell me where this can be changed?

TIA,

Paul
 
PS - Apologies if this is a multiple post - our spam filter seems to have 
acquired a dislike for the list's messages and I'm working on that.



##
## Dump-CasInformation.ps1
##
## Michael B. Smith
## September 8, 2014
## michael at TheEssentialExchange dot com
## http://TheEssentialExchange.com/blogs/michael
##
## No warranties, express or implied. Use at your own risk.
##

## Changelog
## v1.1 - 2017-07-14
## Add allServers parameter to indicate whether all Exchange servers are listed 
or just this one
## Add check for Get-ClientAccessService cmdlet to remove warning when run on 
an Exchange 2016 server

[CmdletBinding( SupportsShouldProcess = $false, ConfirmImpact = 'None' )]

Param(
        [Parameter( Mandatory = $false )]
        [string] $location    = "location",

        [Parameter( Mandatory = $false )]
        [string] $server      = $env:ComputerName,

        [Parameter( Mandatory = $false )]
        [switch] $allServers  = $false
)

        Set-Strictmode -Version 2.0
        $myVersion = 'v1.1 2017-07-14'

        $startScript = Get-Date
        Write-Verbose "Dump-Casinformation $myVersion script starts $( 
$startScript | Get-Date -Format u )"

        $location = $location.ToUpper()

        if( ( Get-Command Get-ExchangeServer -EA 0 ) -eq $null )
        {
                Write-Error 'This script must be executed within an Exchange 
Management Shell'
                return
        }

"****** GLOBAL  GLOBAL  GLOBAL ******" 

        $cmd = 'OutlookProvider'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-OutlookProvider

                $r | fl Name, CertPrincipalName, Server, TTL, 
                        OutlookProviderFlags, 
                        RequiredClientVersions, ExchangeVersion

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'ExchangeServer'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $($cmdStart | 
Get-Date -Format u)"

                $parameters = @{
                        'Status' = $true
                }

                if( -not $allServers )
                {
                        $parameters += @{ 'Identity' = $env:ComputerName }
                }

                $r = Get-ExchangeServer @parameters

                $r | fl Name, Identity, Fqdn, Edition, 
                        Site, OrganizationalUnit, ServerRole, 
                        AdminDisplayVersion, ExchangeVersion, 
                        Static*, Current*,
                        Is*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

"****** $location  $location  $location ******"

        $cmd = 'ClientAccessServer'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                if( Get-Command Get-ClientAccessService -EA 0 )
                {
                        $r = Get-ClientAccessService -Identity $server
                }
                else
                {
                        $r = Get-ClientAccessServer -Identity $server
                }

                $r | fl Name, Identity, Fqdn,
                        IsOutOfService,
                        OutlookAnywhereEnabled,
                        ClientAccessArray,
                        ExchangeVersion,
                        AlternateServiceAccountConfiguration,
                        OutlookAny*, 
                        AutoDiscover*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'OutlookAnywhere'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-OutlookAnywhere -Server $server

                $r | fl Server, ServerName, Name, Identity, 
                        MetabasePath, Path, 
                        AdminDisplayVersion, ExchangeVersion,
                        SSLOffloading,
                        InternalHostname, InternalClientAuth*,
                        InternalClientsRequireSSL,
                        ExternalHostname, ExternalClientAuth*, 
                        ExternalClientsRequireSSL,
                        IISAuthenticationMethods,
                        XropUrl,
                        ExtendedPro*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'RpcClientAccess'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-RpcClientAccess -Server $server

                $r | fl Name, Server, Identity,
                        Responsibility,
                        MaximumConnections,
                        EncryptionRequired,
                        BlockedClientVersions,
                        ExchangeVersion

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'ActiveSync'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-ActiveSyncVirtualDirectory -Server $server

                $r | fl Name, Server, VirtualDirectoryName, 
                        WebsiteName, WebsiteSSLEnabled, CompressionEnabled,
                        MetabasePath, Path,
                        AdminDisplayVersion, ExchangeVersion,
                        InternalUrl, InternalAuth*,
                        ExternalUrl, ExternalAuth*,
                        ActiveSyncServer,
                        *AuthEnabled, ClientCertAuth,
                        Mobile*,
                        BadItemReportingEnabled, SendWatsonReport,
                        Remote*,
                        Extended*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'AutoDiscover'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-AutodiscoverVirtualDirectory -Server $server

                if( -not [String]::IsNullOrEmpty( $r.InternalUrl ) )
                {
                        Write-Warning "InternalUrl should be empty, instead is 
$( $r.InternalUrl )"
                }
                if( -not [String]::IsNullOrEmpty( $r.ExternalUrl ) )
                {
                        Write-Warning "ExternalUrl should be empty, instead is 
$( $r.ExternalUrl )"
                }

                $r | fl Server, Name, Identity, 
                        MetabasePath, Path, 
                        AdminDisplayVersion, ExchangeVersion,
                        InternalUrl, InternalAuth*, 
                        ExternalUrl, ExternalAuth*, 
                        *Authentication, ExtendedPro*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'ECP'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-EcpVirtualDirectory -Server $server

                $r | fl Server, Name, Website, DisplayName, Identity, 
                        MetabasePath, Path, 
                        AdminDisplayVersion, ExchangeVersion,
                        InternalUrl, InternalAuth*, 
                        ExternalUrl, ExternalAuth*, 
                        DefaultDomain, GzipLevel, *Enabled,
                        *Authentication, ExtendedPro*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        if( Get-Command Get-MapiVirtualDirectory -EA 0 )
        {
                ## cmdlet not available in Exchange 2010

                $cmd = 'MAPI'
                "*** $cmd  $cmd  $cmd ***"
                $cmdStart = Get-Date
                Write-Verbose "Dump-Casinformation command $cmd starts $( 
$cmdStart | Get-Date -Format u )"

                        $r = Get-MapiVirtualDirectory -Server $server

                        $r | fl Server, Name, Identity, 
                                MetabasePath, Path, 
                                AdminDisplayVersion, ExchangeVersion,
                                InternalUrl, InternalAuth*, 
                                ExternalUrl, ExternalAuth*, 
                                IISAuth*,
                                ExtendedPro*

                $cmdEnd = Get-Date
                $cmdDelta = $cmdEnd - $cmdStart
                Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd 
| Get-Date -Format u )"
                Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"
        }
        elseif( $server -ne $env:ComputerName )
        {
                Write-Warning "Get-MapiVirtualDirectory is not available on 
this computer (so this computer is probably running Exchange 2010). If you are 
accessing a server running Exchange 2013 or higher, this information will be 
missing."
                " "
        }

#####

        $cmd = 'OAB'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-OabVirtualDirectory -Server $server

                $r | fl Server, Name, Identity, RequireSSL,
                        MetabasePath, Path, 
                        AdminDisplayVersion, ExchangeVersion,
                        InternalUrl, InternalAuth*, 
                        ExternalUrl, ExternalAuth*, 
                        PollInterval, OfflineAddressBooks,
                        *Authentication, ExtendedPro*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'OWA'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

        ## OWA output is just too big to process effectively

                $r = Get-OwaVirtualDirectory -Server $server

                $r | fl Server, ServerName, Name, Website, DisplayName, 
Identity, RequireSSL,
                        MetabasePath, Path, 
                        DefaultDomain, LogonFormat,
                        AdminDisplayVersion, ExchangeVersion,
                        InternalUrl, InternalAuth*, 
                        ExternalUrl, ExternalAuth*, 
                        VirtualDirectoryType, GzipLevel,
                        Exchange2003Url, FailbackUrl, 
                        LegacyRedirectType, RedirectToOptimalOWAServer,
                        *Authentication, ExtendedPro*
                "...attribute list truncated, use 'Get-OwaVirtualDirectory 
-Server $server | fl *' for full information"
                " "

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'PowerShell'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

        ## this may return 2 entries for each server.
        "Note: the PowerShell Virtual Directory results may include two vDirs 
for each server."

                $r = Get-PowerShellVirtualDirectory -Server $server

                $r | fl Server, Name, Identity, RequireSSL,
                        MetabasePath, Path, 
                        OwaVersion, AdminDisplayVersion, ExchangeVersion,
                        InternalUrl, InternalAuth*, 
                        ExternalUrl, ExternalAuth*, 
                        VirtualDirectoryType, 
                        *Authentication, ExtendedPro*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

#####

        $cmd = 'WebServices'
        "*** $cmd  $cmd  $cmd ***"
        $cmdStart = Get-Date
        Write-Verbose "Dump-Casinformation command $cmd starts $( $cmdStart | 
Get-Date -Format u )"

                $r = Get-WebServicesVirtualDirectory -Server $server

                $r | fl Server, Name, Identity,
                        MetabasePath, Path, 
                        AdminDisplayVersion, ExchangeVersion,
                        InternalUrl, InternalAuth*, 
                        ExternalUrl, ExternalAuth*, 
                        InternalNLBBypassUrl, GzipLevel, MRSProxyEnabled,
                        *Authentication, ExtendedPro*

        $cmdEnd = Get-Date
        $cmdDelta = $cmdEnd - $cmdStart
        Write-Verbose "Dump-CasInformation command $cmd ends $( $cmdEnd | 
Get-Date -Format u )"
        Write-Verbose "Dump-CasInformation command $cmd took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

"****** DONE  DONE  DONE ******"

$scriptEnd = Get-Date
$cmdDelta = $scriptEnd - $startScript
Write-Verbose "Dump-CasInformation script ends $( $scriptEnd | Get-Date -Format 
u )"
Write-Verbose "Dump-CasInformation script took $( 
$cmdDelta.TotalSeconds.ToString( 'N2' ) ) seconds"

Reply via email to