문제

I enabled the Document ID feature in my site collection as a test but now I no longer need it so I have disabled.

However, the files in my library still have the Document ID field when I 'View properties' of the document. I would like to remove this field/column. It is not possible to do this the usual way.

Can someone explain how to do this?

도움이 되었습니까?

해결책

In the past, I've used PowerShell to remove the Document ID column from a library or all libraries in a site.

Might try a script like this:

$web = Get-SPWeb -identity http://portal/site
$list = $web.Lists[“Name of List”]
$column = $list.Fields[“Name of Column”]
$column.Hidden = $false
$column.ReadOnlyField = $false
$column.Allowdeletion = $true
$column.Sealed = $false
$column.Delete()
$list.Update()

http://shipoint.com/2012/08/01/delete-columns-from-sharepoint-2010-listlibrary-using-powershell/

다른 팁

This works for me using Office Dev PnP.

Set-PnPField -List "Library" -Identity "Document ID" -Values @{Hidden=$true}

This way it's no longer visible on the DispForm.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top