New-Website

New-Website

Creates an IIS website.

구문

Parameter Set: Default
New-Website [-Name] <String> [-ApplicationPool <String> ] [-Force] [-HostHeader <String> ] [-Id <UInt32> ] [-IPAddress <String> ] [-PhysicalPath <String> ] [-Port <UInt32> ] [-Ssl] [-SslFlags <Int32> ] [ <CommonParameters>]

자세한 설명

The New-Website cmdlet creates an Internet Information Services (IIS) website with the settings specified in parameter values.

매개 변수

-ApplicationPool<String>

Specifies the application pool in which the new site runs.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Force

사용자 확인을 요구하지 않고 명령을 실행합니다.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-HostHeader<String>

Specifies the host header of the new site.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-IPAddress<String>

Specifies the IP address of the new site.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Id<UInt32>

Specifies the ID of the new site.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of the new site.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-PhysicalPath<String>

Specifies the physical path of the new site. The specified folder must already exist.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Port<UInt32>

Specifies the port of the new site.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Ssl

Indicates that this cmdlet enables HTTPS binding on the site.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-SslFlags<Int32>

Indicates what type of certificate and certificate storage the new website supports. 이 매개 변수에 허용되는 값은 다음과 같습니다.

-- 0: Regular certificate in Windows certificate storage.
-- 1: SNI certificate.
-- 2: Central certificate store.
-- 3: SNI certificate in central certificate store.

별칭

없음

필수 여부

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-------------- EXAMPLEExample 1: CreateAdd a New Wweb Ssite --------------Createws

This command creates a website named TestSite.

IIS:\>New-WebSite -Name "TestSite" -Port 80 -HostHeader "TestSite" -PhysicalPath "$Env:systemdrive\inetpub\testsite"

관련 항목

Get-Website

Remove-Website

Start-Website

Stop-Website