Click here to Skip to main content
15,886,873 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... PinPopular
Marc Clifton13-May-18 7:31
mvaMarc Clifton13-May-18 7:31 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil13-May-18 8:00
professionalDavid O'Neil13-May-18 8:00 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Jon McKee20-May-18 16:54
professionalJon McKee20-May-18 16:54 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil20-May-18 17:09
professionalDavid O'Neil20-May-18 17:09 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil13-May-18 21:46
professionalDavid O'Neil13-May-18 21:46 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil16-May-18 14:45
professionalDavid O'Neil16-May-18 14:45 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Marc Clifton17-May-18 3:02
mvaMarc Clifton17-May-18 3:02 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
David O'Neil19-May-18 17:25
professionalDavid O'Neil19-May-18 17:25 
Found a poor man's version that I think works. Create a bat file with the following:
@echo off
:while1
   sc stop wuauserv
   sc config wuauserv start= disabled
   timeout 60
   goto :while1
Open a command prompt as admin and run the bat.

Any improvements are appreciated - I've never been a knowledgeable bat file creator. I suspect with some more work I could hide the command prompt from the taskbar using AutoHotKey, but I'm lazy. But I can place it on a new desktop that I never look at!

Tested it by setting wuauserv to manual in between the 60 second intervals. Had to F5 the Services pane after the 60 seconds hit. Successfully disabled the service!

Will other services you hinted about also need to be stopped, or will just the main wuauserv be enough to kill the updates?

I'll place a copy of this in the lounge in case others want to play.

GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg13-May-18 18:05
charlieg13-May-18 18:05 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
Laiju k13-May-18 18:09
professionalLaiju k13-May-18 18:09 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
PeejayAdams14-May-18 0:02
PeejayAdams14-May-18 0:02 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
kmoorevs14-May-18 5:38
kmoorevs14-May-18 5:38 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
johannesnestler7-Jun-18 1:18
johannesnestler7-Jun-18 1:18 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg18-Jun-18 4:52
charlieg18-Jun-18 4:52 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
johannesnestler18-Jun-18 23:27
johannesnestler18-Jun-18 23:27 
GeneralRe: Sunday morning, and Microsoft has rebooted my laptop... Pin
charlieg19-Jun-18 13:49
charlieg19-Jun-18 13:49 
GeneralWho wrote this code? Pin
Marc Clifton11-May-18 3:00
mvaMarc Clifton11-May-18 3:00 
GeneralRe: Who wrote this code? Pin
Richard Deeming11-May-18 4:23
mveRichard Deeming11-May-18 4:23 
GeneralRe: Who wrote this code? Pin
Marc Clifton13-May-18 12:02
mvaMarc Clifton13-May-18 12:02 
GeneralRe: Who wrote this code? Pin
RickZeeland11-May-18 4:29
mveRickZeeland11-May-18 4:29 
GeneralRe: Who wrote this code? Pin
Marc Clifton13-May-18 12:03
mvaMarc Clifton13-May-18 12:03 
GeneralRe: Who wrote this code? Pin
RickZeeland13-May-18 20:36
mveRickZeeland13-May-18 20:36 
GeneralRe: Who wrote this code? Pin
Rick York11-May-18 7:12
mveRick York11-May-18 7:12 
GeneralRe: Who wrote this code? Pin
Marc Clifton13-May-18 12:03
mvaMarc Clifton13-May-18 12:03 
GeneralMystery of the Missing (foreign) Keys Pin
Rob Grainger2-May-18 5:43
Rob Grainger2-May-18 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.