Thursday, December 18, 2014

Export property bag to a cvs file

Just a simple script, that read the property bag from a web, converts the key/value to a PowerShell object and pipe it to the Export-csv cmdlet.

$path = "c:\temp\propertybag.cvs"
$url = "http://win-l2sfc3oetnn"
$web = get-spweb $url
$web.AllProperties.getenumerator() | % {new-object psobject -Property @{Key = $;Value=$_.value} } | export-csv $path -notype -Delimiter ";"


  1. This comment has been removed by the author.

  2. something that is owned by a person, business, etc. : a piece of land often with buildings on it that is owned by a person, business, etc. : a special quality or .Lets Buy In Spain


  3. Excellent and useful script! thank you for sharing)
    Richard Brown data room due diligence

  4. This may include changing your billing address, transferring funds to a new trust account, making copies of keys, obtaining a rent stabilization certificate, and taking care of existing leases and rent rolls. KatyPropertyManagement