Closed wellsyu closed 3 months ago
i find an aticle https://www.cnblogs.com/jackadam/p/18161742 but i donot know how to add the script to the xml file
You can enter a custom diskpart script, and instead of the default SELECT DISK=0
you can select another disk by its index or location path. See select disk and Hard Disk Location Path Format for more information.
AFAIK diskpart has no built-in facility to select the smaller of two disks.
if there are more than one disk , how could i choose the one with small volume to be the os disk ,and format it automaticlly