最近电脑一直出这个问题,每次开机后,系统长时间不能正常访问文件目录和网络,等待10几分钟后,提示“在系统启动时至少有一个服务或驱动程序产生错误”,然后才能正常的打开文件,运行程序,浏览网页等。查看事件查看器,有两个错误:
1.Server服务在启动时暂停。
2.与computer browser服务相依的Server服务因下列错误而无法启动:启动后,服务停留在启动暂停状态。
这个问题已经快2个月了,今天终于找到了答案,多谢LeNgHoSt,看了他的日志才解决的,方法如下:
因为Print Spooler服务的启动方式设为自动,由于Print
Spooler服务的依赖关系里没有Server服务(可能是安装某些软件时造成了注册表项丢失),从而视图抢在Server服务启动之前启动Print
Spooler服务造成的,在注册表里给PrintSpooler服务添加依赖项LanmanServer,再把PrintSpooler服务的启动方式给为自动,出错的现象得到了解决。
相应的msdn英文说明如下:
SYMPTOMS:
You may experience the following symptoms:
When you start your computer, you may receive a message that
states that one or more services did not start.
If other users try to access your computer over the network,
they may not be able to locate your computer.
The following events may be logged in the System log:
Event ID: 7022
Source: Service Control Manager
Type: Error
Description: Server service hung on startup.
Event ID: 26
Source: Application Popup
Type: Information
Description: Application popup: Service Control Manager: At least
one service or driver failed during system startup.
Event ID: 7001
Source: Service Control Manager
Type: Error
Description: The Computer Browser service depends on the Server
service which failed to start because of the following error: After
starting, the service hung in a start-pending state.
Event ID: 7001
Source: Service Control Manager
Type: Error
Description: The Distributed File System service depends on the
Server service which failed to start because of the following
error: After starting, the service hung in a start-pending
state.
CAUSE:
This issue may occur if the Spooler service tries
to start before the Server service. This issue may occur if you
installed either the Lexmark International Markvision (LexBce)
service or the Hewlett-Packard JetAdmin port monitoring software on
your computer.
RESOLUTION:
Important This section, method,
or task contains steps that tell you how to modify the registry.
However, serious problems might occur if you modify the registry
incorrectly. Therefore, make sure that you follow these steps
carefully. For added protection, back up the registry before you
modify it. Then, you can restore the registry if a problem occurs.
For more information about how to back up and restore the registry,
click the following article number to view the article in the
Microsoft Knowledge Base:
322756 (http://support.microsoft.com/kb/322756/ ) How to
back up and restore the registry in Windows
To resolve this issue, edit the registry to make the Spooler
service dependent on the Server service. If you do so, the Spooler
service does not start until the Server service is running.
To create this dependency:
Click Start, and then click Run.
In the Open box, type regedt32, and then click OK.
Locate and click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Spooler
Click Add Value on the Edit menu.
Type DependOnService in the
Value Name box.
Click REG_MULTI_SZ in the Data Type box, and then
click OK.
Type LanmanServer in the
Data box, and then click OK.
Click Exit on the Registry menu to quit Registry
Editor.
Restart your computer.