PowerShell Logo Small

Add-WebConfiguration



This is the built-in help made by Microsoft for the command 'Add-WebConfiguration', 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 collection element to an IIS configuration collection.

SYNTAX


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



Search powershellhelp.space

DESCRIPTION


The Add-WebConfiguration cmdlet adds a collection element to an existing IIS configuration collection.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287836
Add-WebConfigurationProperty
Set-WebConfiguration
Remove-WebConfiguration

REMARKS

<

Examples


-------------- 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.