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
ReTweet this Tip!
Posted
Apr 18 2012, 06:00 AM
by
sos