如何防止wuauserv(Windows更新服务)重新启动?

关于:

net stop "windows update" 

这工作了一段时间,但然后服务再次启动。 什么是重新启动这项服务,我如何防止这样做?

停止并禁用它。

 sc stop wuauserv sc config wuauserv start= disabled 

您将需要以pipe理员身份打开命令提示符,否则您将获得“访问被拒绝”。 在start=之后的空间是强制性的,如果空间被省略, sc将会抱怨。 值得注意的是,任何依赖于残疾人服务的服务或程序本身都无法启动,或者出现exception行为。

检查系统事件日志中是否存在服务控制pipe理中心的事件ID 7036,以便wuauserv进入运行状态。 这可能是另一项服务将wuauserv标记为依赖项,并根据需要启动它。

Windows 8有一个计划任务:

 Task Scheduler Library :---- Microsoft :---- Windows :---- Windows Update 

有一个任务:“计划开始”。 只需右键单击它并select禁用

去运行typesregistry编辑器

导航到HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Windows NT \ Svchost

双击netsvcs并在我们的例子中查找服务的名称wuauserv

删除关键字wuauserv然后按OK

closuresregistry并重新启动

HTH

我还没有想出什么是重新启动wuauserv或如何防止重新启动,但这里是一个AutoHotkey脚本,将定期检查和sop它。

 #Persistent interval = 180 ; execution interval in seconds Menu, Tray, Add ; divider line Menu, Tray, Add, Execute Now, StopService Menu, Tray, Default, Execute Now timer_param := -1000 * interval StopService: Run %comspec% /c "sc query wuauserv | find "1 STOPPED" & if errorlevel 1 sc stop wuauserv", , Hide time = %A_Now% time += %interval%, seconds FormatTime, time_string, %time%, Time Menu, Tray, Tip, Stop Windows Update Service`nNext Execution at %time_string% SetTimer, StopService, %timer_param% return