Before you begin
Back up any files you want to keep.
Ensure the Surface is plugged into power.
[32 GB is large enough to fit any recovery image]
Option 1: Wipe the drive using DiskPart (recommended)
Boot into Windows Recovery Environment (WinRE):
Turn the Surface off.
Hold Shift while selecting Restart, or boot from a Windows installation USB and choose Repair your computer.
Go to Troubleshoot → Advanced options → Command Prompt.
Start DiskPart:
Start DiskPart:
diskpart
List the disks:
list disk
Select the internal SSD (usually Disk 0):
select disk 0
Verify it's the correct disk:
detail disk
Erase the partition table:
clean
Or, for a full overwrite of every sector (takes much longer):
clean all
Exit DiskPart:
exit
At this point, the SSD is blank
Option 2:
Use the official Surface Recovery Image (recommended for Surface devices)
Instead of a generic Windows installer, Microsoft provides a Surface recovery image containing the correct drivers and firmware for your exact Surface Book 2 model.
This is often the best choice if you want the device restored to factory software.
Useful DiskPart commands
diskpart
list disk
select disk 0
detail disk
clean
convert gpt
exit
After reinstalling, immediately grab Surface-specific drivers/firmware from the Surface Driver and Firmware Update pack for Surface Book 2, since Windows Update sometimes lags on Surface-specific components