PowerShell Logo Small


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


Changes the value of an IIS configuration property.


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

Search powershellhelp.space


TheSet-WebConfigurationPropertycmdlet changes the value of an IIS configuration property. The element can be specified as a configuration section or an XPath query.
Globbing, the use of wildcards, is supported.



Online Version: http://go.microsoft.com/fwlink/p/?linkid=287902




-------------- EXAMPLE 1: Change the extension of all handlers mapped to .aspx --------------

IIS:\>Set-WebConfigurationProperty "//handlers/add[@path='*.aspx']" -PSPath IIS:\ -Name path –Value “*.mspx”

The cmdlet changes all handler paths to *.mspx that were mapped to *.aspx.

-------------- EXAMPLE 2: Setting new Bindings on an existing Web site --------------

IIS:\>set-webconfigurationproperty '/system.applicationHost/sites/site[@name="DemoSite"]' -PSPath IIS:\ -Name Bindings -Value

The cmdlet sets new bindings on an existing Web site. The original bindings are replaced.