Power Shell 操作 SharePoint 常用脚本 1
Power Shell 操作 SharePoint 常用脚本 1
1. 使用网站模板新建站点
write-host "Hide contentType column"$contentType = $categoryList.ContentTypes[$contentTypeName]$contentTypeColumn = $contentType.FieldLinks[$contentTypeColumnName]$contentTypeColumn.Hidden = $true$contentType.Update();$categoryList.Update()