Skip to content

Instantly share code, notes, and snippets.

@marco-kretz
Created September 22, 2025 11:07
Show Gist options
  • Save marco-kretz/41decd260b21d1b9041f2c8d6f3b59e6 to your computer and use it in GitHub Desktop.
Save marco-kretz/41decd260b21d1b9041f2c8d6f3b59e6 to your computer and use it in GitHub Desktop.
Windows 11 Debugging
Just a small collection of CMD commands to go through when Windows behaviour seems odd.
1. `perfmon /rel` - To check the Logs for Errors and Warnings grouped by days.
2. `sfc /scannow - System file checker to scan for and repair corrupted or missing individual Windows system files.
3. `Dism /Online /Cleanup-Image /CheckHealth` - Check for registry errors
4. `Dism /Online /Cleanup-Image /ScanHealth` - Check for system errors
5. `Dism /Online /Cleanup-Image /RestoreHealth` - Try to fix the errors with the help of Windows Update (Online)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment