bartb Posted December 6, 2005 Share Posted December 6, 2005 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 Playhttp://msdn.microsoft.com/library/default....ingplugplay.aspSo i am now considering following option.Enabling Default Replyhttp://msdn.microsoft.com/library/default....efaultreply.aspI could not find where the logfile is kept using this option.Any ideas? Link to comment Share on other sites More sharing options...
Vadikan Posted December 7, 2005 Share Posted December 7, 2005 Is this a tray (notification area) popup? Off the top of my head... What about [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]"EnableBalloonTips"=dword:00000000 Link to comment Share on other sites More sharing options...
jaclaz Posted December 7, 2005 Share Posted December 7, 2005 You can try denying Permissions to System on the involved Registry hive, as hinted in Dietmar's posts here:http://www.911cd.net/forums//index.php?showtopic=14181&st=43(point #8)jaclaz Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted December 7, 2005 Share Posted December 7, 2005 (edited) 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 Playhttp://msdn.microsoft.com/library/default....ingplugplay.aspSo i am now considering following option.Enabling Default Replyhttp://msdn.microsoft.com/library/default....efaultreply.aspI 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 WizardWill 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 December 7, 2005 by Bilou_Gateux Link to comment Share on other sites More sharing options...
bartb Posted December 8, 2005 Author Share Posted December 8, 2005 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 Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted December 8, 2005 Share Posted December 8, 2005 (edited) 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?BartHere 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 driveghost32 -clone,mode=restore,src=@mce,dst=1 -sure -batchfrom WinPE, assign letter to restored partition to get access.diskpart /s assignc.txtselect disk 0select partition 1assign letter Cexitfrom WinPEregeditPEadded '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 valuesSET KEY=HKLM\System_ON_C\ControlSet001:: running Windows:: SET KEY=HKLM\System\CurrentControlSetREG ADD "%KEY%\Control\Error Message Instrument" /v EnableDefaultReply /t REG_DWORD /d 1 /fREG ADD "%KEY%\Control\Error Message Instrument" /v EnableLogging /t REG_DWORD /d 1 /fREG ADD "%KEY%\Control\Error Message Instrument" /v LogSeverity /t REG_DWORD /d 0 /fREG ADD "%KEY%\Services\EventLog\Application\Error Instrument" /v TypesSupported /t REG_DWORD /d 7 /fREG 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 InstrumentErreur 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 December 9, 2005 by Bilou_Gateux Link to comment Share on other sites More sharing options...
bartb Posted December 8, 2005 Author Share Posted December 8, 2005 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 More sharing options...
Bilou_Gateux Posted December 9, 2005 Share Posted December 9, 2005 (edited) 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 ControlSet001Take 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 December 9, 2005 by Bilou_Gateux Link to comment Share on other sites More sharing options...
bartb Posted December 9, 2005 Author Share Posted December 9, 2005 Hi Bilou,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.johanneshuebner.com/en/clickoff.htmlhttp://msdn.microsoft.com/library/default....owing/hooks.asphttp://msdn.microsoft.com/msdnmag/issues/02/11/CuttingEdge/http://www.nowtryus.net/article:Windows_XP_Embedded Link to comment Share on other sites More sharing options...
Bilou_Gateux Posted December 10, 2005 Share Posted December 10, 2005 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.What kind of USB devices do you want to prevent detection on plugin?ie Camera device which requires drivers to workorDisable USB Storage Devices with Group Policy Link to comment Share on other sites More sharing options...
jaclaz Posted December 10, 2005 Share Posted December 10, 2005 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.What kind of USB devices do you want to prevent detection on plugin?ie Camera device which requires drivers to workorDisable USB Storage Devices with Group PolicyNice find!jaclaz Link to comment Share on other sites More sharing options...
bartb Posted December 10, 2005 Author Share Posted December 10, 2005 The kiosk needs to accept DRM compatible media players, and phones to transfer ringtones and music.Actually it would be very interesting how to disable devices like mouse/keyboard//Bart Link to comment Share on other sites More sharing options...
bartb Posted December 11, 2005 Author Share Posted December 11, 2005 Hi,The kiosk will need to accept DRM compatible media players (needs drivers / playsforsure)//Bart Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now