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,449
    90
  2. lewcass

    lewcass MDL Senior Member

    Mar 10, 2018
    429
    251
    10
    Alls fair in love and war. This is war, go gettem pf100 :ninja_hide: :rifle::sniper:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Skunk1966

    Skunk1966 MDL Member

    Jul 15, 2011
    156
    145
    10
  4. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,449
    90
  5. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,449
    90
  6. lewcass

    lewcass MDL Senior Member

    Mar 10, 2018
    429
    251
    10
    pf100, I am trying to learn some basic scripting, what does the code for osrss actually do, Unregister and Register the dll?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,449
    90
    If you unregister them Windows 10 will just reregister them again. You have to use a bigger hammer with this stuff.
    To disable osrss:
    Take ownership of osrss.dll from Trusted Installer:
    takeown /f "%systemroot%\System32\osrss.dll" /a >nul 2>&1
    reset all users to default:
    icacls "%systemroot%\System32\osrss.dll" /reset >nul 2>&1
    remove all user permissions making the file not readable or writable:
    icacls "%systemroot%\System32\osrss.dll" /inheritance:r /remove *S-1-5-32-544 *S-1-5-11 *S-1-5-32-545 *S-1-5-18 >nul 2>&1
    To re-enable osrss (in uninstaller):
    Take ownership of file:
    takeown /f "%systemroot%\System32\osrss.dll" /a >nul 2>&1
    reset users to default:
    icacls "%systemroot%\System32\osrss.dll" /reset >nul 2>&1
    restore owner of file to Trusted Installer:
    icacls "%systemroot%\System32\osrss.dll" /setowner *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464 >nul 2>&1
    The >nul 2>&1 at the end just means don't give any output on the screen.
     
  8. lewcass

    lewcass MDL Senior Member

    Mar 10, 2018
    429
    251
    10
    #490 lewcass, Jun 20, 2018
    Last edited: Jun 20, 2018
    >nul 2>&1 on any kind of script is a silent switch for scripts then, remove it and things show, righto, got that. Got the rest too. Sorry for the slight hijack. Thank you pf100 :worthy:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,449
    90
    >nul 2>&1 on any kind of command is a silent switch for commands. A script is a collection of commands. No problem.
     
  10. lewcass

    lewcass MDL Senior Member

    Mar 10, 2018
    429
    251
    10
    pf100, i didnt know the catroot2 folder is part of the update process. I would like to see an easy guide to windows updating, what folders are used, what folders can be cleaned out, relevant parts of the registry etc.:)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. lewcass

    lewcass MDL Senior Member

    Mar 10, 2018
    429
    251
    10
    It might do pf100, i will give it a good look later. I want to get away from using 3rd party tools where possible and use custom scripts instead to do things and cleaning up afrer windows update is one, remove any "pendings" folders and registry entries under Component Based Servicing. Thanks again pf100. Sorry about all the questions lately but you dont ask saudis about snow :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. pf100

    pf100 Duct Tape Coder

    Oct 22, 2010
    2,069
    3,449
    90
    #497 pf100, Jun 22, 2018
    Last edited: Jun 22, 2018
    (OP)
    June 22, 2018
    WUMT Wrapper Script 2.3.7 portable and installer.
    Changelog since 2.3.6:
    Disables Windows 10 Update Facilitation Service
    (OS Remediation System Service - osrss)
    Script behaves like the old script with Windows 7 and below
    only manipulating the update service and running WUMT.
    Script converted back to batch script.
    Improved Configurator.
    Thanks @rpo and @Lars220.
     
  13. Tiger-1

    Tiger-1 MDL Guru

    Oct 18, 2014
    7,897
    10,733
    240
    good job bro thanks a lot you know :worthy::hug2::)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Lars220

    Lars220 MDL Novice

    Jun 18, 2018
    38
    56
    0