SharePoint OnPremises – Get-SPWeb – resolving error – Access to this Web site has been blocked

SharePoint 2013 Central Administration - Site Collection Quotas and Locks page
SharePoint 2013 Central Administration - Site Collection Quotas and Locks page

Hi All,

Greetings for the day 🙂 LIFE IS BEAUTIFUL 🙂

SharePoint migration contiues 🙂 Today new issue and solution 🙂

Background / Details : We are trying to access one of our SharePoint 2013 SiteCollection. We are using PowerShell CMDLET – Get-SPWeb and we are getting an error.

We tried to access the SiteCollection from browser and same error.

So in this article will discuss root cause of error and solution 🙂

Error :

Get-SPWeb : Access to this Web site has been blocked. Please contact the administrator to resolve this problem.
At line:1 char:10

Get-SPWeb <<<< -Limit All -Site <SiteCollectionURL>

CategoryInfo : InvalidData: (Microsoft.Share….SPCmdletGetWeb:SPCmdletGetWeb) [Get-
SPWeb], SPException

FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletGetWeb

Error - Access to this web site has been blocked while  accessing site using Get-SPWeb PowerShell CMDLET
Fig : Error – Access to this web site has been blocked while accessing site using Get-SPWeb PowerShell CMDLET

Solution :

Error - Access to this web site has been blocked
Fig : Error – Access to this web site has been blocked

Verifying and Updating lock status for Site from Central Administration :

  • Open the central administration
  • Navigate to – Application Management
Error - Access to this web site has been blocked - SharePoint 2013 Central Administration - Application Management
Fig : Error – Access to this web site has been blocked – SharePoint 2013 Central Administration – Application Management
  • We will be redirected to applications.aspx page as shown in below Fig
  • Click on “Configure quotas and locks” link as shown in below Fig
SharePoint 2013 Central Administration - Application Management details page - to configure / view quotas and locks
Fig : SharePoint 2013 Central Administration – Application Management details page – to configure / view quotas and locks
  • From application management page we will navigate to “Site Collection Quotas and Locks” – sitequota.aspx page as shown in below fig
 SharePoint 2013 Central Administration - Site Collection Quotas and Locks page
Fig : SharePoint 2013 Central Administration – Site Collection Quotas and Locks page
  • On “Site Collection Quotas and Locks” page we will have option to select the site collection and check the “Site Lock Information“
  • From the same page we could also update the Lock status for the selected site
  • If Site Lock Status is “No access” and if we try to access the Site either through browser or PowerShell we get an error – Access to this Web site has been blocked. Please contact the administrator to resolve this problem.
  • To access the site please change the appropriate site status (lock state) as per our organization requirement
  • Following are details for possible lock state values :
    • Not locked / Unlock => unlock the site collection and make it available to users
    • Adding content prevented / NoAdditions => prevent users from adding new content to site collection. Updates and deletions are still allowed
    • ReadOnly => prevent users from adding, updating, or deleting content
    • NoAccess => prevent users from accessing site collection and its content. Users who attempt to access the site receive an above error message

Thanks for reading 🙂 If its worth at least reading once, kindly please like and share 🙂 SHARING IS CARING 🙂

Enjoy the beautiful life 🙂 Have a FUN 🙂 HAVE A SAFE LIFE 🙂 TAKE CARE 🙂

Prasham Sabadra

LIFE IS VERY BEAUTIFUL. ENJOY THE WHOLE JOURNEY :) Founder of Microsoft 365 Junction, Speaker, Author, Learner, Developer, Passionate Techie. Certified Professional Workshop Facilitator / Public Speaker. Believe in knowledge sharing. Around 20+ years of total IT experience and 17+ years of experience in SharePoint and Microsoft 365 services Please feel free me to contact for any SharePoint / Microsoft 365 queries. I am also very much interested in behavioral (life changing) sessions like motivational speeches, Success, Goal Setting, About Life, How to live Life etc. My book - Microsoft 365 Power Shell hand book for Administrators and Beginners and 100 Power Shell Interview Questions - https://www.amazon.in/Microsoft-Administrators-Beginners-Interview-Questions/dp/9394901639/ref=tmm_pap_swatch_0?_encoding=UTF8&qid=1679029081&sr=8-11

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.