Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.computer > #11234

Re: Win update restarts after stop

From Paul <nospam@needed.invalid>
Newsgroups alt.computer
Subject Re: Win update restarts after stop
Date 2019-10-03 00:56 -0400
Organization A noiseless patient Spider
Message-ID <qn3v2g$a2a$1@dont-email.me> (permalink)
References <HqelF.21911$hL1.15628@fx35.iad>

Show all headers | View raw


Robert Baer wrote:
>   I run the following batch file:
> cmd.exe /c "net stop wuauserv"
>   And it sez "stopped"; 20 seconds to 1 minute later, Windows Update is 
> running.
>   It gets worse.
>   In Process Explorer, i see it, kill process and 1-20 seconds later,the 
> damn thing is still there; repeat FIVE times before repetition is gone.
> 
>   One "minor" difference, the name of the Windows Update program is 
> wuauclt.
> 
>   Fiddling "fur"ther, if instead of using Process Explorer, i shell to 
> the CMD window and run that batchfile, that second time seems to fix it.
> 
>   I need to have that batch file run at startup, and twice.
> 
>   How?
> 
>   Thanks.

In services.msc, you want to look for the "policy on failure".
Up to three failures are in the list, and it will say
"restart on failure" or similar. And that means, you might
have to kill it three times, in the most naive cases.

You can adjust those settings so that it stops and stays
stopped, after the first failure. Then your stop
command would work. For example, the default settings
on the "Superfetch" service were much more benign, and
one stop command, would stop that one on a dime.

However, this is a Windows OS version thing too. There
can be items added to Scheduled Tasks, that restart
services on failures. The result is, that Windows Search
Indexer on Windows 10, is "unstoppable", because it
keeps restarting after it is stopped. This would
require looking into Scheduled Tasks or whatever
other trickery they've added, to actually stop it.
I call this the "tag team" approach, like in
wrestling, where one wrestler distracts the
referee, while the other wrestler is up to no good.

*******

This is a chunk of a Windows Update reset script.

:wuauserv
set /a w=%w%+1
if %w% equ 3 (
    goto end2
)
net stop wuauserv
echo Checking the wuauserv service status.
sc query wuauserv | findstr /I /C:"STOPPED"
if not %errorlevel%==0 (
     goto wuauserv
)
goto loop3

:end2
cls
echo.
echo Failed to reset Windows Update due to wuauserv service failing to stop.
echo.
pause
goto Start

:loop3

Maybe you can see the logic involved - it stops the
thing, but also queries it to see if it has stopped.

    Paul

Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Win update restarts after stop Robert Baer <robertbaer@localnet.com> - 2019-10-02 21:03 -0800
  Re: Win update restarts after stop Robert Baer <robertbaer@localnet.com> - 2019-10-02 21:16 -0800
    Re: Win update restarts after stop VanguardLH <V@nguard.LH> - 2019-10-02 23:31 -0500
  Re: Win update restarts after stop VanguardLH <V@nguard.LH> - 2019-10-02 23:27 -0500
  Re: Win update restarts after stop Paul <nospam@needed.invalid> - 2019-10-03 00:56 -0400
    Re: Win update restarts after stop VanguardLH <V@nguard.LH> - 2019-10-03 02:22 -0500
      Re: Win update restarts after stop Paul <nospam@needed.invalid> - 2019-10-03 04:10 -0400
        Re: Win update restarts after stop Robert Baer <robertbaer@localnet.com> - 2019-10-06 00:31 -0800
          Re: Win update restarts after stop Paul <nospam@needed.invalid> - 2019-10-06 04:35 -0400
            Re: Win update restarts after stop Robert Baer <robertbaer@localnet.com> - 2019-10-07 23:02 -0800
              Re: Win update restarts after stop Paul <nospam@needed.invalid> - 2019-10-08 03:31 -0400
                Re: Win update restarts after stop Robert Baer <robertbaer@localnet.com> - 2019-10-08 12:59 -0800
      Re: Win update restarts after stop Robert Baer <robertbaer@localnet.com> - 2019-10-06 00:27 -0800
        Re: Win update restarts after stop VanguardLH <V@nguard.LH> - 2019-10-06 03:57 -0500
          Re: Win update restarts after stop Robert Baer <robertbaer@localnet.com> - 2019-10-07 23:12 -0800
            Re: Win update restarts after stop VanguardLH <V@nguard.LH> - 2019-10-08 06:22 -0500

csiph-web