过去,我写了一篇关于BITS(后台智能传输服务)服务未启动(BITS (Background Intelligent Transfer Service) service not starting)以及如何解决该问题的文章。如果没有在后台运行此服务,您将无法下载任何Windows更新。它也会导致各种其他问题,但影响大多数人的主要问题是他们无法下载更新。
在大多数情况下,我之前的文章在过去 5 年里帮助了我很多次。直到几天前,我才遇到文章没有帮助的BITS问题。(BITS)在这种情况下,我的一台计算机感染了严重病毒,在清理它的过程中,BITS服务刚刚从服务列表中消失。我尝试运行以重新启动服务或重新注册它的任何命令都不起作用。
最终我发现我必须完全重新创建BITS服务!那时,我可以再次使用Windows注册它,然后转到服务(Services)并从那里启动它。在本文中,我将引导您完成手动创建BITS服务然后将其注册到Windows的步骤。
创建 BITS 服务
您可以尝试做的第一件事是重新创建BITS服务。您可以通过打开管理命令提示符并复制并粘贴以下命令来执行此操作:
sc create BITS type= share start= delayed-auto binPath= "C:\Windows\System32\svchost.exe -k netsvcs" tag= no DisplayName= "Background Intelligent Transfer Service"
您可以通过单击Start打开管理命令提示符,输入CMD然后右键单击命令提示符并选择Run as Administrator。
如果由于某种原因,您无法使上述命令正常工作,您也可以尝试下面的命令,这只是它的简化版本。如果可以,请尝试复制和粘贴,因为您会注意到在几个位置的 = 符号之后,紧随其后的是一个空格。这不是偶然的,你需要那个空间,否则命令将不起作用。
sc create BITS binpath= "c:\windows\system32\svchost.exe -k netsvcs" start= delayed-auto
安装BITS服务后,我们需要确保它已正确注册。如果没有,您可以尝试从“服务(Services)”面板启动它,但您可能会收到如下错误:
"Windows could not start the BITS service on the local computer. Error2: The system cannot find the file specified"
注册 BITS 服务
要注册BITS服务,您必须创建一个批处理文件然后运行它。听起来很吓人和技术性,但它很容易。首先(First),打开记事本(Notepad),然后根据您的操作系统粘贴以下内容。
视窗 2000、视窗 XP(Windows XP)、视窗服务器 2003(Windows Server 2003)
REGSVR32 WUPS2.DLL /S
REGSVR32 WUPS.DLL /S
REGSVR32 WUAUENG.DLL /S
REGSVR32 WUAPI.DLL /S
REGSVR32 MUCLTUI.DLL /S
REGSVR32 WUCLTUI.DLL /S
REGSVR32 WUWEB.DLL /S
REGSVR32 MUWEB.DLL /S
REGSVR32 QMGR.DLL /S
REGSVR32 QMGRPRXY.DLL /S
Windows Vista , Windows 7 , Windows Server 2008
REGSVR32 WUPS2.DLL /S
REGSVR32 WUPS.DLL /S
REGSVR32 WUAUENG.DLL /S
REGSVR32 WUAPI.DLL /S
REGSVR32 WUCLTUX.DLL /S
REGSVR32 WUWEBV.DLL /S
REGSVR32 JSCRIPT.DLL /S
REGSVR32 MSXML3.DLL /S
如果您在Windows 8或Windows 10中遇到此(Windows 10)BITS问题,则必须运行更多的 regsvr32 命令。查看Microsoft 的这篇文章(article from Microsoft)并按照说明进行操作。
在记事本中,单击文件(File),然后单击另存为(Save As)。将文件命名为 bits.bat(bits.bat),然后在Save as Type框中选择( Save as Type)All Files并将其保存到桌面。
现在只需右键单击桌面上的BAT文件,然后选择Run as Administrator。此时,您应该继续并重新启动计算机,看看您是否可以执行您之前尝试执行的操作,即安装更新等。
如果BITS仍然没有出现在Windows 服务(Services)列表中或者您无法启动BITS服务,那么您可以尝试下载此注册表文件并运行它。它基本上尝试更正与BITS服务关联的所有注册表项。如果上述命令也不起作用,您可以尝试运行此注册表文件,然后再次尝试运行该命令。但是,您应该在运行注册表文件后首先重新启动 PC。
http://download.bleepingcomputer.com/win-services/7/BITS.reg
请注意,这是一个 . REG文件,它将键和值添加到您的注册表。下载时您可能会收到一条消息,说此文件可能很危险,但是,您不必担心。如果在尝试运行此REG文件时收到任何错误消息,您也可以在安全模式下(Safe Mode)重新启动 PC ,然后尝试运行它。有时,正在运行的进程会阻止将某些值添加到注册表中。
如果您仍然遇到BITS服务无法正常显示的问题,请告诉我们您尝试了什么以及您的具体情况,我们会尽力提供帮助。享受!
Fix Background Intelligent Transfer Service (BITS) Missing from Services
Back in the day, I wrote an article about the BITS (Background Intelligent Transfer Service) service not starting and how you can go about fixing that problem. Without this service running in the background, you can’t download any Windows updates. It causes all kinds of other issues too, but the main problem that affects most people is when they can’t download updates.
For the most part, my previous article has helped me quite a few times over the last 5 years. Only until a few days ago did I run into a problem with BITS where the article didn’t help. In this case, one of my computers had gotten a bad virus and in the process of cleaning it, the BITS service just disappeared from the list of services. Any command I tried to run to restart the service or re-register it simply wouldn’t work.
Eventually I found out that I had to recreate the BITS service altogether! At that point, I could register it again with Windows and then go to Services and start it up from there. In this article, I’ll walk you through the steps for creating the BITS service manually and then registering it with Windows.
Creating the BITS Service
The first thing you can try to do is recreate the BITS service. You can do this by opening an administrative command prompt and copying and pasting the command below:
sc create BITS type= share start= delayed-auto binPath= "C:\Windows\System32\svchost.exe -k netsvcs" tag= no DisplayName= "Background Intelligent Transfer Service"
You can open an administrative command prompt by clicking on Start, typing in CMD and then right-clicking on command prompt and choosing Run as Administrator.
If, for some reason, you can’t get the above command to work properly, you can also try the command below, which is just a shortened version of it. If you can, try to copy and paste because you’ll notice that after the = sign in several locations, there is a space immediately after. That’s not by accident, you need that space otherwise the command won’t work.
sc create BITS binpath= "c:\windows\system32\svchost.exe -k netsvcs" start= delayed-auto
Once the BITS service is installed, we need to make sure it’s registered properly. If not, you can try to start it from the Services panel, but you’ll probably get an error like:
"Windows could not start the BITS service on the local computer. Error2: The system cannot find the file specified"
Register BITS Service
To register the BITS service, you have to create a batch file and then run it. Sounds scary and technical, but it’s pretty easy. First, open Notepad and then paste in the following depending on your operating system.
Windows 2000, Windows XP, Windows Server 2003
REGSVR32 WUPS2.DLL /S
REGSVR32 WUPS.DLL /S
REGSVR32 WUAUENG.DLL /S
REGSVR32 WUAPI.DLL /S
REGSVR32 MUCLTUI.DLL /S
REGSVR32 WUCLTUI.DLL /S
REGSVR32 WUWEB.DLL /S
REGSVR32 MUWEB.DLL /S
REGSVR32 QMGR.DLL /S
REGSVR32 QMGRPRXY.DLL /S
Windows Vista, Windows 7, Windows Server 2008
REGSVR32 WUPS2.DLL /S
REGSVR32 WUPS.DLL /S
REGSVR32 WUAUENG.DLL /S
REGSVR32 WUAPI.DLL /S
REGSVR32 WUCLTUX.DLL /S
REGSVR32 WUWEBV.DLL /S
REGSVR32 JSCRIPT.DLL /S
REGSVR32 MSXML3.DLL /S
If you are having this BITS problem in Windows 8 or Windows 10, there are quite a few more regsvr32 commands you have to run. Check out this article from Microsoft and follow the directions.
In notepad, click on File and then Save As. Name your file bits.bat and then choose All Files in the Save as Type box and save it to the desktop.
Now just right-click on the BAT file on your desktop and choose Run as Administrator. At this point, you should then go ahead and restart your computer and see if you can do what you were trying to do earlier, i.e install updates, etc.
If BITS is still not showing up in the list of Windows Services or you can’t start the BITS service, then you can try and download this registry file and running it. It basically tries to correct all the registry entries that are associated with the BITS service. If the above commands did not work either, you can try running this registry file and then try running the command again also. However, you should first restart the PC after running the registry file.
http://download.bleepingcomputer.com/win-services/7/BITS.reg
Note that this is a .REG file, which adds keys and values to your registry. You might get a message while downloading it saying that this file could be dangerous, however, it’s not so you don’t have to worry. If you get any error message when trying to run this REG file, you can also restart your PC in Safe Mode and then try to run it. Sometimes a running process will prevent some of the values from being added to the registry.
If you’re still having issues with the BITS service not showing up properly, let us know what you tried and what your specific situation is and we’ll try to help. Enjoy!