Windows Group Policy Name :- Group Policy - Configure device installation time-out
At least Windows Server 2008 R2 or Windows 7
This policy setting allows you to configure the number of seconds Windows waits for a device installation task to complete.
If you enable this policy setting, Windows waits for the number of seconds you specify before terminating the installation.
If you disable or do not configure this policy setting, Windows waits 240 seconds for a device installation task to complete before terminating the installation.
After changing group policy options, you need to update group policy. If you do not update group policy then settings will not effect. To update it just simply type below command and also sample image is shown.
In about command we used "/force" option, this will help up to update policy options forcefully.