Set The Lockstate Of SharePoint Site Collections

From Secrets of SharePoint – Tip of the Day

Niklas Goude

You can control the lock state of a Site Collection by using the Set-SPSiteAdministration cmdlet. There are four levels of LockState available:

  • Unlock – Sets the site collection to unlock
  • NoAdditions      – No new content can be added as only updates and deletions are allowed
  • Readonly -      Sets the site collection to read-only
  • Noaccess -      Sets the site collection to unavailable to all users

You can set the LockState to “NoAdditions” if you want to allow users to update and delete content, but not upload any new content:

PS > Set-SPSiteAdministration -Identity http://SP01 `

>> -LockState NoAdditions

You can Unlock a locked Site Collection by setting the LockState to “Unlocked”

PS > Set-SPSiteAdministration -Identity http://SP01 `

>> -LockState Unlock

This entry was posted in SharePoint and tagged by Rick Backus. Bookmark the permalink.

About Rick Backus

A technology consultant with over 25 years of IT, consulting and business technology industry experience. Specializing in integrating application, information and content management with business process and network infrastructure. Helping clients get the most out of technology to enable increased productivity, profitability, customer satisfaction and competitive advantage.