File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
sharepoint/sharepoint-ps/sharepoint-server Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -37,20 +37,31 @@ For permissions and the most current information about Windows PowerShell for Sh
37
37
38
38
## EXAMPLES
39
39
40
- ### ------------------EXAMPLE-----------------------
40
+ ### ------------------EXAMPLE 1 -----------------------
41
41
```
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 ")
43
43
```
44
44
45
45
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 .
46
46
47
- ### ------------------EXAMPLE-----------------------
47
+ ### ------------------EXAMPLE 2 -----------------------
48
48
```
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 ")
50
50
```
51
51
52
52
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 .
53
53
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
+
54
65
## PARAMETERS
55
66
56
67
### -ApplicationPool
You can’t perform that action at this time.
0 commit comments