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:-
Connect to a SharePoint site using MFA
Get all files which have .lock extension + was modified on 10 March
Restore the previous version of the file currentversion-1
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