Stop-WebItem

Stop-WebItem

Stops a site or an application pool.

구문

Parameter Set: Default
Stop-WebItem [[-PSPath] <String[]> ] [-Passthru] [-Protocol <String> ] [ <CommonParameters>]

자세한 설명

The Stop-WebItem cmdlet stops a site or an application pool.

매개 변수

-PSPath<String[]>

Specifies the path to the site or application pool.

별칭

없음

필수 여부

false

위치

2

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Passthru

Passes an object that represents the web item to the pipeline.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Protocol<String>

Specifies the protocol binding of the site to stop. This parameter applies to sites only.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

<CommonParameters>

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

입력

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

  • PSObject

출력

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

  • PSObject

예제

Example -------------- EXAMPLE Example 1: Stop a Web web site --------------web

This command stops the site named Default Web Site. No output is returned.

IIS:\>Stop-WebItem -PSPath 'IIS:\Sites\Default Web Site'

Example -------------- EXAMPLE Example 2: Stopping a Web website with feedback --------------web

This command stops the site named Default Web Site and reports whether the site was stopped.

IIS:\>Stop-WebItem -PSPath 'IIS:\Sites\Default Web Site' -Passthru

관련 항목

Restart-WebItem

Start-WebItem