Sharepoint Delete Hidden Site Columns

the errors you might get:
"Cannot change Hidden attribute for this field"
"cannot delete hidden column"


solution: run this Poweshell:

$web = Get-SPWeb http://YourSite/YourWeb
$list = $web.GetList("/YourWeb/Lists/YourList")
$field = $list.Fields.GetFieldByInternalName("YourFieldInternalName")
$type = $field.GetType()
$mi = $type.GetMethod("SetFieldBoolValue",
    [System.Reflection.BindingFlags]$([System.Reflection.BindingFlags]::NonPublic -bor
$mi.Invoke($field, @("CanToggleHidden",$true))



Popular posts from this blog

OverTheWire[.com] Natas Walkthrough - JUST HINT, NO SPOILERS

SOLVED The item could not be indexed successfully because the item failed in the indexing subsystem

Asp.Net Ending Response options, Response.End() vs CompleteRequest()