Skip to content

Instantly share code, notes, and snippets.

@coulterpeterson
Created March 4, 2025 15:01
Show Gist options
  • Save coulterpeterson/b31b6e4425240d1a217718b394623a5d to your computer and use it in GitHub Desktop.
Save coulterpeterson/b31b6e4425240d1a217718b394623a5d to your computer and use it in GitHub Desktop.
Handy Windows Commands & Tricks

For Repair

  • dism /online /cleanup-image /restorehealth /Source:<knowngood>
  • Then, sfc /scannow
  • Then, reboot

To Block Unwanted Windows Updates

  • Stop Update Services:
    • net stop wuauserv
    • net stop bits
  • Delete Downloaded Update Files:
    • del /f /s /q %windir%\SoftwareDistribution\Download\*
  • Launch and Use the Wushowhide Tool:
    • Download and run the tool.
    • Hide “Windows 11, version 24H2” from the available updates.
  • Restart Update Services:
    • net start wuauserv
    • net start bits
  • Thanks to Windows Forum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment