How to disable detect hardware

Go to Start-> Control panel > Administrative tools > Service

Select m “Shall hardware Detection”  from the list showing in the right window.

Select “Log on tab”  from the new window.

Click on “Disable” shown in below of the window.

Click apply and then ok