Get-WebConfigFile
Get-WebConfigFile
Gets the file system path of the Web.config file.
Syntax
Parameter Set: Default
Get-WebConfigFile [[-PSPath] <String[]> ] [ <CommonParameters>]
Detailed Description
Gets the physical path of the IIS configuration file at the specified IIS module namespace path.
Parameters
-PSPath<String[]>
The IIS module namespace path to the site containing the Web.config file.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Examples
-------------- EXAMPLE 1: Open the Web.config file for the Default Web Site --------------
This example demonstrates how to use Notepad to open the web.config file for the Default Web Site.
IIS:\>notepad (Get-WebConfigFile 'IIS:\Sites\Default Web Site')