PowerShell Logo Small

Add-WebConfigurationProperty



This is the built-in help made by Microsoft for the command 'Add-WebConfigurationProperty', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds a property to an IIS configuration section.

SYNTAX


Add-WebConfigurationProperty [-Filter] <String[]> [[-PSPath] <String[]>] [-AtElement <Hashtable>] [-AtIndex <Int32>] [-AtName <String>] [-Clr <String>] [-Force] [-Location
<String[]>] [-Type <String>] [-Value <PSObject>] -Name <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


Adds a property to an IIS configuration section. Globbing is supported.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287838
Remove-WebConfigurationProperty

REMARKS

<

Examples


-------------- EXAMPLE 1: Adding a Default Document --------------

IIS:\>Add-WebConfigurationProperty //defaultDocument/files "IIS:\sites\Default Web Site" -AtIndex 0 -Name collection -Value "new-index.html"



This command adds a new Default Document named new-index.html to the top of the list of existing documents.