更新编辑器和已修改的发布页面

时间:2014-11-12 20:19:23

标签: powershell sharepoint sharepoint-2010

我尝试使用新的EditorModified值更新SharePoint 2010中的发布页面,但我传递的内容(我从其他页面复制的内容)未保存。

我已经尝试Update()SystemUpdate()UpdateOverwriteVersion() - 一切正常。有秘密技巧吗? :)

以下代码段:

...
$page = $web.Lists["Pages"].GetItemByUniqueId($uid)
$page["Editor"] = $e      # user from another page
$page["Modified"] = $m    # date from another page
$page.SystemUpdate($false)

0 个答案:

没有答案
相关问题