Microsoft KB Archive/285948

= OemPnpDriversPath appears multiple times in DevicePath =

Article ID: 285948

Article Last Modified on 2/27/2007

-

APPLIES TO


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

-



This article was previously published under Q285948



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



SYMPTOMS
The OemPnpDriversPath variable in the Sysprep.inf may appear multiple times in the DevicePath value that is stored in the registry.



CAUSE
The Windows 2000 System Preparation tool (Sysprep.exe) takes each path from the OemPnpDriversPath and appends the paths individually to the DevicePath value without verifying whether the path is already present. Paths that are appended to the DevicePath value in this manner will appear the same number of times that the individual path was included in the OemPnpDriversPath variable when Sysprep.exe was run against the image.



RESOLUTION
To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to obtain the latest Windows 2000 service pack

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 work around this problem, you can manually add the path that is provided in OEMPnpDriversPath into the DevicePath value and then remove OemPnpDriversPath from the Sysprep.inf file before you run Sysprep.exe.

To add the path in the DevicePath value, follow these steps:  Start Registry Editor (Regedt32.exe). Locate the following registry subkey:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion

 Double-click the DevicePath value. Append  to the string in the text box, where   are the path entries to you 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 quit Registry Editor.</ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 3.

<div class="moreinformation_section">

MORE INFORMATION
This behavior may produce an elongated DevicePath value.

Additional query words: kbSetup

Keywords: kbhotfixserver kbqfe kbbug kbenv kbfix kbsetup kbwin2000sp3fix KB285948

-

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

© Microsoft Corporation. All rights reserved.