Forum Discussion
Dino_Vo
Jun 15, 2021Copper Contributor
Locate a file - Powershell
Hi all, I have a user that reported missing one of the files in his "Documents library". Issue is: *he doesn't remember full name correctly - only that file ends up with word: "ABC"; *2nd issue i...
- Jun 16, 2021Hi Dino_Vo ,
It's probably impossible to find anything when he doesn't know it for 100%, because powershell only search for 100% files. But you can try out this:
get-childitem -recurse -Path C:\ -name *ABC* -include *.txt
(for sure you can remove the -include or change the file format to fe. .docx etc.)
Best regards,
Schnittlauch
"First, No system is safe. Second, Aim for the impossible. Third, no Backup, no Mercy" - Schnittlauch
My answer helped you? Don't forget to leave a like. Also mark the answer as solved when your problem is solved. 🙂
Schnittlauch
Jun 16, 2021Iron Contributor
Hi Dino_Vo ,
It's probably impossible to find anything when he doesn't know it for 100%, because powershell only search for 100% files. But you can try out this:
get-childitem -recurse -Path C:\ -name *ABC* -include *.txt
(for sure you can remove the -include or change the file format to fe. .docx etc.)
Best regards,
Schnittlauch
"First, No system is safe. Second, Aim for the impossible. Third, no Backup, no Mercy" - Schnittlauch
My answer helped you? Don't forget to leave a like. Also mark the answer as solved when your problem is solved. 🙂
It's probably impossible to find anything when he doesn't know it for 100%, because powershell only search for 100% files. But you can try out this:
get-childitem -recurse -Path C:\ -name *ABC* -include *.txt
(for sure you can remove the -include or change the file format to fe. .docx etc.)
Best regards,
Schnittlauch
"First, No system is safe. Second, Aim for the impossible. Third, no Backup, no Mercy" - Schnittlauch
My answer helped you? Don't forget to leave a like. Also mark the answer as solved when your problem is solved. 🙂