0

Hi SharePoint stackers,

I am very new to sharepoint and powershell but I have an issue where a user's machine that has not been online for sometime that has then uploaded a huge amount of files and created copies with their user machine name at the end e.g filename-users machine.docx

I need to search through the whole team site and find the files in error that are there and remove all copies of these files. Doing this manually by searching is not an option so ideally need a powershell script that can help find and remove these files.

Any help much appreciated.

3
  • Are the files you are trying to track down spread across many site collections? (BTW - Often a site collection = a department) Commented Apr 27, 2018 at 13:38
  • its just one site collection but a few libraries within that one collection. Commented Apr 27, 2018 at 13:59
  • I've had this same issue also. REALLY frustrating - I wish there was an easy solution! As an example - say you have this file: Some_File_That_Is_Unique.zip but then you have Some_File_That_Is_Unique-PCName1234.zip and then Some_File_That_Is_Unique-PCName1234-PCName1234.zip - is there a solution out there that's easy to pull this out and get the filename pared down to remove these PC Name additions? Commented Jan 28 at 16:47

1 Answer 1

0

It's not clear properly, what's the role of user machine in sharepoint farm or web application. if he is uploading some files and internet disconnected so some files uploaded successfully or some is not, is this the scenario or what?

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.