Get-WebConfigFile
Gets the file system path of the web.config file.
Syntax
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.
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour