locked
Sysprep delete all custom drivers RRS feed

  • Question

  • Hi Guys!,

     

    We're trying sysprep a Lenovo T410, with manufactured drivers instaled. We try to sysprep.exe /oobe /generalize /unattened:file.xml

    They image sysprep , but it deletes all custom driver from Lenovo, Audio, video etc..

    What can i do to solve that?

     

    Thx

     

    Wednesday, June 22, 2011 4:22 PM

Answers

  • Hi,

    Configure your answer file to persist the drivers by specifying the PersistAllDeviceInstalls setting in the Microsoft-Windows-PnPSysprep.

    <settings pass="generalize">
      <component name="Microsoft-Windows-PnpSysprep">
        <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
      </component>

    Another way would be to configure the registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Settings\sppnp set PersistAllDeviceInstalls to 1.


    Revue du Geek | Déployer Windows 7 avec MDT 2010
    • Marked as answer by mriosfer Thursday, June 23, 2011 3:31 PM
    Thursday, June 23, 2011 11:17 AM
  • Per document "How Sysprep Works" - http://technet.microsoft.com/en-us/library/dd744512(WS.10).aspx

    Persisting Plug and Play Device Drivers During generalize

    You can persist device drivers when you run the sysprep command with the /generalize option by specifying the PersistAllDeviceInstalls setting in the Microsoft-Windows-PnPSysprep component. During the specialize configuration pass, Plug and Play scans the computer for devices and installs device drivers for the detected devices. By default, these device drivers are removed from the system when you generalize the system. If you set PersistAllDeviceInstalls to true in an answer file, Sysprep will not remove the detected device drivers. For more information, see the Unattended Windows Setup Reference (Unattend.chm).

    See if that solves your problem...


    Nick Moseley - SCCM Admin http://t3chn1ck.wordpress.com
    • Marked as answer by mriosfer Thursday, June 23, 2011 3:31 PM
    Wednesday, June 22, 2011 8:07 PM

All replies

  • Per document "How Sysprep Works" - http://technet.microsoft.com/en-us/library/dd744512(WS.10).aspx

    Persisting Plug and Play Device Drivers During generalize

    You can persist device drivers when you run the sysprep command with the /generalize option by specifying the PersistAllDeviceInstalls setting in the Microsoft-Windows-PnPSysprep component. During the specialize configuration pass, Plug and Play scans the computer for devices and installs device drivers for the detected devices. By default, these device drivers are removed from the system when you generalize the system. If you set PersistAllDeviceInstalls to true in an answer file, Sysprep will not remove the detected device drivers. For more information, see the Unattended Windows Setup Reference (Unattend.chm).

    See if that solves your problem...


    Nick Moseley - SCCM Admin http://t3chn1ck.wordpress.com
    • Marked as answer by mriosfer Thursday, June 23, 2011 3:31 PM
    Wednesday, June 22, 2011 8:07 PM
  • Hi,

    Configure your answer file to persist the drivers by specifying the PersistAllDeviceInstalls setting in the Microsoft-Windows-PnPSysprep.

    <settings pass="generalize">
      <component name="Microsoft-Windows-PnpSysprep">
        <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
      </component>

    Another way would be to configure the registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Settings\sppnp set PersistAllDeviceInstalls to 1.


    Revue du Geek | Déployer Windows 7 avec MDT 2010
    • Marked as answer by mriosfer Thursday, June 23, 2011 3:31 PM
    Thursday, June 23, 2011 11:17 AM
  • Thx so much! Guys!

    Thursday, June 23, 2011 3:31 PM
  • You can also simply add the driver to the driverstore using either pnputil or dism (for an offline imagex file, unsigned drivers too).  It's important to have the video driver in there for the video rating to run and enable aero during windows setup (if you think aero is important).  I just figured this out myself.  I've seen drivers for macs stay in after sysprep.  I'm not sure what's weird about the lenovo (intel) drivers.




    • Proposed as answer by JS2010 Thursday, April 5, 2012 6:06 PM
    • Edited by JS2010 Thursday, April 5, 2012 6:07 PM
    Thursday, April 5, 2012 5:57 PM