Create Alternate Access Mappings
#Examples of Alternate Access Mappings#Allows to use SharePoint cmdlets from inside the Windows PowerShell command windowIf ((Get-PsSnapin |?{$_.Name -eq "Microsoft.SharePoint.PowerShell"})-eq $null){ Add-PsSnapin Microsoft.SharePoint.PowerShell | Out-Null}#create the public URLNew-SPAlternateURL -URL "http://spsite"…