Wednesday, 6 November 2013

update Site Column using Power shell in sharepoint

Share it Please
$site = Get-SPSite -Identity "http://abcd:1111/sites/Demo1/"
$web = $site.RootWeb
$field=$web.Fields["EmpName"]
$field.Type= "Choice"
$field.Update($true)
$web.Dispose()
$site.Dispose()

No comments:

Post a Comment

Followers

Follow The Author