New-WebApplication

New-WebApplication

Creates an IIS web application.

구문

Parameter Set: Default
New-WebApplication [-Name] <String> [-ApplicationPool <String> ] [-Force] [-PhysicalPath <String> ] [-Site <String> ] [ <CommonParameters>]

자세한 설명

The New-WebApplication cmdlet creates an Internet Information Services (IIS) web application.

매개 변수

-ApplicationPool<String>

Specifies the name of the application pool in which the new web application runs.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Force

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

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of the web application to create.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-PhysicalPath<String>

Specifies the physical path to the web application files.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Site<String>

Specifies the name of the site on which this cmdlet creates an application.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).

입력

입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.

출력

출력 유형은 cmdlet이 내보내는 개체의 유형입니다.

예제

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

This command creates a web application named TestApp on the default website. The application files are stored in the C:\Test folder, and the application runs in the DefaultAppPool application pool.

IIS:\>New-WebApplication -Name "TestApp" -Site 'Default Web Site' -PhysicalPath "C:\Test" -ApplicationPool "DefaultAppPool"

관련 항목

ConvertTo-WebApplication

Get-WebApplication

Remove-WebApplication