How to to resolve File Locked issue in SharePoint Online

Error: The file "file" is locked for exclusive use by same User

Reason :
 “Windows SharePoint Services puts a write lock on the document on the server. The write lock times out after 10 minutes. Users cannot modify the document during the time when the document is locked”


use these management shell commands to release lock.
$url = “" 

$fileurl = “http:// gowthampnpdemo/pnpdemo/customlib/test.docx” 

$web = Get-SPWeb $url 

$item = $web.GetListItem($fileurl) 




Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.

No comments:

Post a Comment