PowerShellOrg/cWebAdministration — pull request #5 by zuehlaa (2014-10-16 18:10:23+00:00)
Title: cWebsite Get-WebSite fix and added Set-WebConfigurationProperty option

Fixed an issue with the get-website lines

Added the option (webConfigProp) to set anything that can be set by using
Set-WebConfigurationProperty (currently can't do properties that are
collections, but should work on all others)

It has the fields Filter, PSPath, Name, Value, and optionally Location.
Location is needed for locked properties. Here is an example config
```
cWebsite DemoSite
{
Ensure = "Present"
Name = "DemoSite"
PhysicalPath = "C:\inetpub\wwwroot\websites\DemoSite\"
State = "Started"
BindingInfo = @(
PSHOrg_cWebBindingInformation
{
Protocol = 'HTTP'
Port = 80
HostName = '*'
}
PSHOrg_cWebBindingInformation
{
Protocol = 'HTTPS'
Port = 433
HostName = '*'
}
)
webConfigProp = @(
PSHOrg_cWebConfigProp
{
Filter = 'system.webServer/urlCompression'
PSPath = 'MACHINE/WEBROOT/APPHOST/DemoSite'
Name = 'doStaticCompression'
Value = 'true'
}
PSHOrg_cWebConfigProp
{
Filter = 'system.webServer/security/access'
PSPath = 'MACHINE/WEBROOT/APPHOST'
Location = 'DemoSite'
Name = 'sslFlags'
Value = 'Ssl,SslNegotiateCert,SslRequireCert'
}
PSHOrg_cWebConfigProp
{
Filter = 'system.webServer/cgi'
PSPath = 'MACHINE/WEBROOT/APPHOST'
Location = 'DemoSite'
Name = 'timeout'
Value = '00:20:00'
}
PSHOrg_cWebConfigProp
{
Filter = 'system.web/customErrors'
PSPath = 'MACHINE/WEBROOT/APPHOST/DemoSite'
Name = 'mode'
Value = 'Off'
}
PSHOrg_cWebConfigProp
{
Filter = 'system.net/mailSettings/smtp/network'
PSPath = 'MACHINE/WEBROOT/APPHOST/DemoSite'
Name = 'host'
Value = 'TestSMTPHost'
}
)
ApplicationPool = "Demo App Pool"
DependsOn = @("[WindowsFeature]IIS","[File]WebContent","[cAppPool]DemoAppPool")
}
```