Skip to content

Commit f6ac30f

Browse files
authored
Merge pull request #1068 from get-itips/patch-29
Added an example
2 parents aa4c2c8 + c2265a6 commit f6ac30f

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

docset/winserver2012-ps/webadminstration/Set-WebConfigurationProperty.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,34 @@ Set-WebConfigurationProperty -Name <String> -InputObject <Object> [-Clr <String>
3131
```
3232

3333
## DESCRIPTION
34-
TheSet-WebConfigurationPropertycmdlet changes the value of an IIS configuration property.
34+
The Set-WebConfigurationProperty cmdlet changes the value of an IIS configuration property.
3535
The element can be specified as a configuration section or an XPath query.
3636
Globbing, the use of wildcards, is supported.
3737

3838
## EXAMPLES
3939

40-
### -------------- EXAMPLE 1: Change the extension of all handlers mapped to .aspx --------------
40+
### -------------------------- EXAMPLE 1 --------------------------
4141
```
4242
IIS:\>Set-WebConfigurationProperty "//handlers/add[@path='*.aspx']" -PSPath IIS:\ -Name path -Value "*.mspx"
4343
```
4444

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

47-
### -------------- EXAMPLE 2: Setting new Bindings on an existing Web site --------------
47+
### -------------------------- EXAMPLE 2 --------------------------
4848
```
4949
IIS:\>set-webconfigurationproperty '/system.applicationHost/sites/site[@name="DemoSite"]' -PSPath IIS:\ -Name Bindings -Value (@{protocol="http";bindingInformation="*:80:DemoSite1"},@{protocol="http";bindingInformation="*:80:DemoSite2"})
5050
```
5151

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

55+
### -------------------------- EXAMPLE 3 --------------------------
56+
```
57+
IIS:\>set-webconfigurationproperty 'system.webserver/security/authentication/basicauthentication' -PSPath 'IIS:\sites\default web site\' -Name defaultlogondomain -Value 'contoso.com'
58+
```
59+
60+
The cmdlet sets the default domain of Basic Authentication settings on an existing Web site. Note that for this example to work, Custom Site Delegation for this type of Authentication must be set to Read/Write at the site level.
61+
5562
## PARAMETERS
5663

5764
### -AtElement
@@ -148,7 +155,7 @@ Accept wildcard characters: False
148155
```
149156
150157
### -Force
151-
If theForceparameter is used it causes the configuration property setting to be set at a level in the configuration hierarchy above a lock in the configuration.
158+
If the Force parameter is used it causes the configuration property setting to be set at a level in the configuration hierarchy above a lock in the configuration.
152159
153160
```yaml
154161
Type: SwitchParameter

0 commit comments

Comments
 (0)