SharePoint (2003 thru Online): Powershell for locked/blocked Sites/Site-Collections

Thursday, June 13, 2019

Powershell for locked/blocked Sites/Site-Collections

Our project is to migrate a SharePoint 2013 Site Collection from ABC domain to O365 with XYZ Domain.

Once decided, the Site Collection was made Read Only, backup of the DB was taken on ABC Domain. Restored the DB on another Site Collection in XYZ domain. While we are trying to access the Site Collection, we got the below error.



Additions to this Web site have been blocked. 
Please contact the administrators to resolve this problem.


1. Check the following in sites Quotas and Locks
·         Go to Central Administration -> Application Management -> Configure Quotas and Locks
·         Set the Site Lock Information to "Not Lock" (it had been set to " Read-only (blocks additions, updates, and deletions)”)


Once unlocked, was able to access and migrate the site successfully.

2. Use the below Powershell command to unlock the Site Collection.

Set-SPSite http://devsp13:92/test/ -LockState Unlock 


No comments:

Post a Comment