Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.computer > #11233
| From | VanguardLH <V@nguard.LH> |
|---|---|
| Newsgroups | alt.computer |
| Subject | Re: Win update restarts after stop |
| Date | 2019-10-02 23:31 -0500 |
| Organization | Usenet Elder |
| Message-ID | <dv013gcv3fru.dlg@v.nguard.lh> (permalink) |
| References | <HqelF.21911$hL1.15628@fx35.iad> <dDelF.30513$hB2.23773@fx42.iad> |
Robert Baer <robertbaer@localnet.com> wrote: > 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. > I get an "access denied", something about permission. > Changed the batch file to > "cmd.exe /c net stop wuauserv" > "cmd.exe /c net stop wuauserv" > exit No need to run twice. Services are asychronous, plus they take time to start and stop. When you issue "net stop" or "sc stop", all that does is issue a request to the service to have it stop itself. net and sc will terminate the instant they've communicate the *request* to the service with an errorlevel of zero. They did their job, so they exited. Sometime later the service will decide if it stops or not. If you need something stopped immediately whether the service will or not (sometimes they ignore the request), you can use taskkill.exe to kill its proces. However, with services, several are very likely rolled into an into a single svchost.exe process. Killing svchost.exe means you kill more than one service. net.exe, sc.exe, regedit.exe, and many other programs require administrator privileges to perform their actions. That means you need to run them in an elevated shell.
Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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