Site Collection stuck in Read Only mode

Hello everybody,

I was doing a backup-spsite but I interrupted it during the process, after doing this I get a pretty message in the site collection that was in Read Only mode.

$site =Get-SPSite -Identity http://xxx

$Site.ClearMaintenanceMode

Set-SPSite -Identity “http://xxx” -LockState “Unlock”

stsadm -o setsitelock -url http://xxx -lock none

But unfortunately was not possible to unlock the state of the site collection. Hopefully I found the following PS that did the trick:

$Admin =  new-object Microsoft.SharePoint.Administration.SPSiteAdministration(“http://xxx”)
$Admin.ClearMaintenanceMode()

After that, my site collection is not read-only any more

Till next time!

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s