CMD Commands

Update:

  • - Open Windows Update:
    start ms-settings:windowsupdate:
  • - Open Microsoft Store:
    start ms-windows-store:
  • - Upgrade all apps through WinGet:
    winget upgrade --all

Privacy:

  • - Open Windows Privacy:
    start ms-settings:privacy:
  • - Open Windows Hosts file:
    start C:\Windows\System32\drivers\etc\hosts

Security:

  • - Open Windows Security:
    start ms-settings:windowsdefender:
  • - Open Windows Malicious Software Removal Tool:
    start C:\Windows\System32\MRT.exe

Clean:

  • - Delete user temporary files:
    del /q /s %TEMP%\*
  • - Delete system temporary files:
    del /q /s %SystemRoot%\Temp\*
  • - Clear prefetch files:
    del /q /s %SystemRoot%\Prefetch\*
  • - Clear DNS cache:
    ipconfig /flushdns
  • - Open Disk Cleanup:
    cleanmgr

Repair:

  • - Check and fix disk errors:
    chkdsk /f /r
  • - Scan and fix system files:
    sfc /scannow
  • - Repair Windows image:
    DISM /Online /Cleanup-Image /RestoreHealth

Windows Utility Batch File: