Windows 7 slow network detection at startup

Symptoms:

Hang at “Welcome Screen” or “Please wait” screen (just before login promt)  for 1-4 minuttes

When it continues to the desktop you see a blue circle hangs over network icon, and if you try to start a application thats try to use network, it will hang until the network startup (the 1-4 minuttes)

if the pc is member of the domain you will se event 6005 and Event 6006 in the Application event log:

event 6005 Winlogon:

The winlogon notification subscriber <GPClient> is taking long time to handle the notification event (StartShell).

Event 6006 Winlogon:

The winlogon notification subscriber <GPClient> took 180 second(s) to handle the notification event (StartShell).

 

My resolution:

1: Change the service “HP CUE Device Discovery Service” (HPQDDSVC) to start manual

2: Set gpo Computer Configuration\Administrative Templates\System\Scripts\Run logon scripts synchronously to disabled