powershellscripts.com

Tutorials  PowerShell Cmdlet Help for New-WebApplication



NAME
New-WebApplication

SYNOPSIS
Creates a new IIS Web Application.

SYNTAX
New-WebApplication [-Site ] [-Name] [-PhysicalPath ] [-ApplicationPool ] [-Force]
[-WarningAction ] [-WarningVariable ] []


DESCRIPTION
Creates a new IIS Web Application.


PARAMETERS
-Site
The name of the site on which the application is created.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Name
The name of the web application to create.

Required? true
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-PhysicalPath
The physical path to the Web application files.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-ApplicationPool
The name of the application pool in which the new Web application executes.

Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-Force
Forces the creation of the application without prompting for user confirmation.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




-------------- EXAMPLE 1: Creating a new web application --------------

C:\PS>New-WebApplication -Name testApp -Site 'Default Web Site' -PhysicalPath c:\test -ApplicationPool DefaultAppPo
ol


This example creates a new web application named "testApp" on the Default Web Site.






RELATED LINKS