How to use sysprep without removing drivers:
Configure your answer file to persist the drivers by specifying the PersistAllDeviceInstalls setting in the Microsoft-Windows-PnPSysprep.
Another way would be to configure the registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Settings\sppnp set PersistAllDeviceInstalls to 1.
In my case windows 8.1 you also need to set DoNotCleanUpNonPresentDevices = true with out this it doesn't work.
ReplyDeleteIt took me a few few hrs to figure it out since there is not reference to this anywhere..
From post above:
ReplyDeletehttps://docs.microsoft.com/en-us/windows-hardware/customize/desktop/unattend/microsoft-windows-pnpsysprep-donotcleanupnonpresentdevices