0

We have someone who have modified many files on 10 March by adding .lock extension to the files so Test.xlsx become Test.xlsx.lock.

so can i write a power shell script which do the following:-

  1. Connect to a SharePoint site using MFA

  2. Get all files which have .lock extension + was modified on 10 March

  3. Restore the previous version of the file currentversion-1

  4. Rename the restored file and change its extension by removing the .lock so Test.Docx.lock become Test.Docx again?

is this possible using PnP Power shell?

Thanks

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.