none
Can't remove Alternate URL Map for central admin

    Question

  • I am a sharepoint newbie. Just built a 3 node SPS 2016 envirionment consisting of the FE, AppSver and SQL server 2016.

    I was getting warnings in the Application Log warning about missing AAMs. I created a new name in DNS for the AppServer role (etgctsp01ca) and added it via the Central Admin UI.  Now the UI is broken and I can't remove it via remove-spalternateurl command.   See attached image below. Need to get it removed and Central Admin working again.  The Sever name is ETGCTSPAPP01

    Wednesday, March 15, 2017 7:33 PM

Answers

  • Ok you have to do this if Set-SPAlternateURL -Identity "http://etgcspo1app01:8888" -Url http://ETGCTSPAPP01-zone "Default" Set-SPAlternateURL -Identity "http://etgcspo1app01" -Url http://ETGCTSPAPP01:8888" -zone "intranet" Now remove this entry Remove-spalternateurl http://etgcspo1app01:8888 Now set this to ca web app Set-SPAlternateURL -Identity "http://etgcsp01ca:8888" -Url http://ETGCTSPAPP01:8888 -zone "Default" Now test the ca Please make sure URL correct as I am responding from mobile.

    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 9:32 PM
    Moderator

All replies

  • You cant remove the url from the default zone... above image is displaying the AAM for Central admin only?

    or it for 2 different web apps?


    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 7:45 PM
    Moderator
  • No web app assigned.  I did this on the APP Server role machine.  I doesn't say Central Admin, but it should be.
    Wednesday, March 15, 2017 7:56 PM
  • Let me ask this way.

    Is the AAM settings (display in image) from Central admin web app or from 2 different web app? 

    If from CA only then which one you want to use?


    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 7:59 PM
    Moderator
  • I want to go back to the original URL based upon the server name  http://ETGCTSPAPP01:8888
    Wednesday, March 15, 2017 8:03 PM
  • What you have to do. First make the

    Set-SPAlternateURL -Identity "url of central admin site" -Url http://etgctsp01ca:8888 -zone "intranet"
    then run the Get-SPalternateURL, if the etgctsp01ca showed as intranet then remove it

    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 8:12 PM
    Moderator
  • Triedthe command with both base URLs and they threw errors. See attached
    Wednesday, March 15, 2017 8:25 PM
  • what is the output of the this

    Get-SPWebApplication -IncludeCentralAdministration


    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 8:43 PM
    Moderator
  • See below: 

    PS C:\Users\sschifter> Get-SPWebApplication -IncludeCentralAdministration
    
    DisplayName                    Url
    -----------                    ---
    SharePoint - 80                http://etgctspapp01/
    SharePoint Central Administ...
    
    
    PS C:\Users\sschifter> Get-SPWebApplication -IncludeCentralAdministration |fl
    
    
    SiteDataServers                                      : {}
    IisSettings                                          : {[Default, Microsoft.SharePoint.Administration.SPIisSettings]}
    ApplicationPool                                      : SPApplicationPool Name=SharePoint - 80
    WebService                                           : SPWebService
    AlternateUrls                                        : {Microsoft.SharePoint.Administration.SPAlternateUrl}
    AlwaysProcessDocuments                               : False
    DefaultServerComment                                 : SharePoint
    WebConfigModifications                               : {}
    TypeName                                             : Web Application
    ContentDatabases                                     : {WSS_Content}
    PolicyLoggingEnabled                                 : True
    SelfServiceSiteCreationEnabled                       : True
    ShowNewGroupMenuItem                                 : False
    ShowStartASiteMenuItem                               : False
    SelfServiceSiteCustomFormUrl                         :
    SelfServiceCreateIndividualSite                      : False
    SelfServiceCreationParentSiteUrl                     :
    SelfServiceCreationQuotaTemplate                     :
    IsPaired                                             : False
    CanMigrate                                           : False
    Features                                             : {0ea1c3b6-6ac0-44aa-9f3f-05e8dbe6d70b,
                                                           14173c38-5e2d-4887-8134-60f9df889bad,
                                                           1dbf6063-d809-45ea-9203-d3ba4a64f86d,
                                                           20477d83-8bdb-414e-964b-080637f7d99b...}
    PingProcessDelay                                     : 90000
    PingTimeAvailable                                    :
    PingWarmupPage                                       :
    EventLogRetentionPeriod                              : 14.00:00:00
    ChangeLogRetentionPeriod                             : 120.00:00:00
    DocumentLibraryCalloutOfficeWebAppPreviewersDisabled : False
    ChangeLogExpirationEnabled                           : True
    AlertsEnabled                                        : True
    AlertsLimited                                        : True
    AlertsMaximum                                        : 500
    UseExternalUrlZoneForAlerts                          : True
    MaxSizePerCellStorageOperation                       : 0
    MaxItemsPerThrottledOperation                        : 5000
    MaxItemsPerThrottledOperationWarningLevel            : 3000
    MaxItemsPerThrottledOperationOverride                : 20000
    AllowOMCodeOverrideThrottleSettings                  : True
    UnthrottledPrivilegedOperationWindowEnabled          : False
    MaxQueryLookupFields                                 : 12
    MaxListItemRowStorage                                : 1
    MaxUniquePermScopesPerList                           : 50000
    DailyStartUnthrottledPrivilegedOperationsHour        : 23
    DailyStartUnthrottledPrivilegedOperationsMinute      : 0
    DailyUnthrottledPrivilegedOperationsDuration         : 0
    CascadeDeleteTimeoutMultiplier                       : 120
    CascadeDeleteMaximumItemLimit                        : 1000
    AlertsMaximumQuerySet                                : 1000
    AlertsEventBatchSize                                 : 0
    AlertFlags                                           : 0
    DefaultQuotaTemplate                                 :
    SendUnusedSiteCollectionNotifications                : False
    AutomaticallyDeleteUnusedSiteCollections             : False
    UnusedSiteNotificationPeriod                         : 90.00:00:00
    UnusedSiteNotificationsBeforeDeletion                : 4
    FormDigestSettings                                   : Microsoft.SharePoint.Administration.SPFormDigestSettings
    HttpStrictTransportSecuritySettings                  : Microsoft.SharePoint.Administration.SPHttpStrictTransportSecuritySetti
                                                           ngs
    RequireContactForSelfServiceSiteCreation             : False
    StorageMetricsProcessingDuration                     : 30
    EventHandlersEnabled                                 : False
    SendLoginCredentialsByEmail                          : True
    RightsMask                                           : FullMask
    ApplicationPrincipalMaxRights                        : ViewListItems, AddListItems, EditListItems, DeleteListItems,
                                                           ApproveItems, OpenItems, ViewVersions, DeleteVersions,
                                                           CancelCheckout, Open, ViewPages, BrowseUserInfo, UseRemoteAPIs
    Sites                                                : {$null, $null}
    DataRetrievalProvider                                : Microsoft.SharePoint.Administration.SPDataRetrievalProvider
    PresenceEnabled                                      : True
    PublicFolderRootUrl                                  :
    AllowContributorsToEditScriptableParts               : False
    AllowPartToPartCommunication                         : True
    AllowAccessToWebPartCatalog                          : True
    AllowedInlineDownloadedMimeTypes                     : {application/directx, application/envoy, application/fractals,
                                                           application/internet-property-stream...}
    MimeMappings                                         : {InfoPath.Document, InfoPath.Document.2, InfoPath.Document.3,
                                                           InfoPath.Document.4}
    BlockedFileExtensions                                : {ashx, asmx, json, soap...}
    BlockedViewAuditFileExtensions                       : {aspx, css, gif, jpeg...}
    WebFileExtensions                                    : {ascx, asmx, aspx, htc...}
    FileSavePostProcessExtensions                        : {jpg, jpeg}
    BrowserFileHandling                                  : Strict
    DaysToShowNewIndicator                               : 2
    MaximumFileSize                                      : 2047
    MaxAuditLogTrimmingRetention                         : 30
    TrimAuditLogEnforced                                 : True
    ListViewAuditEnabled                                 : False
    MaximumFileSizePerExtension                          : {}
    OutboundMailServiceInstance                          : SPOutboundMailServiceInstance
    OutboundMailSenderAddress                            : Sharepoint@ctsps01farm.edgetg.com
    OutboundMailReplyToAddress                           : Sharepoint@ctsps01farm.edgetg.com
    OutboundMailCodePage                                 : 65001
    OutboundMailPort                                     : 0
    OutboundMailEnableSsl                                : False
    OutboundMailCertificateThumbprint                    :
    OutboundMailOverrideEnvelopeSender                   :
    OutboundMmsServiceAccount                            :
    OutboundSmsServiceAccount                            :
    IncomingEmailServerAddress                           :
    ExternalUrlZone                                      :
    Policies                                             : {NT AUTHORITY\LOCAL SERVICE, Search Crawling Account, Search Crawling
                                                           Account}
    PolicyRoles                                          : {Full Control, Full Read, Deny Write, Deny All}
    DefaultTimeZone                                      : -1
    InheritDataRetrievalSettings                         : True
    RecycleBinEnabled                                    : True
    RecycleBinCleanupEnabled                             : True
    RecycleBinRetentionPeriod                            : 30
    SecondStageRecycleBinQuota                           : 50
    OfficialFileUrl                                      :
    OfficialFileName                                     :
    OfficialFileHosts                                    : {}
    ScopeExternalConnectionsToSiteSubscriptions          : False
    DocumentConversionsEnabled                           : False
    DocumentConversionsLoadBalancerUrl                   :
    DocumentConversionsSchedule                          : every 1 minutes between 0 and 59
    DocumentConversionsLoadBalancerServerId              : 00000000-0000-0000-0000-000000000000
    DocumentConverters                                   : {From InfoPath Form to Web Page, From Word Document to Web Page, From
                                                           Word Document with Macros to Web Page, From XML to Web Page}
    Prefixes                                             : {, sites, my, my/personal}
    SyndicationEnabled                                   : True
    UserDefinedWorkflowsEnabled                          : True
    SharePoint2010WorkflowsEnabled                       : True
    EmailToNoPermissionWorkflowParticipantsEnabled       : True
    ExternalWorkflowParticipantsEnabled                  : False
    UserDefinedWorkflowMaximumComplexity                 : 7000
    BlockNewContentDatabaseWhenMounting                  : False
    AllowDesigner                                        : True
    AllowRevertFromTemplate                              : True
    AllowMasterPageEditing                               : True
    ShowURLStructure                                     : True
    RequiredDesignerVersion                              : 15.0.0.0
    DesignerDownloadUrl                                  : http://go.microsoft.com/fwlink/?LinkId=328584
    AllowCreateDeclarativeWorkflow                       : True
    AllowSavePublishDeclarativeWorkflow                  : True
    AllowSaveDeclarativeWorkflowAsTemplate               : True
    JobDefinitions                                       : {job-workflow-failover, ExpirationProcessing, job-quota-dailymessage,
                                                           job-delete-upgrade-eval-sites...}
    RunningJobs                                          : {}
    JobHistoryEntries                                    : {SharePoint - 80, SharePoint - 80, SharePoint - 80, SharePoint -
                                                           80...}
    ForceseekEnabled                                     : True
    CrossDomainPhotosEnabled                             : False
    UserPhotoImportEnabled                               : False
    UserPhotoOnlineImportEnabled                         : False
    UserPhotoExpiration                                  : 72
    UserPhotoErrorExpiration                             : 6
    FileNotFoundPage                                     :
    IsAdministrationWebApplication                       : False
    PeoplePickerSettings                                 : Microsoft.SharePoint.Administration.SPPeoplePickerSettings
    MetaWeblogEnabled                                    : True
    MetaWeblogAuthenticationEnabled                      : False
    MasterPageReferenceEnabled                           : True
    SyncSiteProvisioningThrottle                         : 1
    SyncSiteProvisioningWaitTime                         : 5
    SyncSiteProvisioningDBThrottle                       : 0
    ClientCallableSettings                               : Microsoft.SharePoint.Administration.SPClientCallableSettings
    LookupDropDownUseStandardControl                     : True
    SiteUpgradeThrottleSettings                          : SPSiteUpgradeThrottleSettings
    HttpThrottleSettings                                 : SPHttpThrottleSettings
    RequestManagementSettings                            : SPRequestManagementSettings
    ServiceApplicationProxyGroup                         : SPServiceApplicationProxyGroup
    UseClaimsAuthentication                              : True
    EnabledClaimProviders                                :
    DisplayName                                          : SharePoint - 80
    AllowSilverlightPrompt                               : True
    BrowserCEIPEnabled                                   : False
    AllowAnalyticsCookieForAnonymousUsers                : False
    CellStorageWebServiceEnabled                         : True
    SiteSubscriptions                                    : {}
    DisableCoauthoring                                   : False
    RenderingFromMetainfoEnabled                         : True
    AllowHighCharacterListFolderNames                    : False
    CompatibilityRange                                   : Microsoft.SharePoint.SPCompatibilityRange
    AllowSelfServiceUpgradeEvaluation                    : True
    UpgradeReminderDelay                                 : 30
    UpgradeMaintenanceLink                               :
    ReadOnlyMaintenanceLink                              :
    UserSettingsProvider                                 : Microsoft.SharePoint.Portal.UserProfiles.UserProfileUserSettingsProvid
                                                           er
    CellStorageDataCleanupExcludedDocTypes               :
    CellStorageUserDataDeleteIncludedDocTypes            :
    CellStorageUserDataDeleteSizeThreshold               : -1
    UpgradeEvalSitesRetentionDays                        : 31
    MaxSizeForSelfServiceEvalSiteCreationMB              : 20480
    SendSiteUpgradeEmails                                : True
    CustomAppErrorLimit                                  : 5000
    UserResourceTrackingSettings                         : Microsoft.SharePoint.Administration.SPUserResourceTrackingSettings
    UserResourceTrackingSettings2                        : Microsoft.SharePoint.Administration.SPUserResourceTrackingSettings2
    AppResourceTrackingSettings                          : Microsoft.SharePoint.Administration.SPAppResourceTrackingSettings
    AnonymousResourceTrackingSettings                    : Microsoft.SharePoint.Administration.SPAnonymousResourceTrackingSetting
                                                           s
    SiteSubscriptionResourceTrackingSettings             : Microsoft.SharePoint.Administration.SPSiteSubscriptionResourceTracking
                                                           Settings
    SiteResourceTrackingSettings                         : Microsoft.SharePoint.Administration.SPSiteResourceTrackingSettings
    SuiteBarBrandingElementHtml                          : <div class="ms-core-brandingText">SharePoint</div>
    SuiteNavBrandingLogoNavigationUrl                    :
    SuiteNavBrandingLogoTitle                            :
    SuiteNavBrandingLogoUrl                              :
    SuiteNavBrandingText                                 :
    UseLatestDatabaseSchema                              : True
    ODBSettings                                          : SPODBSettings
    AppUserAcl                                           : {}
    MaxPreAuthorizedAccessUrlTimeToLive                  : 2.00:00:00
    DiskSizeRequired                                     : 0
    CanSelectForBackup                                   : True
    CanSelectForRestore                                  : True
    CanRenameOnRestore                                   : True
    CanUpgrade                                           : True
    IsBackwardsCompatible                                : True
    NeedsUpgradeIncludeChildren                          :
    NeedsUpgrade                                         : False
    UpgradeContext                                       : Microsoft.SharePoint.Upgrade.SPUpgradeContext
    ShouldDeferUpgradeActions                            : False
    Name                                                 : SharePoint - 80
    Id                                                   : 061138f4-568d-4bb4-83e8-88cb068f6685
    Status                                               : Online
    Parent                                               : SPWebService
    Version                                              : 12085
    DeploymentLocked                                     : False
    Properties                                           : {}
    Farm                                                 : SPFarm Name=SharePoint_Config
    UpgradedPersistedProperties                          : {}
    Url                                                  : http://etgctspapp01/
    
    fl : Object reference not set to an instance of an object.
    At line:1 char:53
    + Get-SPWebApplication -IncludeCentralAdministration |fl
    +                                                     ~~
        + CategoryInfo          : NotSpecified: (:) [Format-List], NullReferenceException
        + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.PowerShell.Commands.FormatListCommand
    
    PS C:\Users\sschifter>

    Wednesday, March 15, 2017 8:49 PM
  • Output is not showing the URL of the Central admin, I think best bet is re-provision the central admin.

    1st un provision it by running this command on app server

    Remove-SPCentralAdministration

    after that run the config wizard and select this server will host central admin to re provision it.


    Please remember to mark your question as answered &amp;Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 8:56 PM
    Moderator
  • Another thing before reproving, try this 

    Set-SPAlternateURL -Identity "url of central admin site" -Url http://ETGCTSPAPP01:8888 -zone "Default"


    Please remember to mark your question as answered &amp;Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 9:03 PM
    Moderator
  • It re-installed the Central Admin.  But the AAM still has the broken URL and that was assigned to the Central Admin. Need to change it to http://etgctsp01ca:8888/

    PS C:\Users\sschifter> Get-SPWebApplication -IncludeCentralAdministration
    
    DisplayName                    Url
    -----------                    ---
    SharePoint - 80                http://etgctspapp01:8888/
    SharePoint Central Administ... http://etgctsp01ca:8888/
    
    
    PS C:\Users\sschifter> Get-SPAlternateURL
    
    IncomingUrl                              Zone            PublicUrl
    -----------                              ----            ---------
    http://etgctsp01ca:8888                  Default         http://etgctsp01ca:8888
    http://etgctspapp01:8888                 Default         http://etgctspapp01:8888
    
    
    PS C:\Users\sschifter>

    Wednesday, March 15, 2017 9:13 PM
  • Ok you have to do this if Set-SPAlternateURL -Identity "http://etgcspo1app01:8888" -Url http://ETGCTSPAPP01-zone "Default" Set-SPAlternateURL -Identity "http://etgcspo1app01" -Url http://ETGCTSPAPP01:8888" -zone "intranet" Now remove this entry Remove-spalternateurl http://etgcspo1app01:8888 Now set this to ca web app Set-SPAlternateURL -Identity "http://etgcsp01ca:8888" -Url http://ETGCTSPAPP01:8888 -zone "Default" Now test the ca Please make sure URL correct as I am responding from mobile.

    Please remember to mark your question as answered &amp;Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -Waqas Sarwar(MVP) Blog: http://krossfarm.com

    Wednesday, March 15, 2017 9:32 PM
    Moderator
  • Thanks Sarwar!
    Thursday, March 16, 2017 1:54 PM