Remove Read-Only lock from SharePoint 2013/2016 site collection


Set/Remove Read-Only lock from SharePoint 2013/2016 site collection using PowerShell:

 

$siteUrl = "http://mysiteurl"

#mark site as not locked

$s = get-spsite $siteUrl

$s.WriteLocked = $false

set-spsite $siteUrl -LockState Unlock
$s.Archived = $false

 

#mark site as read-only
set-spsite $siteUrl -LockState ReadOnly

Comments (0)

Skip to main content