Property Bag Cmdlet

Rating: No reviews yet
Downloads: 232
Released: May 6, 2010
Updated: May 6, 2010 by rpulipati
Dev status: Beta Help Icon

Recommended Download

Application RDA.PowerShell.PropertyBag.zip
application, 21K, uploaded May 6, 2010 - 232 downloads

Release Notes

This cmdlet allows to retrieve, insert and update property bag values at farm, web app, site and web scope. The same operations can be in code using Server OM. This is provided such that administrators can add/view property information into a site without a code change - not possible out of the box.

Installation

  • Download RDA.PowerShell.PropertyBag.zip and Extract (say c:\sp2010)
  • Using SharePoint 2010 Management Shell, deploy the solution
Add-SPSolution c:\sp2010\RDA.PowerShell.PropertyBag.wsp
Install-SPSolution RDA.PowerShell.PropertyBag.wsp -GACDeployment
  • Re-open the SharePoint 2010 Management Shell and execute the below powershell cmdlets

Usage

Verbs
RDA-Get
RDA-Set

Noun
PropertyBag

Help
get-help RDA-Get-PropertyBag -full
get-help RDA-Get-PropertyBag -full
or
RDA-Get-PropertyBag -?
RDA-Set-PropertyBag -?

Examples
get-help RDA-Get-PropertyBag -examples

OUTPUTS
Returns all farm properties hashtable:
C:\PS>RDA-Get-PropertyBag -Scope Farm -AllProperties $true
Returns a farm property value:
C:\PS>RDA-Get-PropertyBag -Scope Farm -Pn TestPropertyName
Returns all web application properties hashtable:
C:\PS>RDA-Get-PropertyBag -Scope WebApplication -AllProperties $true
Returns a web application property value:
C:\PS>RDA-Get-PropertyBag -Scope WebApplication -Pn TestPropertyName
Returns all site properties hashtable:
C:\PS>RDA-Get-PropertyBag -Scope Site -AllProperties $true
Returns a site property value:
C:\PS>RDA-Get-PropertyBag -Scope Farm -Pn TestPropertyName
Returns all web properties hashtable:
C:\PS>RDA-Get-PropertyBag -Scope Web -AllProperties $true
Returns a site property value:
C:\PS>RDA-Get-PropertyBag -Scope Web -Pn TestPropertyName

get-help RDA-Set-PropertyBag -examples

OUTPUTS
Sets farm property value:
C:\PS>RDA-Set-PropertyBag -Scope Farm -Pn TestPropertyName -Pv TestPropertyValue
Sets web application property value:
C:\PS>RDA-Set-PropertyBag -Scope WebApplication -Pn TestPropertyName -Pv TestPropertyValue
Sets site property value:
C:\PS>RDA-Set-PropertyBag -Scope Site -Pn TestPropertyName -Pv TestPropertyValue
Sets web property value:
C:\PS>RDA-Set-PropertyBag -Scope Web -Pn TestPropertyName -Pv TestPropertyValue

Reviews for this release

No reviews yet for this release.