Topic: Same USB won't recognize after being unplugged until you run Force Install USB  (Read 6838 times)

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
Still the same result after booting into PE.  No issue here for PESE and USBSTOR.SYS and I have HwPnP enabled.. :confused:

ila_rendered
« Last Edit: September 26, 2018, 04:51:32 PM by bob.omb »

realdragonluv

  • Jr. Chef
  • **
  • Date Registered: Oct 2015
  • Posts: 21
Thank you Fros!   :thumbsup:  It has been a while since I've come back due to other projects but I can confirm that the System32\drivers\\ with double \\ is on my build as well for the below keys and removing "System32\drivers\" resolves the issue for USB items not being detected properly.  I can now hopefully get rid of my custom Hardware change detection script that I had developed to get around this issue.

Keys impacted on my build with the added  System32\drivers\ in front of the ImagePath:
 
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\usbccgp
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\usbehci
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\usbhub
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\usbohci
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\USBSTOR
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\usbuhci

I got the same issue this week.
I'm using the latest Win10PE scripts with a 1709-Source.

The first time the USB flash drive is connect, it gets correctly connected and gets a drive letter.
But this won't work a second time (unless another USB flash drive keeps connected).
The error was not affected by the user account (SYSTEM / Administrator). The behavior of the USB flash drives was the same (that they only work at the first time).

The solution for me was:
There is a wrong path to the USBSTOR.SYS in the registry (Entry "ImagePath" in the key "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR").
The correct registry entry should be: \SystemRoot\System32\drivers\USBSTOR.SYS
But it actually is: System32\drivers\\SystemRoot\System32\drivers\USBSTOR.SYS

The reg-file with the correct entry is attached.

The content of the reg-file:
Code: [Select]
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\USBSTOR]
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,72,\
  00,69,00,76,00,65,00,72,00,73,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,00,\
  52,00,2e,00,53,00,59,00,53,00,00,00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]
"ImagePath"=hex(2):5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,72,\
  00,69,00,76,00,65,00,72,00,73,00,5c,00,55,00,53,00,42,00,53,00,54,00,4f,00,\
  52,00,2e,00,53,00,59,00,53,00,00,00

James

  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Dec 2017
  • Posts: 2272
You all do realize that when importing the registry setting into PE

Tmp_SYSTEM

is used...

Otherwise you are importing registry setting into Host Registry

realdragonluv

  • Jr. Chef
  • **
  • Date Registered: Oct 2015
  • Posts: 21
I didn't do anything special with the registry, I left everything as the default in the builder. 

Having said that, it is only the USB items that are impacted on the PE build.  All other ImagePath items in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\ do not have the added "\System32\drivers\\" in front of it.  * I did a complete registry search for "\System32\drivers\\" and those were the only ones impacted.

bob.omb

  • Moderator, Code Baker
  • Grand Chef
  • *****
  • Location: USA
  • Date Registered: Jul 2017
  • Posts: 1261
I cannot reproduce on my end.  Do you know what is the offending plugin?

realdragonluv

  • Jr. Chef
  • **
  • Date Registered: Oct 2015
  • Posts: 21
Unfortunately I do not know. 

At the time I was the only person to experience this so I didn't go much further as it seemed more like a one off issue.  The only real item I had checked was HwPnP (with nothing altered) and Driver Integration (To add the new Apple SSD driver ** Although this issue happened before I integrated that as well **). 

At the time I had developed a Hardware Change script that ran on each USB insert.  Now that I know it is just registry values causing the issue I will simply have a script that will correct the values if it happens on my next build with 1803.  At the time I was using 1709 and Win10PSE v.74  I have not done a newer build since then but may do an updated build in the coming weeks with 1803

 

Powered by EzPortal