Examples/Resources/SPSitePropertyBag/1-AddWebAppPropertyBag.ps1
<#
.EXAMPLE This example shows how add property bag value in a site collection. #> Configuration Example { param ( [Parameter(Mandatory = $true)] [PSCredential] $SetupAccount ) Import-DscResource -ModuleName SharePointDsc node localhost { SPSitePropertyBag Site_APPCodeProperty { PsDscRunAsCredential = $SetupAccount Url = "https://web.contoso.com" Key = "KeyToAdd" Value = "ValueToAddOrModify" Ensure = "Present" } } } |