Display All Alternate Access Mappings

Scenario/Problem: You need to obtain an alternate access mapping reference and therefore need a listing of available alternate URLs.

Solution: Use the Get-SPAlternateURL cmdlet without any parameters.

To obtain a reference variable, you need to find the identity of the URL. Using Get-SPAlternateURL without any parameters, as shown in Listing 5.8, displays the current URL mappings.

Listing 5.8. Example Command to Display All Alternate URLs

Get-SPAlternateURL

Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.