Logical drives

The Win32_LogicalDisk WMI class represents a data source that resolves to an actual local storage device on a computer system running Windows. While Caption, Description, DriveType, ProviderName, and VolumeName are useful in most cases, more properties are available, and a complete list is available at http://msdn.microsoft.com/en-us/library/windows/desktop/aa394173(v=vs.85).aspx. The output will be formatted as a table, the properties will be the column headings, and they will be placed into alphabetical order.

Caption is the drive letter of the logical disk. The Name property also returns the drive letter.

Description is the type of disk. For example: Local Fixed Disk, CD-ROM Disc, or Removable Disk.

DriveType is returned as an integer that corresponds to the type of disk drive the logical disk represents (and this matches the Description, making DriveType sort of superfluous).

I am trying to create a batch file that automatically select a USB drive if it has a caption ASMedia in its name using WMIC command. I am having problems getting the script to identify the drive so it can be place against a variable so I can then run a diskpart script to prepare it for Windows To Go. I can use Powershell but I dont want to write a script as this is blocked.

Is there an easy statement that can use WMIC to capture the diskdrive and place the details into a variable I can use within Diskpart to prepare partitions.