PowerShell Logo Small

Set-WebConfigurationProperty



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.

SYNOPSIS

Changes the value of an IIS configuration property.

SYNTAX


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

DESCRIPTION


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.



<

RELATED LINKS


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

REMARKS

<

Examples


-------------- 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
(@{protocol="http";bindingInformation=”*:80:DemoSite1”},@{protocol="http";bindingInformation="*:80:DemoSite2"})



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