Post:
I recently ran into an issue when preparing a Windows 10 USB for installation on a system, that needed AHCI/RAID drivers with Win-RAID certificate, with no image or option to first install Win-RAID cert
Problem
-
Some Windows 10 ISO
install.wimfiles exceed 4GB and cannot be copied to a FAT32 USB (required for UEFI boot). -
AHCI/RAID drivers fail to install during setup unless the Win-RAID CA certificate is present.
Solution Steps
1. Split the oversized WIM file
Open PowerShell as Administrator. Create a temporary folder for split WIM files:
mkdir C:\ISOTemp
Split the WIM into smaller SWM files (~3.8GB each):
Dism /Split-Image /ImageFile:D:\sources\install.wim /SWMFile:C:\ISOTemp\install.swm /FileSize:3800
2. Prepare the USB
-
Format the USB as FAT32 for UEFI boot.
-
Copy all Windows installation files to the USB:
robocopy "C:\Users\YourUser\Downloads\Windows_10_20H2.3" "D:\" /E /COPYALL /R:2 /W:2
- Replace the original
install.wimwith the split SWM files:
Copy-Item C:\ISOTemp\*.swm D:\sources\
3. Inject Win-RAID CA Certificate
Copy the certificate into the mounted offline Windows image:
copy "D:\Win-RAID CA Certificate\Win-RAID CA.cer" "C:\Mount\Windows\System32\Win-RAID CA.cer"
Load the offline registry hive and add the certificate:
reg load HKLM\Offline "C:\Mount\Windows\System32\config\SOFTWARE"
certutil -addstore -f -enterprise -user "Root" "C:\Mount\Windows\System32\Win-RAID CA.cer"
reg unload HKLM\Offline
4. Inject AHCI/RAID Drivers
Add the drivers to the offline image using DISM:
dism /Image:C:\Mount /Add-Driver /Driver:"D:\Drivers\AHCI\x64" /Recurse
5. Unmount the image
Commit the changes and unmount:
dism /Unmount-Wim /MountDir:C:\Mount /Commit
6. Boot Your USB
-
The USB is now FAT32, UEFI-bootable, and includes the necessary drivers and certificate.
-
Windows setup will correctly recognize AHCI/RAID hardware
Thank you very much Fernando