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



from TechNet Blogs https://ift.tt/2JZ8Oma
Remove Read-Only lock from SharePoint 2013/2016 site collection Remove Read-Only lock from SharePoint 2013/2016 site collection Reviewed by Unknown on April 19, 2018 Rating: 5

No comments:

Powered by Blogger.