Skip to content

Latest commit

 

History

History
99 lines (78 loc) · 2.07 KB

WebConfigProperties.adoc

File metadata and controls

99 lines (78 loc) · 2.07 KB

DSC Resource 'WebConfigProperties'

WebConfigProperties is used to ensure the value of an identified property in the web.config file.

Source

DSC Resource

Documentation

Table 1. Attributes of category 'WebConfigProperties'
Parameter Attribute DataType Description Allowed Values

Items

Mandatory

Hashtable[]

set of web config properties

Table 2. Attributes of category 'WebConfigProperties/Items'
Parameter Attribute DataType Description Allowed Values

WebsitePath

Key

String

Path to website location (IIS or WebAdministration format).

Filter

Key

String

Filter used to locate property to update.

PropertyName

Key

String

Name of the property to update.

Value

String

Value of the property to update.

Ensure

String

Indicates if the property and value should be present or absent.

  • Present (default)

  • Absent

Example
WebConfigProperties:
  Items:
    - WebsitePath: IIS:\Sites\Default Web Site\CertEnroll
      Filter: system.webServer/directoryBrowse
      PropertyName: enabled
      Value: true
    - WebsitePath: IIS:\Sites\Default Web Site\CertEnroll
      Filter: system.webServer/security/requestFiltering
      PropertyName: allowDoubleEscaping
      Value: true