用于执行SharePoint列表操作的Powershell
我有两个相同的SharePoint 2007列表 我是否可以使用powershell执行以下操作:用于执行SharePoint列表操作的Powershell,sharepoint,powershell,sharepoint-2007,version,custom-lists,Sharepoint,Powershell,Sharepoint 2007,Version,Custom Lists,我有两个相同的SharePoint 2007列表 我是否可以使用powershell执行以下操作: 将第一个列表及其所有项目版本历史记录复制到第二个列表中 从第一个列表中删除所有版本历史记录 为第一个列表中的每个项目清除大约15列 另外,在SharePoint 2007中,通过网页上的按钮让用户可以执行powershell脚本的最佳方法是什么 非常感谢您对这个脚本的任何帮助 因为您可以使用PowerShell中的任何DLL,所以可以使用PowerShell中的SharePoint API 基本上
非常感谢您对这个脚本的任何帮助 因为您可以使用PowerShell中的任何DLL,所以可以使用PowerShell中的SharePoint API 基本上你可以
false
,.Update()
,然后设置为true
,查看它是否自动删除版本
要从powershell访问SharePoint API,请执行():
注意,您只能从安装SharePoint的计算机上执行此操作。另一方面,您必须通过web服务与PowerShell对话
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")