PowerShell Logo Small

Add-WebConfigurationProperty



This is the built-in help made by Microsoft for the command 'Add-WebConfigurationProperty', 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.

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 [<SwitchParameter>]] [-Location <String[]>] [-Type <String>] [-Value <PSObject>] -Name <String> [-Confirm
[<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


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



<

RELATED LINKS

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.