There comes a time when you need to create files with powershell. Search the web and you will find many solutions. Here I am going to list a few of you options. First one up is from the Powershell Magazine by Shay Levy: It is a basic functions with some parameters for you to change the path where the file should be written and the size of the file. Second is from another blog Nate Jones. It is a couple of lines with code for you to run: Third is from Jeffery Hicks. He also use the [IO.File] .Net class to create an advanced function that also supports pipeline input. His function requires Powershell version 4: Click the pictures to find the article about each solution. If you search for your self, you will see pretty much all kinds of variations around the .Net class System.IO.File. Natively in Powershell to my knowledge there is no single cmdlet that lets you create files of an predefined size. So lets dig around and see what we can find. First we need to di...