When creating a Windows system image with a need to keep printer drivers and configuration, but sysprepping the device, the printers and configurations are gone. The unattend.xml file must be created/edited to maintain persistent plug and play devices .
The Sysprep /generalize command removes unique information from a Windows installation so that you can safely reuse that image on a different computer.
https://technet.microsoft.com/en-us/library/hh824938.aspx
Method 1
As part of the imaging best practice articles, we highly recommend using the Sysprep Creator Wizard to create your unattend.xml file. The Sysprep Creator Wizard provides a setting to keep all plug and play devices. (see Below)
Method 2
If you already have a standard unattend.xml file used in Windows imaging or creating a new unattend file isn't possible, add the following component to the section of your unattend.xml file will accomplish the same desired results. Do not copy and paste.
<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center