cschneegans / unattend-generator

.NET Core library to create highly customized autounattend.xml files
https://schneegans.de/windows/unattend-generator/
MIT License
680 stars 62 forks source link

select a disk when there are more than one disk #30

Closed wellsyu closed 3 months ago

wellsyu commented 3 months ago

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

wellsyu commented 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

cschneegans commented 3 months ago

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.