Sledgehammer - Windows 10 Update Control

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

  1. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    That's exactly what the script does.
     
  2. Whistler4

    Whistler4 MDL Member

    Jul 30, 2015
    204
    193
    10
  3. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,331
    7,048
    210
    Then those offended by the directories are not in a position to complain. They chose to show all system directories and that's what they got.
     
  4. Whistler4

    Whistler4 MDL Member

    Jul 30, 2015
    204
    193
    10
    I doubt that power users would be "offended".
     
  5. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    #1266 pf100, May 9, 2019
    Last edited: May 9, 2019
    (OP)
    I fixed the internet check thanks to methods introduced by @rpo
    All the power of powershell with the message hiding abilities of cmd script.

    Fix here.
     
  6. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,422
    60
  7. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    #1268 pf100, May 9, 2019
    Last edited: May 9, 2019
    (OP)
    @rpo It's funny that the typo is working. Go figure.
    Thanks for the one-liner. I spent hours and couldn't figure that out.
    I'll update the update as soon as I can.
    Next I'll start working on WuMgr "expert" mode.
     
  8. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    #1270 pf100, May 9, 2019
    Last edited: May 9, 2019
    (OP)
    @rpo i knew the file redirection errors, but somehow the code as a whole still works perfectly. I have no idea how.

    If both ProgressPreference and WarningAction was ignored, you'd see a blue progress bar on the screen during the internet check, and a warning when the check fails, so they're both definitely working. Cmd script can't suppress those information overlays.

    Sometimes I just keep trying random stuff until something works, like I obviously did here.
    It makes me feel a little better that the one-liner was hard for you too. I feel less of an idiot.
    I was literally banging my head against the wall to silence the powershell output.

    The code you posted here worked fine, but it said something like "is not" and other random text on the screen I couldn't suppress without re-writing it.

    I'm looking forward to cleaning up the code later today. Thanks again.
     
  9. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
  10. rpo

    rpo MDL Expert

    Jan 3, 2010
    1,447
    1,422
    60
    Only
    Only WarningAction was ignored was ignored, but the script continues to work after displaying an (hidden) error message and the Test-NetConnection is processed.
     
  11. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
    The text under my name should say "Duct tape coder". :)
     
  12. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,447
    90
  13. Whistler4

    Whistler4 MDL Member

    Jul 30, 2015
    204
    193
    10
    #1279 Whistler4, May 10, 2019
    Last edited: May 10, 2019
    That's been my question since day 1. The mystery that seems to work its wonder. Reread FAQ A2.

    Excellent work, and the interface screen looks pretty clean and logical for all it does. Users will home in on the main number choice they want to pick most of the time. (As opposed to, "Listen carefully, as your options may have changed." :))
     
  14. Windows_Addict

    Windows_Addict MDL Expert

    Jul 19, 2018
    1,251
    3,442
    60
    #1280 Windows_Addict, May 10, 2019
    Last edited: May 10, 2019
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...