Get-WebConfigFile
Gets the file system path of the web.config file.
Syntax
Default (Default)
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.
Parameter properties
Type: | String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.