Sledgehammer - Windows 10 Update Control

Discussion in 'MDL Projects and Applications' started by pf100, Nov 28, 2016.

  1. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    schtasks fails to create the scheduled task because the xml file is a unicode file without the appropriate header. Solution : first create a "header file"
    Code:
    cmd /u /c "echo CreateObject("Scripting.FileSystemObject").CreateTextFile("%~dp0%Task_Name%.xml, True).Write chr(255) ^& chr(254)">"%temp%\unihdr.vbs"&"%temp%\unihdr.vbs"&del "%temp%\unihdr.vbs"
    and :
    Code:
    >"%temp%\%Task_Name%.xml"&cmd /u /c type "%temp%\%Task_Name%.xml">>"%~dp0%Task_Name%.xml
    del /q "%temp%\%Task_Name%.xml" >nul 2>&1
     
  2. shewolf

    shewolf MDL Senior Member

    Apr 16, 2015
    471
    1,071
    10
    It seems to me that after applying Wrapper Script the user has corrupted system integrity! :eek:
    Check it with the sfc /scannow command and see what he will tell you ? :cool:

    This usually happens when you entered with an ax in the system.
    Or you must correct the way you enter in the system or give up this stupidity.
    Average users already have a problem maintaining the integrity of the system and without having to help them with that Bulls**t. :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Reading helps often: https://forums.mydigitallife.net/th...ows-update-service.72203/page-34#post-1458587

    Mostly a cosmetic error since the Wrapper denies some update start ramps to run (and reactivate WU service) ... and Windows doesn't like that (APPARENTLY) :cool2:. None of that processes is vital for the system.

    Any other critics beside that?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. shewolf

    shewolf MDL Senior Member

    Apr 16, 2015
    471
    1,071
    10
    More than anything I want to hear such a wise conclusion, he says everything! :p
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Trying to be snippy, cute. Where's the harm, disable the wrapper, run sfc, re-enable the wrapper, done, no errors.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,455
    90
    When the script is run, the WDU task without the delay runs immediately as soon as it's created just before WUMT runs. So while wumt is checking for updates, WDU is checking for defender updates, then turns off the update service making WUMT stop working in the middle of updating. Checking to see if WUMT is running by itself doesn't fix the problem because the task started before WUMT did. If I make the WDU task delay 60 seconds this doesn't happen and fixes the problem. I could make the delay 10 seconds and it would probably work, but I'm not taking any chances, and 50 more seconds makes no difference; defender still gets updated.
    And wub_task is not resource intensive at all. You'd have to have a horribly slow computer for it to make any difference, at which point wub_task would be the least of your problems.
     
  7. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,455
    90
    Thank you, @rpo. I can't wait to test it.
     
  8. maka213

    maka213 MDL Novice

    Aug 24, 2012
    41
    12
    0
    If i delete this WDU task, will it stay gone or will it come back?
     
  9. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,479
    1,474
    60
    It will come back whenever you execute the script.
     
  10. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,455
    90
    #690 pf100, Sep 5, 2018
    Last edited: Sep 5, 2018
    (OP)
    In addition to what @rpo said, WDU (Windows Defender Update) task doesn't do anything if you're not using Defender and it's removed if you uninstall the script, so there's no reason to remove WDU task.

    Edit: If you're concerned about the WDU task saying "this task has completed successfully" even though you have Defender disabled, there's a reason for that. WDU task first checks to see if Defender is running through WDU.cmd, and if it's not, it just cancels the update. So the task did complete successfully even though it didn't do anything.
     
  11. shewolf

    shewolf MDL Senior Member

    Apr 16, 2015
    471
    1,071
    10
    #691 shewolf, Sep 5, 2018
    Last edited: Sep 5, 2018
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Was already answered and dismissed due to not being that easy :doh:. (You didn't even read the anwer to the post you quoted, did you)

    Come back with valid arguments and stop spreading FUD!!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. shewolf

    shewolf MDL Senior Member

    Apr 16, 2015
    471
    1,071
    10
    I suppose you think of this great thought, if so, then you think like children !! :eek:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    When trying to be snippy in general, offer a readable english post, thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. rayleigh_otter

    rayleigh_otter MDL Expert

    Aug 8, 2018
    1,121
    933
    60
    She been watching Full Metal Jacket, me love you long time. :biggrin3:
     
  16. Whistler4

    Whistler4 MDL Member

    Jul 30, 2015
    205
    198
    10
    #696 Whistler4, Sep 9, 2018
    Last edited: Sep 9, 2018
    @pf100, If I'm not mistaken, #3 is (E)nable Update Service to allow Windows Store. You've also said in other posts that you can't recommend keeping the update service enabled under your script because there is some risk, however small. I'm just wondering if there shouldn't be a caveat about the Enable choice not being risk free right next to that menu item in the Configurator. Even though it's stated in the script if you choose (C), that statement isn't invoked for (E). (Don't want to scare people, either.)

    Also, I noticed that if you do select (E)nable and then select (C)ontinue to run WUMT, after exiting WUMT, the end state is that the Windows Update Service is still ENABLED. For increased safety, do you think it would be a good idea to default back to DISABLED anytime WUMT was executed and then closed? Or for that matter, anytime after a reboot? I'm aware that the script announces when (C) is picked that after WUMT closes the update service will be disabled unless overridden by the Configurator. Still . . . . People sometimes forget what states their computers are in after a while. (I'm not a big Windows Store user, so I probably don't appreciate the need to keep it working.)
     
  17. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,455
    90
    @Whistler4, Good idea. When WUMT closes, no matter what you choose in the Configurator, the Windows Update service will be disabled immediately and after reboot in the next version 2.5.3. I'll reword it accordingly..
     
  18. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,067
    3,455
    90