这些服务是Windows的重要组成部分,没有它,操作系统(operating system)将无法正常运行。他们是在后台完成大部分工作并使事情发生的小奴才。服务不是靠自己完成工作的,因为他们经常需要彼此来实现他们的目标。当一个Windows 服务(Windows service)需要另一个服务来运行它时,称为它具有依赖关系。换句话说,某些服务依赖于其他服务,这就是为什么当您打算禁用、延迟或更改Windows 服务(Windows service)的启动方式时应该格外小心。在本文中,我们将向您展示如何识别Windows 服务(Windows service)的依赖关系以及如何更改其启动类型(startup type):
如何从Windows访问(Windows)服务(Services)
为了能够查看有关服务的详细信息、识别它们的依赖关系并更改它们的启动类型(startup type),您必须首先打开“服务(Services )”窗口。有不止一种方法可以做到这一点,我们在本文中介绍了所有这些方法:在Windows中访问(Windows)服务(Services)的 9 种方法(所有版本)。
如果您赶时间,需要打开“服务(Services)”窗口,可以使用搜索功能(search feature)打开它。在Windows 10的任务栏上Cortana的搜索字段、 (search field)Windows 8.1的“开始(Start)”屏幕上或Windows 7的“开始”菜单(Start Menu, )的搜索字段(search field)中键入单词services。然后,单击或点击(click or tap)“服务(Services )”或“查看本地服务”("View local services")搜索结果,“服务(Services)”窗口应打开。
如何查看Windows 服务的依赖关系(Windows service)
在许多情况下,Windows服务需要运行其他系统组件才能开始运行。这些组件称为依赖项,如果它们无法自行启动,则需要它们的服务也无法启动。
当服务无法启动时,您可以检查其依赖关系并确保它们中的每一个都在运行。如果要禁用服务,还必须检查其他系统组件或服务是否不依赖它。
要查看服务的依赖项列表,您必须首先打开其属性(Properties)窗口。您可以通过在“服务(Services)”窗口中双击(或双击)其名称,或右键单击(点击并按住(tap and hold))然后选择“属性(Properties)”来执行此操作。
然后,您可以在其“属性(Properties )”窗口的“依赖项”选项卡中查看该服务的依赖项。(Dependencies)
依赖项(Dependencies )选项卡分为两个部分:
- 第一部分首先告诉您“此服务依赖于以下系统组件”("This service depends on the following system components"),并列出了必须运行才能启动该服务的所有其他服务。
- 第二部分首先告诉您“以下系统组件依赖于此服务”("The following system components depend on this service"),然后列出了自身依赖于所选服务的服务。
一句话解释上面的内容,大体思路是:dependencies work -> the selected service works -> services depending on the selected service work as well。
如何禁用服务以及执行时会发生什么
如果您有任何理由想要禁用某个服务,这意味着它永远不会运行,您可以从其“属性(Properties )”窗口的“常规(General )”选项卡中执行此操作。单击或点击“启动类型”("Startup type" )列表,然后选择已禁用(Disabled)。
虽然我们不建议用户禁用服务,但在多种情况下您可能希望阻止其中一些服务运行。有人说,通过禁用不需要或不需要的服务,您可以调整您的计算机,使其启动或运行更快,因为它不为它们使用任何资源。虽然这在一定程度上是正确的,但大多数时候这些改进并不明显。但是,如果要进行此类调整,最好不要禁用服务,而只需将其“启动类型”("Startup type" )设置为Manual。您可以在本教程的下一部分中了解这意味着什么。
将“启动类型”("Startup type" )设置为禁用(Disabled )意味着永远无法启动所选服务。如果您需要它运行,则必须手动启动它,或者将其启动类型(startup type)再次更改为Automatic。
如何将Windows 服务(Windows service)设置为手动启动以及这样做时会发生什么
要将服务设置为手动启动,请打开其“属性(Properties)”窗口,切换到“常规”选项卡(General tab),然后从“启动类型”("Startup type")列表中选择“手动”选项。(Manual)
当您将服务设置为仅手动启动时, Windows(Windows)启动时不会启动指定的服务,但如果该服务被其他系统组件或服务请求,Windows可以执行它。在这种情况下,该服务在Windows启动或定期运行时不需要系统资源,因为它只在需要时运行。这样,您应该不会遇到完全禁用服务时可能遇到的问题。
如何延迟 Windows 服务
对于不太重要的服务,您应该考虑的另一个设置是Automatic (Delayed Start)。此设置使服务自动启动,但仅在Windows完成加载更重要的服务之后,这些服务设置在Automatic上。
这是一个很好的设置,可用于您不需要立即运行的服务,并且您还希望启动时间更快。
在更改启动类型(startup type)之前检查服务的依赖关系吗?
不幸的是,当他们根据网站或朋友的建议选择禁用服务时,没有多少人会查看Windows服务之间的依赖关系。(Windows)我们建议您在做出任何决定之前进行一些调查并了解服务的使用方式。为了帮助您,我们还发表了一篇文章,分享有关可以禁用的服务以及何时禁用的有用且安全的建议。你可以在这里找到它。
如果您有任何问题或提示要分享,请随时使用下面的评论部分与我们交谈。
How to identify the dependencies of Windows services and change how they start
The services are a vital part of Windows, without which the operating syѕtem could not functiоn properly. They are the small minіons that do most of the work in the background and make things happen. Services are not doing their jobs on theіr own, as they often need one аnother to achіeve their goals. When a Windows service needs another service, for it to function it, is called that it has a dependency. In other words, some services rely on others, and that is why you should be extra-careful when you intend to disable, delay оr change the way a Windows service starts. In this artiсle, we show you how tо identify the dependencies of Windows services and how to change their startup type:
How to access the Services from Windows
To be able to see details about services, identify their dependencies and change their startup type, you must first open the Services window. There is more than one way to do that, and we have covered them all in this article: 9 ways to access Services in Windows (all versions).
If you are in a hurry, and you need to open the Services window, you can open it by using the search feature. Type the word services in Cortana's search field on the taskbar in Windows 10, on the Start screen from Windows 8.1, or in the search field on the Start Menu, in Windows 7. Then, click or tap on the Services or "View local services" search result, and the Services window should open.
How to see the dependencies of a Windows service
In many instances, Windows services require other system components to run, before they can start operating. These components are known as dependencies and if they fail to start themselves, then the services that require them also fail to start.
When a service fails to start, you can examine its dependencies and make sure every one of them is running. If you want to disable a service, it is also essential to check that other system components or services do not depend on it.
To see the list of dependencies of a service, you must first open its Properties window. You can do it by double-clicking (or double-tapping) on its name in the Services window, or by right-clicking (tap and hold) on it and then choosing Properties.
You can then see the dependencies of that service, in the Dependencies tab from its Properties window.
The Dependencies tab is split into two sections:
- The first section starts by telling you that "This service depends on the following system components" and lists all the other services that must run for the service to be able to start.
- The second section starts by telling you that "The following system components depend on this service" and then lists the services that depend themselves on the selected service.
To explain the above in just one sentence, the general idea is: dependencies work -> the selected service works -> services depending on the selected service work as well.
How to disable a service and what happens when you do
If you have any reasons to want to disable a service, which means that it never runs, you can do it from the General tab of its Properties window. Click or tap on the "Startup type" list and select Disabled.
While we do not recommend that users disable services, there are various situations in which you might want to stop some of them from being run. Some say that, by disabling unneeded or unwanted services, you can tweak your computer so that it boots or runs faster, as it does not use any resources for them. While this is somewhat true, most times the improvements are not noticeable. However, if you want to make such tweaks, it is best not to disable services, but merely set their "Startup type" to Manual. You can see what this means, in the next section of this tutorial.
Setting the "Startup type" to Disabled means that the selected service can never be started. If you ever need it to run, you must start it manually, or change its startup type again to Automatic.
How to set a Windows service to start manually and what happens when you do
To set a service to start manually, open its Properties window, switch to the General tab, and then select the Manual option from the "Startup type" list.
When you set a service to start only manually, the specified service does not start when Windows starts but, if the service is requested by other system components or services, Windows can execute it. In this case, the service needs no resources from the system when Windows boots or when it runs regularly, as it only runs when it is needed. This way, you should be safe from encountering the issues you might see when you disable a service entirely.
How to delay a Windows service
Another setting you should consider for less critical services is Automatic (Delayed Start). This setting makes a service start automatically, but only after Windows is done loading the more essential services, which are set on Automatic.
This is an excellent setting to use for services that you do not need to run right away, and you also want the boot times to be faster.
Do you check the dependencies of services before changing their startup type?
Unfortunately, not many people look at the dependencies between Windows services when they choose to disable services based on the recommendations made by a website or a friend. We recommend that you investigate a bit and understand how a service is used before making any decisions. To help you out, we have also published an article sharing useful and SAFE recommendations on services that can be disabled and when. You can find it here.
If you have any questions or tips to share, do not hesitate to use the comments section below to talk to us.