且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

向所有站点文档库视图添加新列

更新时间:2023-11-30 15:26:34

嗨Shearzo11,

Hi Shearzo11,

首先,在文档内容类型"中添加新列,然后为更新从该类型继承的所有内容类型"选择是".

First, add the new column in Document content type, and choose Yes for "Update all content types inheriting from this type".

使用以下PowerShell在所有文档库的默认视图中显示该列:

To show the column in all document libraries' default view, using the following PowerShell:


site = Get-SPSite"http://sharepoint.com"
site = Get-SPSite "http://sharepoint.com"


column =列"
column = "Column"