Sysprepping Windows Server 2012,如何避免VMware Tools安装的即插即用驱动程序被删除?

我正在使用Windows Server 2012 Standard作为虚拟机模板。 我想保留由VMWare Tools安装的驱动程序,使鼠标不会在新的安装中滞后。 如果我只是运行正常的sysprep /oobe /generalize ,驱动程序将会丢失。 鼠标会滞后。 修复VMWare工具安装修复了这个问题。

在Windows Server 2008 R2中,我通过告诉sysprep来保存即插即用驱动程序来解决这个问题,但是我不知道如何在sysprepping 2012中执行此操作。

与/ generalize选项一起运行Sysprep命令时,可以保留设备驱动程序。 为此,请在Microsoft-Windows-PnPSysprep组件中指定PersistAllDeviceInstalls设置。 在专用configuration阶段,即插即用会扫描计算机的设备,然后为检测到的设备安装设备驱动程序。 默认情况下,当您推广系统时,计算机会从系统中删除这些设备驱动程序。 如果在答案文件中将Microsoft-Windows-PnPSysprep \ PersistAllDeviceInstalls设置设置为true,则Sysprep不会删除检测到的设备驱动程序。

资源