Windows2003启动出现错误“Server 服务在启动时暂停”
这几天电脑又出现这个问题了,开机系统长时间不能正常访问文件目录和网络,等待10几分钟后,提示“在系统启动时至少有一个服务或驱动程序产生错误”,然后才能正常打开文件,运行程序,浏览网页等。
查看事件查看器,有两个错误:
1.Server 服务在启动时暂停。
2.与 Computer Browser 服务相依的 Server 服务因下列错误而无法启动:
启动后,服务停留在启动暂停状态。
这个问题困扰了我好几年了,我系统用的很仔细,一般不需要重装,每次重装几乎都是碰到了这个问题。
这几年出现这个问题竟然一直没上网搜索解决方法-.-!!
今天baidu了一下,找到答案了。
因为Print Spooler 服务的启动方式设为自动,由于Print Spooler服务的依赖关系里没有Server服务(可能是安装某些软件时造成了注册表项丢失),从而试图抢先在Server服务启动之前启动Print Spooler服务造成的,在注册表里给Print Spooler服务增加依赖项LanmanServer,再把Print Spooler服务的启动方式改为自动,出错现象得到了解决。
相应的msdn英文说明如下:
Services do not start and Event ID 7022 is logged in the System log in Windows NT 4.0, Windows 2000, or Windows Server 2003View products that this article applies to.
Article ID : 319127
Last Review : October 26, 2005
Revision : 2.0This article was previously published under Q319127
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/) Description of the Microsoft Windows registry
SYMPTOMSYou 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.CAUSEThis 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.
RESOLUTIONWarning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.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: 1. Click Start, and then click Run.
2. In the Open box, type regedt32, and then click OK.
3. Locate and click the following registry key:
HKLM\SYSTEM\CurrentControlSet\Services\Spooler
4. Click Add Value on the Edit menu.
5. Type DependOnService in the Value Name box.
6. Click REG_MULTI_SZ in the Data Type box, and then click OK.
7. Type LanmanServer in the Data box, and then click OK.
8. Click Exit on the Registry menu to quit Registry Editor.
9. Restart your computer.
奇怪,竟然和Print Spooler服务有关系,但问了下其他用xp系统的朋友,他们Print Spooler的服务并不依赖与Server,可能Windows 2003这里和XP有区别。
标签:Windows, 服务, 错误转载本站文章请注明,转载自:LeNgHoSt的小窝[http://www.lenghost.cn] 本文链接: http://www.lenghost.cn/tips/windows-2003-evid-7022/

发表评论