Hi @gsnarendran-4128 ,
fsutil is a good option to create a large file.
I am using the following script for the same task:
$file = new-object System.IO.FileStream c:\temp\testfile.bin, Create, ReadWrite
$file.SetLength(4GB)
$file.Close()
if you prefer a file with random content you can this this:
$file = "c:\temp\testfile3.bin"
$sizeInMB = 8
$out = new-object byte[] ($sizeInMB*1048576); (new-object Random).NextBytes($out); [IO.File]::WriteAllBytes($file, $out)
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten