Clear Maintenance Mode to Unlock a Site Collection in SharePoint

Problem: Another fine morning, SharePoint 2013/2016 sites started displaying a message: “We apologize for any inconvenience, but we’ve made the site read-only while we’re making some improvements.”. Same time, I noticed a backup failure E-mail from the backup software!

sharepoint 2013 remove maintenance mode

Root Cause:
Since the Backup failure occurred, SharePoint placed the site in read-only mode. However, all options under “Site Collection Quotas and Locks” were disabled in SharePoint 2013 Central Administration site!

Solution: Clear maintenance mode using PowerShell

This is because SharePoint site collection is set under maintenance mode. To clear maintenance mode in SharePoint, use this PowerShell script:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Site Collection URL
$SiteURL = ""

#Clear Maintenance mode
$Admin = new-object Microsoft.SharePoint.Administration.SPSiteAdministration($SiteURL)

This removes the maintenance mode in SharePoint 2013. Read more about SharePoint 2013 Maintenance Window Notifications

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

3 thoughts on “Clear Maintenance Mode to Unlock a Site Collection in SharePoint

  • Looks great. Thanks you for posting it. It works on my SP 2019. I have reattached content DB, it shows the issue.

  • An oldie but a goodie…….

  • Very use full blog , Thank you it working for me in Sharepoint 2019.


Leave a Reply

Your email address will not be published. Required fields are marked *