WinRE-Customization
WinRE-Customization copied to clipboard
Enhancement: Deal with x86 vs. x64 Shells
Running the script in x86 PowerShell places the WinRE.wim file in the C:\Windows\SysWOW64\Recovery folder instead of the C:\Windows\System32\Recovery folder. While this is mostly fine, editing the WIM using this script will break some of its detections if you run it in x86 first and then x64, or vice versa.
This script was built with x64 in mind, so we also need to account for x86.