Fastest way to search a directory for file names with specific characters

We just started using Office365 and, unbeknownst to us, you can't upload files containing certain characters to Sharepoint Online. The names of the files we are trying to upload cannot contain these characters:   " # % & * : < > ? \ / { | } ~
We have all of the folders that we plan on uploading in a single directory called "to be uploaded to sharepoint"
Is there any way to search through this directory and all of the subfolders in that directory for files with those invalid characters in their names?
I tried using a command like this,

dir *#* *%* *^&* *{* *}* *~*  /s /b > bad_file_names.txt

that I found on another website, but it just returns a list of all of the files and folders in that directory, regardless of whether or not their name contains an invalid character.

Any advice would be greatly appreciated.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Some of those characters aren't valid for NTFS, so it does no good to search for them.  Here's a line of PowerShell code that should work for you.
Get-ChildItem "c:\tobeuploadedtosharepoint" -recurse | Where { $ -match "[#%&{}~]" } | Select FullName

Open in new window

BroadsoundAuthor Commented:
Thanks for the response,
I found a free application online called Agent Ransack .

It does exactly what I need very efficiently.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Put the files into a Folder, do not use any of the forbidden characters as the Folder's Name.  Upload.
BroadsoundAuthor Commented:
Found an application online that does exactly what I need
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.