PowerShell Logo Small

New-WebApplication



This is the built-in help made by Microsoft for the command 'New-WebApplication', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates a new IIS Web application.

SYNTAX


New-WebApplication [-Name] <String> [-ApplicationPool <String>] [-Force [<SwitchParameter>]] [-PhysicalPath <String>] [-Site <String>]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Creates a new IIS Web application.



<

RELATED LINKS


REMARKS

<

Examples


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

IIS:\>New-WebApplication -Name testApp -Site 'Default Web Site' -PhysicalPath c:\test -ApplicationPool DefaultAppPool



This example creates a new Web application named testApp on the Default Web Site. The application files are stored in the C:\Test folder, and
the application runs in the DefaultAppPool application pool.