Skip to content

Commit fd4e47c

Browse files
authored
Merge pull request MicrosoftDocs#4271 from tseward/patch-22
Update New-SPWebApplication.md
2 parents 0835f17 + 0a75680 commit fd4e47c

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

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

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,31 @@ For permissions and the most current information about Windows PowerShell for Sh
3737

3838
## EXAMPLES
3939

40-
### ------------------EXAMPLE-----------------------
40+
### ------------------EXAMPLE 1-----------------------
4141
```
42-
New-SPWebApplication -Name "Contoso Internet Site" -Port 80 -HostHeader sharepoint.contoso.com -URL "http://www.contoso.com/" -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\jdoe")
42+
New-SPWebApplication -Name "Contoso Internet Site" -Port 80 -HostHeader sharepoint.contoso.com -URL "http://www.contoso.com/" -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\wa")
4343
```
4444

4545
This example creates a new Web application by using an internal host header of sharepoint.contoso.com and a public URL of http://www.contoso.com.
4646

47-
### ------------------EXAMPLE-----------------------
47+
### ------------------EXAMPLE 2-----------------------
4848
```
49-
New-SPWebApplication -Name "Contoso Internet Site" -Port 443 -SecureSocketsLayer -HostHeader sharepoint.contoso.com -URL "https://www.contoso.com/" -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\jdoe")
49+
New-SPWebApplication -Name "Contoso Internet Site" -Port 443 -SecureSocketsLayer -HostHeader sharepoint.contoso.com -URL "https://www.contoso.com/" -ApplicationPool "ContosoAppPool" -ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\wa")
5050
```
5151

5252
This example creates a new SSL enabled Web application by using an internal host header of sharepoint.contoso.com and a public URL of https://www.contoso.com.
5353

54+
### ------------------EXAMPLE 3-----------------------
55+
```
56+
$ap = New-SPAuthenticationProvider
57+
New-SPWebApplication -Name "Contoso Internet Site" -URL "https://www.contoso.com" -Port 443
58+
-ApplicationPool "ContosoAppPool"
59+
-ApplicationPoolAccount (Get-SPManagedAccount "DOMAIN\wa")
60+
-AuthenticationProvider $ap -SecureSocketsLayer
61+
```
62+
63+
Creates a Windows Claims web application at the URL https://www.contoso.com using the domain account domain\wa.
64+
5465
## PARAMETERS
5566

5667
### -ApplicationPool

0 commit comments

Comments
 (0)