SharePoint 2019 site suddenly Read Only even for Administrator!

Tevon2.0 1,106 Reputation points
2023-06-16T14:09:58.72+00:00

Upon going to one of my SharePoint sites this morning I noticed that one of them has the message:
"SharePoint sites are read-only right now while we do some maintenance. We apologize for the inconvenience.".

I went to central admin as an admin and the option to unlock is greyed out for this site collection while the other ones are normal. What can I do to fix this and why does this happen?

User's image

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 31,606 Reputation points Microsoft External Staff
    2023-06-19T06:18:54.84+00:00

    Hi Tevon ,

    In addition to this message, is there any other information or emails?

    To clear maintenance mode in SharePoint, use this PowerShell script:

    Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
     
    #Site Collection URL
    $SiteURL = "https://……/"
     
    #Clear Maintenance mode
    $Admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration($SiteURL)
    $Admin.ClearMaintenanceMode()
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.