win2linux-prewipe - Universal PowerShell hardware snapshot tool for Windows-to-Linux migrations.
Collects raw Hardware IDs, EDID/PPI, storage controller mode, firmware versions, and driver inventory before wiping the system.
Formatting the drive during OS installation destroys critical hardware context:
- Exact
VEN_XXXX&DEV_YYYY/VID_XXXX&PID_YYYY(PCI/USB) - Intel VMD/RST controller state (affects NVMe detection)
- EDID, physical display size, and calculated PPI
- IR cameras, dot projectors, fingerprint sensors
- SSD/BIOS firmware versions, third‑party drivers
This script preserves that data using only built‑in Windows components – no external tools, no installation.
-
Open PowerShell as Administrator.
-
Run:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass .\scripts\Get-WinHardwareSnapshot.ps1
-
Wait for completion. All reports will be saved to
D:\_BACKUP_BEFORE_CLEAN\.Note: If your system does not have a D: drive, edit the $OutputDir variable inside the script before running, or run the script from a location where you have write access.
| File | Description |
|---|---|
HardwareReport_*.txt |
Full human-readable diagnostic (CPU, RAM, GPU, displays, input, biometrics, audio, network) |
Linux_HardwareIDs.txt |
Clean VEN/VID + device names. Ready for linux-hardware.org and libfprint |
Linux_Drivers_Firmware.txt |
Storage controller mode (VMD/AHCI), SSD/BIOS firmware, third‑party drivers (including DCH) |
dxdiag_*.txt |
Complete DirectX Diagnostic Tool dump |
BatteryReport_*.html |
Battery wear, cycle count, and capacity history (powercfg) |
- Windows 10/11
- PowerShell 5.1+ (default)
- Administrator privileges (required for PnP, Storage, EDID registry,
pnputil)
If a device is missed or misidentified:
- Attach
Linux_HardwareIDs.txtand the relevant report section - Specify exact laptop/motherboard model
- Open an Issue or PR with a regex or WMI fallback patch
MIT. See LICENSE for details.