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.
New-SPWebApplicationExtension -Identity "SharePoint - 80" -Name "SP
Internet Site" -Zone Internet -Url "http://internet" -HostHeader
"http://internet.sp2013.com"
The URL is the public-facing HTTP address; the HostHeader
entry is the internal alternate access mapping. The Zone
parameter can be one of the following:
• Intranet
• Internet
• Extranet
• Custom
The zone used in the command must not already be used. That is, a web application cannot already be extended to that zone.
Tip
A handful of optional parameters can be used to configure security and authentication.
3.142.173.227