Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am sysprepping Windows Server 2012 Standard to be used as a VM template. I want to preserve drivers installed by VMWare Tools such that the mouse won't lag in new installations. If I just run a normal sysprep /oobe /generalize, the drivers will get lost. The mouse will lag. Repairing the VMWare Tools installation fixes the issue.

In Windows Server 2008 R2 I solved this issue by telling sysprep to preserve plug and play drivers, but I have no idea how to do this when sysprepping 2012.

share|improve this question

You can persist device drivers when you run the Sysprep command together with the /generalize option. To do this, specify the PersistAllDeviceInstalls setting in the Microsoft-Windows-PnPSysprep component. During the specialize configuration pass, Plug and Play scans the computer for devices, and then installs device drivers for the detected devices. By default, the computer removes these device drivers from the system when you generalize the system. If you set the Microsoft-Windows-PnPSysprep\PersistAllDeviceInstalls setting to true in an answer file, Sysprep doesn't remove the detected device drivers.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.