New
#1
Using DISKPART & DISM to Clean Install.
My Brother-In-Law is giving me an old [ NO more than 5 years ] Computer of his before the end of next weekend.
Now I thought that I would have a go at performing aClean Install
using a combination ofDISKPART
andDISM
for a change. Here are my initial notes of what to do and when to do them, if my logic is correct.
I have collated this from the various Tutorials etc.
Initial Notes:-
- SSD.
- Win 10 Pro [Index=6].
- Checked that the BIOS is set to Legacy and UEFI.
- Boot the installation media as UEFI from the Boot Menu [F12] during POST [Gigabyte].
- At the First Setup Screen press [Shift + F10] to open the CMD Prompt.
- Run the
Disk_Config.txt
[as below] file.
Let's assume that the installation media is on F:\ . . .
X:\Sources>diskpart /s F:\Disk_Config.txt
Disk_Config.txt
Setup:-
- Select Disk.
- Clean Disk.
- Convert to GPT.
- Delete the MSR [Microsoft Reserved] Partition that automatically gets created.
- Create & Format 100 MB EFI System Partition.
- Create 16 MB MSR [Microsoft Reserved] Partition [will Not be formatted].
- Create a 30 GB [30,720 MB] Partition for Primary OS.
- Format OS partition, Label it, Assign Drive Letter.
Windows Setup will automatically change this drive letter [W] to C:\.- Create & Format a 450 MB Recovery Partition.
Note: The ID must be set EXACTLY as shown.- Create & Format a 50 GB [51,200 MB] Data Partition.
- Apply Windows Image using DISM.
Let's assume that [list volume] shows my installation media is on F:\.
This will be at the X:\Sources Prompt.- Close CMD Prompt > Close Windows Setup > Yes to Reboot.
Double check for the CORRECT Installation USB Drive Letter . . .Code:select disk 0 clean convert gpt select part 1 delete part override create partition efi size=100 format quick fs=fat32 label="System" create partition msr size=16 create partition primary size=30720 format quick fs=ntfs label="W10" assign letter="W" create partition primary size=450 format quick fs=ntfs label="WinRE" set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" create partition primary size=51200 format quick fs=ntfs label="Data" assign letter="D" exit
Code:list volume
Code:dism /Apply-Image /ImageFile:F:\Sources\install.wim /index:6 /ApplyDir:W:\ W:\Windows\System32\bcdboot W:\Windows bcdboot W:\Windows /s W: /f UEFI exit
I am off to bed now so willNOT
get back to this until tomorrow.
Last edited by Paul Black; 08 Nov 2021 at 04:34.