disable "new hardware device found wizard"
#1
Posted 06 December 2005 - 03:31 PM
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?
#2
Posted 06 December 2005 - 07:53 PM
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "EnableBalloonTips"=dword:00000000
#3
Posted 07 December 2005 - 02:02 AM
http://www.911cd.net/forums//index.php?showtopic=14181&st=43
(point #8)
jaclaz
#4
Posted 07 December 2005 - 05:00 AM
bartb, on Dec 6 2005, 03:31 PM, said:
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.
This post has been edited by Bilou_Gateux: 07 December 2005 - 10:36 AM
#5
Posted 08 December 2005 - 08:31 AM
I use Windows XP Profesional. Could it be that this setting only works with XP Embedded?
Bart
#6
Posted 08 December 2005 - 09:18 AM
bartb, on Dec 8 2005, 08:31 AM, said:
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
Quote
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....link/events.asp.
This post has been edited by Bilou_Gateux: 09 December 2005 - 08:41 AM
#7
Posted 08 December 2005 - 03:22 PM
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
#8
Posted 09 December 2005 - 08:37 AM
bartb, on Dec 8 2005, 03:22 PM, said:
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
This post has been edited by Bilou_Gateux: 09 December 2005 - 08:45 AM
#9
Posted 09 December 2005 - 02:51 PM
Thanks for all your time.
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.johannesh...n/clickoff.html
http://msdn.microsoft.com/library/default....owing/hooks.asp
http://msdn.microsof...11/CuttingEdge/
http://www.nowtryus....ows_XP_Embedded
#10
Posted 10 December 2005 - 05:02 AM
bartb, on Dec 6 2005, 03:31 PM, said:
What kind of USB devices do you want to prevent detection on plugin?
ie Camera device which requires drivers to work
or
Disable USB Storage Devices with Group Policy
#11
Posted 10 December 2005 - 05:39 AM
Bilou_Gateux, on Dec 10 2005, 12:02 PM, said:
bartb, on Dec 6 2005, 03:31 PM, said:
What kind of USB devices do you want to prevent detection on plugin?
ie Camera device which requires drivers to work
or
Disable USB Storage Devices with Group Policy
Nice find!
jaclaz
#12
Posted 10 December 2005 - 10:36 AM
Actually it would be very interesting how to disable devices like mouse/keyboard
//Bart
#13
Posted 11 December 2005 - 05:46 AM
The kiosk will need to accept DRM compatible media players (needs drivers / playsforsure)
//Bart
- ← adjust for best appearance
- Unattended Windows 2000/XP/2003
- <Q> Does this sound like a reasonable plan to you? →



Help
Back to top









