Makewinpemedia Diskpart Format ErrorLevel -2147212243

2

In working with Windows 8.1 WADK in a client environment recently, the need arose to create a USB key to boot from for PE environment on a workstation.  There is a new command in the WADK Deployment and Imaging Tools environment that allows one to easily create a bootable USB key to use to initialize the PE environment – makewinpemedia

wadk_02-300x151 Makewinpemedia Diskpart Format ErrorLevel -2147212243

Steps normally used to create the USB key:

Below, you will substitute the drive letter your USB key is mounted to.  All commands are issued from the tool launched as administrator.

Issue and Resolution:

In using a new USB key that I had recently bought to sneakernet files around, I received the error:  diskpart format errorlevel -2147212243 after entering the makewinpemedia command.  The USB key was a new 64gig Kingston key that worked perfectly fine in all other situations.  I had a hunch though that it could be the size of the key that diskpart was having issues with.  The idea after this being that hopefully I could create the USB key manually and avoid the issue I was running into using the makewinpemedia command.

Steps to manually create the USB key partition and file structure using diskpart:

This sets up a 10 gig partition on the key and formats it using FAT32.  Then all that is left to do is manually copy the files that you created when running the copype command mentioned above.  Below you would use the drive letter of your actual USB drive in Windows.

Final Thoughts

That is it!  After manually creating the partition and file system on the USB key manually and then copying the files over to the drive using XCOPY, I was able to boot from the USB key without issue.  So, if you run into this weird diskpart error when trying to use the makewinpemedia command from the deployment environment command prompt, manually creating the disk may be the best option.