serj Posted December 14, 2016 Report post Posted December 14, 2016 Hello, I am trying to add OSD task to create a partition (D Drive 5GB) on Win10 and no luck. I have partition Disk 0 -UEFI and once OS is installed I have a task to Format and partition Disk. Anyone had a better luck creating one? Thanks Quote Share this post Link to post Share on other sites More sharing options...
tale Posted December 14, 2016 Report post Posted December 14, 2016 By doing that "Format and Partition Disk" after everything, it's saying to delete the whole disk again and create just a single 5GB partition. A solution would be to have a script to automate DiskPart. You'd have a batch script "DiskPart.bat" @ECHO OFF diskpart /s "%~dp0Diskpart5GB.txt" And then the actual disk part layout would be a file named "Diskpart5GB.txt" SELECT VOLUME D ASSIGN LETTER=E SELECT DISK 0 SELECT PARTITION 4 SHRINK DESIRED=5120 CREATE PARTITION PRIMARY FORMAT FS=NTFS LABEL="APPS" QUICK ASSIGN LETTER=D EXIT The first 2 lines would be to change an attached DVD-ROM Drive to the letter E so D would then be free to use for the partition. If the computers do not have any DVD-Roms that can just be removed The partition number on line 4 could differ depending on how the partition layout is setup but that should be it. Quote Share this post Link to post Share on other sites More sharing options...
serj Posted December 14, 2016 Report post Posted December 14, 2016 Thanks for the quick reply. I tested and it works. Quote Share this post Link to post Share on other sites More sharing options...