通过 PowerShell 获取 SharePoint 网站上每个页面的所有 Webpart 属性 [英] Get all webpart properties via PowerShell for each page on a SharePoint site
问题描述
我在 SharePoint 2007 中有一个站点(不是我个人的),其中包含一些子站点.对于每个子站点及其每个页面,我如何获取 Webpart 的所有属性?
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?
这是使用 PowerShell(服务器没有 Visual Studio,另外一回事).
This is using PowerShell (the server does not have Visual Studio, another matter).
推荐答案
您可能需要进行一些批处理编程、迭代站点、页面……但也许您可以在这些链接上找到解决方案:
You will probably have to do some batch programing, iterate sites, pages ... but maybe you can find solution on these links:
通过 STSADM 和 PowerShell 自动化 SharePoint 2007 配置
枚举页面 Web 部件
您也可以使用 C# 在另一台机器上编写程序,然后在 SharePoint 服务器上执行它.
You can also write program on another machine using C# and just execute it on SharePoint server.
这篇关于通过 PowerShell 获取 SharePoint 网站上每个页面的所有 Webpart 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!