Get-WebConfigFile
Gets the file system path of the web.config file.
Syntax
Get-WebConfigFile
[[-PSPath] <String[]>]
[<CommonParameters>]
Description
The Get-WebConfigFile cmdlet gets the physical path of the Internet Information Services (IIS) configuration file at the specified IIS module namespace path.
Examples
Example 1: Open the Web.config file for the default website
IIS:\> Notepad (Get-WebConfigFile -PSPath "IIS:\Sites\Default Web Site")
This command uses Notepad to open the Web.config file for the default website.
Parameters
-PSPath
Specifies the IIS module namespace path to the site that contains the Web.config file.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈