New-WebVirtualDirectory

New-WebVirtualDirectory

Creates a virtual directory in IIS.

구문

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

자세한 설명

The New-WebVirtualDirectory cmdlet creates a virtual directory in Internet Information Services (IIS).

매개 변수

-Application<String>

Specifies the name of a web application under which this cmdlet creates the virtual directory.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Force

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

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

false

와일드카드 문자 허용 여부

false

-Name<String>

Specifies the name of the new virtual directory.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-PhysicalPath<String>

Specifies the physical path to the folder in which this cmdlet creates the virtual directory. The specified folder must already exist.

별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-Site<String>

Specifies the name of the site under which this cmdlet creates the virtual directory.

별칭

없음

필수 여부

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: Creating Create a Virtual virtual Directory directory --------------Create virtual directory

This command creates a virtual directory named ContosoVDir on the default website.

IIS:\>New-WebVirtualDirectory -Site "Default Web Site" -Name "ContosoVDir" -PhysicalPath "c:\inetpub\contoso" 

관련 항목

Get-WebVirtualDirectory

Remove-WebVirtualDirectory