PowerShell Logo Small

Set-WebConfiguration



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

Sets the value of an IIS configuration element.

SYNTAX


Set-WebConfiguration [-Filter] <String[]> [[-PSPath] <String[]>] [-Clr <String>] [-Force] [-Location <String[]>] [-Metadata <String>] -Value <PSObject> [-Confirm] [-WhatIf]
[<CommonParameters>]
Set-WebConfiguration [-Filter] <String[]> [[-PSPath] <String[]>] [-Clr <String>] [-Force] [-Location <String[]>] [-Metadata <String>] -InputObject <Object> [-Confirm]
[-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-WebConfiguration cmdlet changes the value of an IIS configuration element. The element can be specified as a configuration section or an XPath query.



<

RELATED LINKS


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

REMARKS

<

Examples


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

IIS:\>Set-WebConfiguration -filter '/system.applicationHost/sites/site[@name=" DemoSite"]/bindings' -PSPath IIS:\ -value
(@{protocol="http";bindingInformation=”*:80:DemoSite1”},@{protocol="http";bindingInformation="*:80:DemoSite2"})



TheSet-WebConfigurationcmdlet is used to replace the existing bindings of the Web site named DemoSite with new bindings.