Search directory for files with special characters? (darn you OneDrive for Business)

So OneDrive for Business does not allow

" # % * : < > ? / | 

In the file names. We have to move a good handful of people over, but need to ensure the folder they keep their data in does not have any of those characters in the title.

Is there a way Powershell can run through the directory I put the script in and tell me if there any files that would cause a problem uploading?

Something like

“Scan…. Complete. 4 files found.

FolderFolderFile<.csv

FolderFolderFile#.txt”

From the bottom of both my heart and everyone on the Help Desk that has to move 500 users’ data, we thank you lol.

submitted by /u/swimbikerunrun
[link] [comments]

Leave a Reply