
SharePoint Management with PowerShell
185
and running. Here you can start with the web application, create a site collection, and nally a site.
The rst cmdlet you need to be familiar with is
New-SPWebApplication:
New-SPWebApplication -ApplicationPool <String> -Name <String>
[-AdditionalClaimProvider <SPClaimProviderPipeBind[]>]
[-AllowAnonymousAccess <SwitchParameter>]
[-ApplicationPoolAccount <SPProcessAccountPipeBind>]
[-AssignmentCollection <SPAssignmentCollection>]
[-AuthenticationMethod <String>]
[-AuthenticationProvider <SPAuthenticationProviderPipeBind[]>]
[-Confirm [<Switch Parameter>]]
[-DatabaseCredentials <PSCredential>]
[-DatabaseName <String>]
[-DatabaseServer <String>]
[-HostHeader <String>]
[-Path <String>]
[-Port <UInt32>]
[-SecureSocketsLayer <SwitchParameter>]
[-ServiceApplicationProxyGroup <SPServiceApplicationProxyGroupPipeBind>]
[-SignInRedirectProvider <SPTrustedIdentityTokenIssuerPipeBind>]
[-SignInRedirectURL <String>]
[-URL <String>]
[-WhatIf [<SwitchParameter>]]
[<CommonParameters>]
The cmdlet has quite a few parameters. One of the parameters is the previously mentioned
AssignmentCollection. In this case, create a new web application and a new application pool
to go along with it. To create a new application pool, just pass in a name that does not already
exist with the
ApplicationPool parameter. The ApplicationPoolAccount parameter is required
when ...