当我第一次启动 Windows 时,每次都会收到此错误消息:
应用程序初始化失败:0x80070006。句柄无效。
有谁知道这可能是什么原因造成的,或者有什么可以尝试的吗?
答案1
您最近是否安装了其他杀毒软件?现在运行怎么样?AVG、Norton 等?这看起来像是您的问题:
以下是如何禁用它并停止消息:
答案2
我认为这意味着 Windows Defender 服务已禁用,但您还没有通过控制面板中的“Windows Defender”小程序将其禁用。有一个设置为在启动时运行的小程序,它与 Windows Defender 服务一起工作(可能用于提供托盘图标),但该程序并未随服务一起禁用/启用。
进入控制面板并取消选中“使用此程序”框,或者获取以下实用程序Sysinternal 的自动运行并阻止 Defender 在启动时启动。这是假设您不想运行它。
如果您确实想运行它,您可能只需要转到管理工具->服务并确保 Windows Defender 设置为“自动”并已启用。
答案3
问题在于程序的注册表设置损坏。如果您遇到与我类似的问题(Vista 中的 Defender 似乎已安装,但出现“无法初始化”错误),请尝试以下操作(最初由 cdninja 在此处发布)
步骤 1:备份注册表 ===================
单击“开始”,在搜索栏中键入“regedit”(不带引号),然后按 Enter。
在注册表编辑器中,单击“文件”菜单,然后单击“导出”。
在“保存位置”列表中,选择要保存备份的文件夹。4. 在“文件名”框中,键入备份文件的名称,例如“选项”或“备份”。
单击保存。
第 2 步:创建并运行注册表文件 ===================
单击“开始”,在搜索栏中输入“notepad C:\register.reg”(不带引号),然后单击“确定”。当系统提示您创建新文件时,选择“是”。
复制星号之间的以下文本,然后将其粘贴到打开的记事本窗口中:
************************开始**************************
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]
"DisplayName"="@%ProgramFiles%\\Windows Defender\\MsMpRes.dll,-103"
"ErrorControl"=dword:00000001
"Group"="COM Infrastructure"
"ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,\
6b,00,20,00,73,00,65,00,63,00,73,00,76,00,63,00,73,00,00,00
"Start"=dword:00000002
"Type"=dword:00000020
"Description"="@%ProgramFiles%\\Windows Defender\\MsMpRes.dll,-3068"
"DependOnService"=hex(7):52,00,70,00,63,00,53,00,73,00,00,00,00,00
"ObjectName"="LocalSystem"
"ServiceSidType"=dword:00000001
"RequiredPrivileges"=hex(7):53,00,65,00,49,00,6d,00,70,00,65,00,72,00,73,00,6f,\
00,6e,00,61,00,74,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,\
65,00,00,00,53,00,65,00,42,00,61,00,63,00,6b,00,75,00,70,00,50,00,72,00,69,\
00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,52,00,65,00,73,00,\
74,00,6f,00,72,00,65,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,\
00,00,00,53,00,65,00,44,00,65,00,62,00,75,00,67,00,50,00,72,00,69,00,76,00,\
69,00,6c,00,65,00,67,00,65,00,00,00,53,00,65,00,43,00,68,00,61,00,6e,00,67,\
00,65,00,4e,00,6f,00,74,00,69,00,66,00,79,00,50,00,72,00,69,00,76,00,69,00,\
6c,00,65,00,67,00,65,00,00,00,53,00,65,00,53,00,65,00,63,00,75,00,72,00,69,\
00,74,00,79,00,50,00,72,00,69,00,76,00,69,00,6c,00,65,00,67,00,65,00,00,00,\
00,00
"FailureActions"=hex:80,51,01,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
00,01,00,00,00,60,ea,00,00,01,00,00,00,60,ea,00,00,00,00,00,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Parameters]
"ServiceDllUnloadOnStop"=dword:00000001
"ServiceDll"=hex(2):25,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,46,00,69,\
00,6c,00,65,00,73,00,25,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\
20,00,44,00,65,00,66,00,65,00,6e,00,64,00,65,00,72,00,5c,00,6d,00,70,00,73,\
00,76,00,63,00,2e,00,64,00,6c,00,6c,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Security]
"Security"=hex:01,00,14,80,04,01,00,00,10,01,00,00,14,00,00,00,30,00,00,00,02,\
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\
00,00,02,00,d4,00,07,00,00,00,00,00,28,00,ff,01,0f,00,01,06,00,00,00,00,00,\
05,50,00,00,00,b5,89,fb,38,19,84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,\
00,0b,28,00,00,00,00,10,01,06,00,00,00,00,00,05,50,00,00,00,b5,89,fb,38,19,\
84,c2,cb,5c,6c,23,6d,57,00,77,6e,c0,02,64,87,00,00,14,00,fd,01,02,00,01,01,\
00,00,00,00,00,05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,\
05,20,00,00,00,20,02,00,00,00,00,14,00,9d,01,02,00,01,01,00,00,00,00,00,05,\
04,00,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,06,00,00,00,00,\
00,28,00,15,00,00,00,01,06,00,00,00,00,00,05,50,00,00,00,49,59,9d,77,91,56,\
e5,55,dc,f4,e2,0e,a7,8b,eb,ca,7b,42,13,56,01,01,00,00,00,00,00,05,12,00,00,\
00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend\Enum]
"0"="Root\\LEGACY_WINDEFEND\\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001
*************************结尾***************************
粘贴上述命令后,请关闭记事本窗口。当提示您保存文件时,选择“是”。
将文件保存为任何类型的 REG 文件(我将该文件命名为 defenderfix.reg,但任何名称都可以,只要确保该文件是 REG 文件,而不是 TXT 文件即可)
接下来双击新文件。
当您收到一个消息框询问“您确定要将 REG 文件中的信息添加到注册表中吗”时,请选择“是”
您将收到另一个消息框,提示“REG文件中的信息已成功输入注册表”,请单击“确定”进行确认。
重新启动计算机。