[R] - Script to check missing Security Only Updates

Discussion in 'Scripting' started by Mr.X, May 18, 2017.

  1. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    I meant that i don't understand most options it's offering :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. PointZero

    PointZero MDL Member

    Oct 5, 2011
    1,313
    3,550
    60
  3. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    7,185
    14,739
    240
    To make [L] to work I had to run [P] first then run [L]:

    [P]
    02.png


    [L]
    03.png
     
  4. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    Exactly. Thought it would be clear the script uses either a TXT list (like the one you created) or extracts it from XML :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    7,185
    14,739
    240
    :p

    Thanks bro. You could order the commands by steps, could you?
    oh! One more thing. The ability to read folder names with spaces
     
  6. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    Changed order and integrated checks for needed files being present.

    The path thingie is quite bitchy since not all accepts pathes in quotes :g:. will check the possibilities.

    sec.update.check.cmd.7z
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    7,185
    14,739
    240
    @s1ave77

    Done. Neat and beautiful script of yours. Thanks a lot.

    :cool:
     
  8. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    You're welcome. Helped me to rework WU TOOL for more reliability :good3:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    Challenge solved :cool2:. You might wanna check this ...:

    Code:
       CHECK MISSING SECURITY UPDATES
    
       PATH: G:\win\te st
    
    
       [C] CHECK INSTALLED UPDATES
    
       [P] PARSE SECURITY UPDATES FROM XML
    
       [L] LIST CHECK FOR MISSING UPDATES
    
       [F] FOLDER CHECK FOR MISSING UPDATES
    
       [G] GET MISSING UPDATE LINKS FROM XML
    
       [D] DELETE TEMP FILES
       [E] EXIT
    
    
    
    YOUR CHOICE ?:
    sec.update.check.cmd.7z
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    7,185
    14,739
    240
    You did it again :good3:

    Thank you.

    01.png
     
  11. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    #51 s1ave77, May 23, 2017
    Last edited: May 23, 2017
    For the sake of completeness (and apparently some boredom) i added list download with wget and install from compare list via WUSA.

    Still works with spaces in folder name.

    sec.update.check.7z
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. Mr.X

    Mr.X MDL Guru

    Jul 14, 2013
    7,185
    14,739
    240
    Thanks. You did it again. :cool::p
     
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    Was indeed a good test for some stuff :D. Have some more little ideas, that could be helpful, will test them later.
     
    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,130
    24,251
    340
    Some little changes for more versatility:

    #1. Script will now recognise several WHD XML files (Win 7/Win 8.1[with Update 3]) and ask which should be parsed.

    #2. Download part offers choice to either download only the missing ones or all Updates.

    #3. Update Install only installs updates from complist.txt (aka the missing ones) matching system architecture.

    So now:

    #1. You can have all needed XML files for the systems you maintain in scripts folder (can be in subfolders)

    #2. You can have all needed Updates for the systems you maintain in scripts folder (can be in subfolders)

    #3. On a system you want to maintain, make sure all files match the current system (Delete Temp ones and parse the correct XML, then do the List or Folder check)

    Just tested on Win 8.1 Update 3 with all Security updates for x64 and x86 in a subfolder. Installer gathered correct files for install.

    Some last checks before release :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    Test:
    SUCUpdatetest.jpg
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    Reworked all parses for reliable checks. Folders with spaces in name still work.

    sec.update.check.7z
     

    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,130
    24,251
    340
    #57 s1ave77, May 25, 2017
    Last edited: May 25, 2017
    @Mr.X {Mr.X: Need to ask about auto run an ap}

    Code:
    reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v "toolname" /t REG_SZ /d "c:\tool\path.exe" /f
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...