If a file is locked by a user who doesn't work on it anymore (he closed the file already more than 10 minutes ago) it can happen that the file is still locked.
Here a script to unlock the file:
If you get an error like:
Exception calling "ReleaseLock" with "1" argument(s): "The file filename.xlsx is locked for exclusive use by DOMAIN\user"
...then try next script to use impersonation. This happens when a user left the file open and nobody else is able to edit the file in his absence.
Found those great and absolutetly useful scripts at Stackexchange where you get more informations about short term file lock.
Friday, February 9, 2018
Home
PowerShell
SharePoint
SharePoint 2013
SharePoint 2016
Troubleshooting
Clear short term file lock in SharePoint 2013+
Clear short term file lock in SharePoint 2013+
Tags
# PowerShell
# SharePoint
# SharePoint 2013
# SharePoint 2016
# Troubleshooting
About Unknown
I'm a SharePoint and Collaboration Engineer working in the finance industry in Switzerland. The purpose of this blog is to maintain information, scripts and links which I spent too much time searching for.
Troubleshooting
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment