Set The Lockstate Of Site Collections in SharePoint

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

Twitter This Tip! ReTweet this Tip!


Posted Apr 18 2012, 06:00 AM by sos
Idera SharePoint Reviews SMBology, Inc. Rackspace Hosting Sponsored by Idera and SharePoint Reviews and SMBology and EPCGroup.net
Copyright 2011 SecretsOfSharePoint.com. All rights reserved.