How often have you worked on a project were you needed to create random files in big quantity in order to simulate a data usage ?

On some projects you might just need one or two big files, simply to measure bandwidth, or validate a backup procedure for example. On the next project, you might  need to create random files  to test a migration script and need a huge number of small files.

How do I create random files with human understandable names using PowerShell?

Well, i was facing that situation the other day, and started to write a function in order to create random files  with “humanly understandable” names. (and sometimes even funny names if you are lucky ;))

Find here the code for the function “Create-randomFiles” which will help you, well, create random files using powershell, and answer the scenarios above.