This is the built-in help made by Microsoft for the command 'Add-WebConfiguration', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 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.
Adds a collection element to an IIS configuration collection.
Add-WebConfiguration [-Filter] <String[]> [[-PSPath] <String[]>] [-AtElement <Hashtable>] [-AtIndex <Int32>] [-AtName <String>] [-Clr
<String>] [-Force [<SwitchParameter>]] [-Location <String[]>] [-Value <PSObject>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]
[<CommonParameters>]
The Add-WebConfiguration cmdlet adds a collection element to an existing IIS configuration collection.
<
Add-WebConfigurationProperty
Set-WebConfiguration
Remove-WebConfiguration
<
-------------- EXAMPLE 1: Add a new Default Document --------------
IIS:\>Add-WebConfiguration //defaultDocument/files "IIS:\sites\Default Web Site" -atIndex 0 -Value @{value="new-index.html"}
This example adds a new Default Document to the Default Document collection of the Default Web Site. By using "-atIndex 0" the new Default
Document is inserted at the top of the list.