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
Post a Comment