Skip to content

Commit 5d35538

Browse files
authored
Merge branch 'master' into patch-28
2 parents b93d77f + 3e49259 commit 5d35538

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sharepoint/sharepoint-ps/sharepoint-server/Set-SPWebApplication.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ For permissions and the most current information about Windows PowerShell for Sh
5656

5757
## EXAMPLES
5858

59-
### ------------------EXAMPLE-----------------------
59+
### EXAMPLE
6060
```
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
6263
```
6364

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

0 commit comments

Comments
 (0)