如果我有任何文件,并且我想chage该文件的摘要属性信息集,我该怎么做,我主要关注这个属性“Title,Subject ,类别,关键字,评论,来源,作者,修订号“如何使用powershell更改文件的摘要属性信息集
“”
如果我有任何文件,并且我想chage该文件的摘要属性信息集,我该怎么做,我主要关注这个属性“Title,Subject ,类别,关键字,评论,来源,作者,修订号“如何使用powershell更改文件的摘要属性信息集
“”
@Janki:
尝试看看这一个 - File Property Edit Pro
这个怎么样:
# Load SharePoint library
[system.reflection.assembly]::LoadWithPartialName("Microsoft.Sharepoint")
# Connect to the site collection http://SP2010 and store the object in the $site variable
$site = New-Object Microsoft.SharePoint.SPSite("http://SP2010")
# Connect to the root site in the site collection and store the object in $root
$root = $site.rootweb
# Store the Shared Documents document library in a variable $Docs
$docs = $root.lists["Shared Documents"]
# Display all the documents, their titles, names and IDs
$docs.items | format-table -property title,name,id
# Updates the title for each item in the list with Name
$docs.items | ForEach { $_["Title"] = $_["Name"]; $_.Update() }
# Display all the documents, their titles, names and IDs
$docs.items | format-table -property title,name,id
这适用于我。
嗨,任何人都可以请帮忙得到答案,请 – Janki 2011-05-19 23:11:51