Creating Large Dummy Files

Sometimes, it is more efficient to use existing console tools rather than PowerShell cmdlets. For example here is a way to create a large file for load tests:

fsutil file createnew $env:temp\dummy.bin (1gb)

However, you should note that fsutil requires admin privileges.

Twitter This Tip! ReTweet this Tip!


Posted Mar 10 2010, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.