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 Knowledge Junction and live-beautiful-life.com, Author, Learner, Passionate Techie, avid reader. Certified Professional Workshop Facilitator / Public Speaker. Scrum Foundation Professional certificated. Motivational, Behavioral , Technical speaker. Speaks in various events including SharePoint Saturdays, Boot camps, Collages / Schools, local chapter. Can reach me for Microsoft 365, Azure, DevOps, SharePoint, Teams, Power Platform, JavaScript.

You may also like...

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

%d bloggers like this: