$file = New-Object System.IO.FileStream "C:\temp\2GB-real.bin", Create, ReadWrite $file.SetLength(2GB) $file.Close()