Say for example you want to create 16 volumes on your server and they are presented as Disk 0 to Disk 15 in your disk subsystem. You can very easily use Windows PowerShell to create the file.
Creating a loop of 16 instances is as easy as typing: 1..16 in PowerShell. We can pipe that result to another process to generate the file. The easiest process I found is the Foreach-Object loop, because it has a “Begin” parameter, which you can use to initialize your code snippet and an “End” parameter which you can use to generate the final file.