Get all webpart properties via PowerShell for each

2019-05-25 02:10发布

问题:

I have a site in SharePoint 2007 (not mine personally) with some subsites. For each subsite, and each of its pages, how can I get all the webpart's properties?

This is using PowerShell (the server does not have Visual Studio, another matter).

回答1:

You will probably have to do some batch programing, iterate sites, pages ... but maybe you can find solution on these links:

Automating SharePoint 2007 Configurations via STSADM and PowerShell
Enumerate Page Web Parts

You can also write program on another machine using C# and just execute it on SharePoint server.