Saturday, January 9, 2010

LanManServer hands on startup

My 64-bit Vista desktop started showing a very slow startup. Every time when it starts up, I had to wait for about 20 minutes until the network connection becomes available. This problem bothered me for weeks.

This is apparently due to Vista somehow booting up services in wrong order causing some dependant services hanging. I was trying to look at solutions in the Internet, but don’t have a proper set of keywords for googling, until I noticed in Task Manager there was a service “lanmanserver” hanging in as “starting” but couldn’t run until about 20 minutes waiting.

Now I’ve finally found a perfect solution related to “lanmanserver hang vista 64 bits” google keywords. Thanks to DEANREILY who posted it.

Here is the recap of what I did according to this solution:

1) Use regedit in administrator mode
2) Change entries in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler. Double click on "DependsOnService" entry. Add (append) three separate lines:
LanmanWorkstation
LanmanServer
LmHosts
2) Change entries in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetLogon.
Double click on "DependsOnService" entry and find the "LanmanWorkstation" line and delete it. Add a "LanmanServer" line If you don't see it.
My system had one line “LanmanWorkstation” before the change.
3) Click OK and exit the Registry Editor. Restart your computer. The 20 minute delay on start up problem should be gone.

Updated (2010-01-17):

The above solution will cause the Print Spooler service being unable to start any more, so all added printers are lost.

The root cause is really due to load order dependency of Print Spooler and Network.

Scenario:
    The spooler (I have a network printer server) wants to start but Network has not started yet.

Solution (Kludge):
    Simply set Printer Spooler service with manual start. (Note: Printer Spooler does not support delayed automatic start)

The Network will start normally. No more 20 minute delay. Then manually start the Print Spooler service, or whenever needing a printing job.

No comments:

Post a Comment