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) 



Post a Comment

Previous Post Next Post

Recent Posts