Release SharePoint site Lock using PowerShell Script


In this blog post I'm going to show you a PowerShell Script for releasing site lock.


Add-PSSnapin Microsoft.SharePoint.PowerShell -erroraction SilentlyContinue

$Admin = New-Object Microsoft.SharePoint.Administration.SPSiteAdministration("http://
sitecollection")
$Admin.ClearMaintenanceMode()

$site = Get-SPSite -Identity "http://sitecollection"

Write-Host $site.MaintenanceMode


Hope this will help people facing the lock problem in SharePoint.

Comments

Popular posts from this blog

Installation and Configuration of Office Online Server with SharePoint 2019

SharePoint 2019 Upgrade Part 6: SharePoint Upgrade Issues

Workflow Manager 1.0- Installation, Configuration and Issues