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,266
    1,187
    60
  2. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,266
    1,187
    60
    @pf100
    Possibly, this is currently the best solution because the script uses nsudo which has different files for amd64 and arm64.
     
  3. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    13,147
    64,376
    340
    Windows 11 arm64 needs one more check just in case (because it support both x64/arm64 interchangeably)
    Code:
    if /i "%PROCESSOR_ARCHITECTURE%"=="amd64" if exist "%SystemRoot%\SysArm32\cmd.exe" set "xBit=arm64"
     
  4. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,266
    1,187
    60
  5. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    13,147
    64,376
    340
    Code:
    set set "PROCESSOR_ARCHITECTURE=AMD64"
    two set :)
     
  6. yopadato

    yopadato MDL Novice

    Mar 25, 2014
    2
    1
    0
  7. BAU

    BAU MDL Expert

    Feb 10, 2009
    1,296
    3,568
    60
  8. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,063
    3,363
    90
    Thanks @BAU because I had no clue what the hell was going on with that dumpster fire.
     
  9. yopadato

    yopadato MDL Novice

    Mar 25, 2014
    2
    1
    0
    Thanks @BAU , the devkit and tools I installed to build Retroarch might be the culprit then, I'll uninstall them and see how it goes. Any way to fix this manually in case uninstalling those programs doesn't fix the issue ?
     
  10. BAU

    BAU MDL Expert

    Feb 10, 2009
    1,296
    3,568
    60
    hopefully using symlinks and not actually replacing find.exe & etc. if still bad after uninstall and reboot, sfc /scannow, dims /restorehealth blah google-it blah it's the one thing that those commands can fix :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,266
    1,187
    60
    Time for Sledgehammer version 3.0 ?
     
  12. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,063
    3,363
    90
    Yes, it's getting close to that time.
     
  13. ramki92

    ramki92 MDL Novice

    Jun 3, 2021
    4
    0
    0
    Hi,
    Thanks for this tool. It helps a lot.
    Just wish to know if this tool also works reliabaily on Windows 11? I tried it in a virtual machine on Windows 11 and all I found is rotating circle when I access Updates in settings.
     
  14. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,995
    5,181
    150
    The script actually blocks Windows Update. You need to install updates through the script itself.

    Latest Windows 11 dev builds require the fixed WMIC-less PS version to work.
     
  15. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,063
    3,363
    90
    I don't know when this started, but as of now with Windows 11 (I didn't check with windows 10 and it doesn't really matter), when you enable the windows update service with the configurator to use the store, you have to also manually start the BITS service or the store won't work. In the next update I plan to automatically start the BITS service when you enable the windows update service with the configurator. I'm saying this now in case there is any objection to me doing this.
    I would completely enable/disable bits with the script through WUB, but I feel this could cause problems for those who need BITS set to manual or automatic. Any thoughts would be appreciated.
     
  16. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    4,995
    5,181
    150
    Leave it on Manual. It can be used for many other other purposes, too (including usage by the user over Powershell/bitsadmin). When being idle, BITS shuts down itself.
     
  17. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,063
    3,363
    90
    #1958 pf100, Jan 24, 2022 at 22:15
    Last edited: Jan 25, 2022 at 02:08
    (OP)
    Yeah, that's what I was thinking. I don't like changing things that windows does unnecessarily and just starting BITS and letting it stop itself later would be the least intrusive thing to do.