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

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

我正在为 Windows Server 2012 Standard 进行系统准备,以将其用作 VM 模板。我想保留 VMWare Tools 安装的驱动程序,这样鼠标在新安装中就不会滞后。如果我只运行普通的sysprep /oobe /generalize,驱动程序就会丢失。鼠标会滞后。修复 VMWare Tools 安装可以解决此问题。

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

答案1

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

来源

相关内容