powershellscripts.com

Tutorials  PowerShell Cmdlet Help for Get-WebConfigFile



NAME
Get-WebConfigFile

SYNOPSIS
Gets the file system path of the web.config file.

SYNTAX
Get-WebConfigFile [[-PSPath] ] [-WarningAction ] [-WarningVariable ] [ rameters>]


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


PARAMETERS
-PSPath
The IIS module namespace path to site containing the web.config file to get.

Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false

-WarningAction


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-WarningVariable


Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES




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

C:\PS>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.






RELATED LINKS