Sledgehammer - Windows 10 Update Control

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

  1. DaveX

    DaveX MDL Novice

    Jul 17, 2010
    5
    0
    0
    I am having problems on one Win 10 Enterprise machine. First it will only run if I right click and run as administrator. Then the script seems to hang at the update selection. Whether I press 1 or 2 I get a blank blue command window until finally I get an error message saying
    WU-keep-alive.vbs
    Sytem can't find the file specified
    code: 80070002
    If I close the error message the updater I chose (EG Windows Update Mini Tool) runs.
    On other machines running Enterprise LTSC just clicking on the link runs flawlessly.
     
  2. Rr0

    Rr0 MDL Member

    Jul 8, 2017
    116
    8
    10
    So if I have disabled Windows Update and just install Sledgehammer the only thing it does is updating Windows Defender?
     
  3. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,722
    2,507
    60
    Yes. If you run the script to the first screen and then close it, Windows will never update again until you check for updates with the script or uninstall it, but Defender will update every 6 hours unless Defender is disabled. The WDU task first checks to see if Defender is running or not. If it's running it updates it, if it's not then it just cancels the Defender update and doesn't do anything.
     
  4. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,722
    2,507
    60
    Considering I've never had a report of what you're experiencing, what is different about the setup of your normal enterprise install vs the ltsc install?
    I can't be sure, but it sounds like something got borked.
    For instance, the part of the script you deleted that was giving an error is just basic batch script that creates a file (WU-keep-alive.cmd) and it doesn't get much simpler than that and there's not much that would cause an error writing a simple file except a permissions issue or data corruption in the registry or elsewhere or a setting that disables certain operations in batch script. Other than that I have no idea what could be preventing the creation of "WU-keep-alive.cmd". The script writes several temp files that are automatically deleted when the script is closed, so if it was just a batch script or file creation or permissions problem it should be throwing errors several times, and other temp files are created with the script exactly the same way that WU-keep-alive.cmd is created, so I don't know what's going on with the install that's giving you problems.
     
  5. DaveX

    DaveX MDL Novice

    Jul 17, 2010
    5
    0
    0
    No idea myself but as Update manager or WUMT runs immediately after closing the error message it seems use able for now.. BTW don't know if I mentioned, the script has to be run as Administrator or else I get a blank blue command window.

     
  6. Rr0

    Rr0 MDL Member

    Jul 8, 2017
    116
    8
    10
    Cool, thanks. Do I need to install it, or just run the Sledgehammer.cmd from /portable folder once and forget about it?
     
  7. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,028
    796
    60
    No need to install, just run from a folder.
     
  8. ForestDweller

    ForestDweller MDL Novice

    Mar 14, 2013
    1
    1
    0
    Awesome, thank you!

    I just installed Enterprise, and windows update would start downloading an update and then suddenly stop. I went through everything, sat staring at group policy editor over and over, and couldn't get it to work. Your program worked perfectly, and now I don't see myself going back to the bloated annoying windows updater!