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 = $_.name;Value=$_.value} } | export-csv $path -notype -Delimiter ";"

9 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  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

    ReplyDelete

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

    ReplyDelete
  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

    ReplyDelete
  5. Insurance companies use loopholes to avoid paying claims. This article discusses how public adjusters prevent insurance companies from misusing these loop holes and possibly get your claim covered. Key west fire damage

    ReplyDelete
  6. In commercial real estate, you will undertake a variety of presentations, in a variety of circumstances. Most of them are business-like in nature, focusing on the needs of the tenant, the property buyer, or the property seller. Milton Real Estate

    ReplyDelete
  7. I think this is an enlightening post and it is exceptionally valuable and proficient. along these lines, I might want to thank you for the endeavors you have made in composing this article. Ludowici GA houses for sale

    ReplyDelete
  8. I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. I thank you to help making people more aware of possible issues. number for SMS online

    ReplyDelete
  9. As a self-contained eco-urban development, Vinhomes Riverside offers its residents a wide range of services and premium facilities such as 600,000 m2 of greeneries and lakes, shopping center, a food and entertainment complex, health club, banking services and quality schools.  Vinhomes Riverside villa

    ReplyDelete