Extend a Web Application

Scenario/Problem: You need to extend a web application to a new zone.

Solution: Use the New-SPWebApplicationExtension cmdlet.

If you need to extend a web application to a different zone, that zone must not already be in use. New-SPWebApplicationExtension requires only the web application identity, the name of the new website that will extend the web application, and the zone. However, it is a good idea to include the new URL and HostHeader that the web application extension will use for the zone. Listing 5.6 shows an example command-line entry for extending the main SharePoint web application.

Listing 5.6. Extending a Web Application Example

New-SPWebApplicationExtension -Identity "SharePoint - 80" -Name "SPInternet ...

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.