Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Get-WebConfigFile

Windows Server 2012 R2 and Windows 8.1

Updated: February 20, 2014

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

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.

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')

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.