Almost two years ago I wanted to create a DiskPart graphic user interface (GUI) tool for all of my colleagues that do not like command line as much as I do. I used PowerShell to build a DISKPART script to automatically format USB drives as bootable. This script has been posted in a blog with title “DiskPart GUI PowerShell” and since then it has been downloaded more than 1000 times.
Today, in this blog, I give you an updated script that I hope will be a nice addition to your existing PowerShell scripts and tools, particularly for your Bootable Windows PE USB Drives.
The start page is shown in the picture 1; on the left side you can view the information about detected computer’s drives and on the right side you can select one – and just one – option from a set of partition alternatives.
To format a drive with selected partition style, please select a drive and then select one partition option as shown in the picture 2. In my example, I selected drive 2 and recommended UEFI\GPT partition to format my external USB drive.
You have to click on Format Disk button and confirm you choice to start DiskPart and formatting process (as shown in the picture below).
Finally, the second text box becomes visible on the left side and displays the result of all actions produced by DiskPart application.
This script could be found in the downloaded section – folder Application. Hopefully it will reach thousand downloads just as its predecessor.