Microsoft KB Archive/285902

= OEMPnpDriversPath in Sysprep.inf is limited to 2047 characters =

Article ID: 285902

Article Last Modified on 2/28/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition

-



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:  Start Registry Editor. Navigate to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

 Double-click the  value. Append the  to the string in the Edit box, where   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 . 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.

Keywords: kbinfo KB285902

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.