A. As part of a deployment using Microsoft Windows Preinstallation Environment (WinPE), you might need to partition the disk. The easiest way to do this is to place into a file the following commands:
select disk 0
clean
create partition primary
select partition 1
assign letter=c:
active
format
exit
Then execute the commands using the Diskpart command with the the /s parameter, as the following example shows:
The command creates one partition with all the space; alternatively, you can replace the "create partition primary" with "create partition primary size=<size in MB>" (e.g. "create partition primary size=10000") to create a 10GB C: drive. The figure shows the partitioning process in action.diskpart /s partscript.txt
1 comment
Hide comments