Monday, December 1, 2014

Powershell to make List column optional in Sharepoint

$web = Get-SPWeb -identity "http://siteurl"

$list = $web.Lists["ListName"]
$column = $list.Fields["Title"]
$column.Required = $false
$column.Update()
$list.Update()

$web.Dispose()

No comments:

Post a Comment