Get-WebConfigFile
Get-WebConfigFile
Gets the file system path of the web.config file.
구문
Parameter Set: Default
Get-WebConfigFile [[-PSPath] <String[]> ] [ <CommonParameters>]
자세한 설명
The Get-WebConfigFile cmdlet gets the physical path of the Internet Information Services (IIS) configuration file at the specified IIS module namespace path.
매개 변수
-PSPath<String[]>
Specifies the IIS module namespace path to the site that contains the Web.config file.
별칭 |
없음 |
필수 여부 |
false |
위치 |
2 |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
true (ByPropertyName) |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
예제
Example 1: Open the Web.config file for the default website
This command uses Notepad to open the web.config file for the default website.
IIS:\>Notepad (Get-WebConfigFile -PSPath 'IIS:\Sites\Default Web Site')