Thursday, September 22, 2011

Disable List Deletion using powershell sharepoint

PS > $spWeb = Get-SPWeb http://aaa.bbb.ccc
PS > $spList = $spWeb.Lists["Tasks"]
PS > $spList.AllowDeletion = $false
PS > $spList.Update()
PS > $spWeb.Dispose()

No comments:

Post a Comment

SharePoint document metadata not updating

I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...