File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sharepoint/sharepoint-ps/sharepoint-server Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,10 @@ For permissions and the most current information about Windows PowerShell for Sh
56
56
57
57
## EXAMPLES
58
58
59
- ### ------------------ EXAMPLE-----------------------
59
+ ### EXAMPLE
60
60
```
61
- Get-SPWebApplication http://somesite | Set-SPWebApplication -Zone "Extranet" -HostHeader "http://www.contoso.com" - AllowAnonymousAccess
61
+ $ap = New-SPAuthenticationProvider -AllowAnonymous
62
+ Set-SPWebApplication http://somesite -Zone "Extranet" -HostHeader "http://www.contoso.com" -AuthenticationProvider $ap
62
63
```
63
64
64
65
This example sets the HostHeader URL for the Extranet zone of the given Web application as http://www.contoso.com and enables anonymous access.
You can’t perform that action at this time.
0 commit comments