Get-WebConfigFile

Gets the file system path of the Web.config file.

Syntax

Get-WebConfigFile
   [[-PSPath] <String[]>]
   [<CommonParameters>]

Description

Gets the physical path of the IIS configuration file at the specified IIS module namespace path.

Examples

-------------- EXAMPLE 1: Open the Web.config file for the Default Web Site --------------

IIS:\>notepad (Get-WebConfigFile 'IIS:\Sites\Default Web Site')

This example demonstrates how to use Notepad to open the web.config file for the Default Web Site.

Optional Parameters

-PSPath

The IIS module namespace path to the site containing the Web.config file.

Type:String[]
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False