Sledgehammer - Windows 10 Update Control

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

  1. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,595
    2,286
    60
    That's exactly what the script does.
     
  2. Whistler4

    Whistler4 MDL Member

    Jul 30, 2015
    131
    96
    10
  3. Carlos Detweiller

    Carlos Detweiller MDL Spinning Tortoise

    Dec 21, 2012
    2,987
    2,610
    90
    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
    131
    96
    10
    I doubt that power users would be "offended".
     
  5. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,595
    2,286
    60
    #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 Addicted

    Jan 3, 2010
    834
    605
    30
  7. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,595
    2,286
    60
    #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 MDL Expert

    Oct 22, 2010
    1,595
    2,286
    60
    #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 MDL Expert

    Oct 22, 2010
    1,595
    2,286
    60
  10. rpo

    rpo MDL Addicted

    Jan 3, 2010
    834
    605
    30
    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 MDL Expert

    Oct 22, 2010
    1,595
    2,286
    60
    The text under my name should say "Duct tape coder". :)
     
  12. pf100

    pf100 MDL Expert

    Oct 22, 2010
    1,595
    2,286
    60
  13. Whistler4

    Whistler4 MDL Member

    Jul 30, 2015
    131
    96
    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 Member

    Jul 19, 2018
    229
    292
    10
    #1280 Windows_Addict, May 10, 2019
    Last edited: May 10, 2019