OEMPnpDriversPath in Sysprep.inf is limited to 2047 characters (285902)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q285902
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

SUMMARY

The OEMPnpDriversPath value in the Sysprep.inf file is limited to 2047 characters.

MORE INFORMATION

Exceeding this limitation does not cause an error when you run Sysprep, but it does truncate the path to the limitation when it is appended to the DevicePath registry entry in the following key:

HKLM\Software\Microsoft\Windows\CurrentVersion

To work around this limitation, manually enter the path that is provided in OEMPnpDriversPath into the DevicePath entry and then remove OEMPnpDriversPath from the Sysprep.inf file before running Sysprep.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

To enter the path in the DevicePath entry:
  1. Start Registry Editor.
  2. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

  3. Double-click the DevicePath value.
  4. Append the New Path Entries to the string in the Edit box, where New Path Entries are the path entries to your OEM drivers.

    Note When you type the path entries, use the %SYSTEMDRIVE% and %SYSTEMROOT% variables instead of the relative path entries that you use in the Sysprep.inf file. Separate multiple entries with a semi-colon (;).
  5. Click OK, and then close Registry Editor.


Using large paths in OEMPnpDriversPath and DevicePath may cause application or heap errors to occur on the computer.

Modification Type:MinorLast Reviewed:1/27/2006
Keywords:kbinfo KB285902