Jump to content

disable "new hardware device found wizard"


Recommended Posts

Hi,

For a project we need to avoid the "new hardware device found wizard" popup when people put in a USB device in a Windows XP kiosk.

I tried following reg key, but it worked only one time, after that the popups returned.

Preventing Plug and Play

http://msdn.microsoft.com/library/default....ingplugplay.asp

So i am now considering following option.

Enabling Default Reply

http://msdn.microsoft.com/library/default....efaultreply.asp

I could not find where the logfile is kept using this option.

Any ideas?

Link to comment
Share on other sites


Hi,

For a project we need to avoid the "new hardware device found wizard" popup when people put in a USB device in a Windows XP kiosk.

I tried following reg key, but it worked only one time, after that the popups returned.

Preventing Plug and Play

http://msdn.microsoft.com/library/default....ingplugplay.asp

So i am now considering following option.

Enabling Default Reply

http://msdn.microsoft.com/library/default....efaultreply.asp

I have checked the 1st solution on a regular Windows XP install.

Although 'SuppressUI' data value set to 1, wizard windows popups. :}

view my post in Device Drivers forum: Disable Found New Hardware Wizard

Will your box running XP embedded or regular Windows XP?

As i understand article on msdn, all events are logged in Application log (%SystemRoot%\system32\config\AppEvent.Evt) and you can view them with Event Viewer (Start Run... eventvwr.msc OK) Application.

Edited by Bilou_Gateux
Link to comment
Share on other sites

I tried "Enabling Default Reply" but it did not work. :(

I use Windows XP Profesional. Could it be that this setting only works with XP Embedded?

Bart

Here my last check on Windows XP Professionnel SP2 french. As we canno't check hardware issues on VirtualPC, I'm using a ghost image stored on my Ghost multicast server for checking. It's faster than redoing an UA install each time.

from WinPE, I have restored a ghost image on hard drive

ghost32 -clone,mode=restore,src=@mce,dst=1 -sure -batch

from WinPE, assign letter to restored partition to get access.

diskpart /s assignc.txt

select disk 0
select partition 1
assign letter C
exit

from WinPE

regeditPE

added 'Enabling Default Reply' keys and value in registry

:: uncomment one of the SET command, depending of the environment where you make the changes from
:: WinPE, load Registry HIVES ON C first before injecting keys and values
SET KEY=HKLM\System_ON_C\ControlSet001
:: running Windows
:: SET KEY=HKLM\System\CurrentControlSet

REG ADD "%KEY%\Control\Error Message Instrument" /v EnableDefaultReply /t REG_DWORD /d 1 /f
REG ADD "%KEY%\Control\Error Message Instrument" /v EnableLogging /t REG_DWORD /d 1 /f
REG ADD "%KEY%\Control\Error Message Instrument" /v LogSeverity /t REG_DWORD /d 0 /f
REG ADD "%KEY%\Services\EventLog\Application\Error Instrument" /v TypesSupported /t REG_DWORD /d 7 /f
REG ADD "%KEY%\Services\EventLog\Application\Error Instrument" /v EventMessageFile /t REG_EXPAND_SZ /d %%SystemRoot%%\System32\User32.dll /f

and then rebooted.

Each time i restore a ghost image to a different computer than the one used to build the ghost image, at first boot, PnP enumeration detect a new disk configuration and ask to reboot. With the keys and value added to registry, The dialog box is auto answered with the default answer Yes and computer is rebooted.

Application log >> Event ID:1072 >> Source: Error Instrument

Erreur de l'instrument: NomProcessus : rundll32.exe TitreFenêtre : inconnu MsgLégende : Modification des paramètres système MsgTexte : Windows a terminé l'installation des nouveaux périphériques. Le matériel installé ne fonctionnera correctement qu'après le redémarrage de votre ordinateur.Vous devez redémarrer votre ordinateur pour que les nouveaux paramètres soient pris en compte.

Voulez-vous redémarrer maintenant ? NomModuleAppelant : inconnu AdrBase : 0XFFFFFFFF TailleImage : 0XFFFFFFFF AdrRetour : 0X00000001

Pour plus d'informations, consultez le centre Aide et support à l'adresse http://go.microsoft.com/fwlink/events.asp.

Edited by Bilou_Gateux
Link to comment
Share on other sites

Hi Bilou,

So it works with your WinXP Sp2 configuration?

Is this also working in runtime and not at install or first boot?

In the Microsoft documentation i read about using HKLM\System\CurrentControlSet\Control

and not CurrentControlSet001\

and two more questions;

- If it is working, are there no popups at all? , or do you see a quick windows that exits fast?

- where do I specify the action?

If I use setting as shown below it doesn't work.

Could it be a registry rights issue?

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Error Message Instrument]

"EnableDefaultReply"=dword:00000001

"EnableLogging"=dword:00000001

"LogSeverity"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\Error Instrument]

"TypesSupported"=dword:00000007

"EventMessageFile"=hex(2):25,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\

00,6f,00,6f,00,74,00,25,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,\

33,00,32,00,5c,00,55,00,73,00,65,00,72,00,33,00,32,00,2e,00,64,00,6c,00,6c,\

00,20,00,00,00

Link to comment
Share on other sites

Hi Bilou,

So it works with your WinXP Sp2 configuration?

Is this also working in runtime and not at install or first boot?

In the Microsoft documentation i read about using HKLM\System\CurrentControlSet\Control

and not CurrentControlSet001\

I can't answer the last questions before Monday (doing all this checks on brand new computers @ office)

Yes it works with a WinXP Sp2 configuration.

I'm doing offline registry editing from WinPE, that's why i'm using ControlSet001

Take two minutes to read this article Understanding and Using the NT Registry, especially the part Understanding Control Sets.

If i found some time @ office, i will try later to do an unattended install from our RIS server and add registry changes during install.

I have edited the batch in my previous post in order you can use it to add keys and values from a running Windows or at time of install. Use it instead of regedit /s your_posted_file.reg

Edited by Bilou_Gateux
Link to comment
Share on other sites

Hi Bilou,

Thanks for all your time. :thumbup

I have been reading a lot about this Messagebox Interception and I must conslude that it's only a functionality of Windows XP embedded. I tried your modified script but it still doesn't work. I think it can only work if some interception program is active during runtime. I found the program Winspector that displays which program is acticated and I see that rundll32.exe is started wich launches the messagebox(#32770)

As we need to have this kiosk operational for a demo in a shop next wednesday and we can't afford to have this "new hardware device found" popup, I implemented a workaround for the moment. The workaround is a tool I found wich detects the Messagebox and closes this window. The programm is called ClickOff.

This works for the moment, but if the DefaultReply really intercept the event and thus not activating the Messagebox and logs information to the Event log that would be much better.

Below are some links I read last night;

http://www.johanneshuebner.com/en/clickoff.html

http://msdn.microsoft.com/library/default....owing/hooks.asp

http://msdn.microsoft.com/msdnmag/issues/02/11/CuttingEdge/

http://www.nowtryus.net/article:Windows_XP_Embedded

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...