The Set-SPWebApplication cmdlet configures the Web application specified by the Identity parameter. For any settings that are zone-specific (for the Zone parameter set), the zone to configure must be provided. The provided zone must already exist.

Get-SPWebApplication http://server | Set-SPWebApplication -Zone “Extranet” -HostHeader “http://www.justsharepoint.com” – AllowAnonymousAccess

This example sets the HostHeader URL for the Extranet zone of the given Web application as http://www.justsharepoint.com and enables anonymous access.

%d bloggers like this: