Windows Maintenance and Troubleshooting - Utilities and Commands

Here’s a list of the utilities and commands, which are helpful for system maintenance and troubleshooting in Windows:


1. System File Checker (SFC)

  • Command: sfc /scannow
  • Purpose: Scans and repairs corrupted or missing Windows system files immediately.
  • How to Use:
    1. Open Command Prompt as an administrator.
    2. Type sfc /scannow and press Enter.
    3. Wait for the scan to complete. It will automatically fix any issues it finds.
  • When to Use: If you encounter errors like crashing apps, missing DLLs, or unexplained slowdowns.
  • Command: sfc /scanonce
  • Purpose: Scans and repairs corrupted or missing Windows system files at the next boot.
  • May offer a cleaner scan compared to /scannow.


2. Disk Cleanup

  • Command: cleanmgr
  • Purpose: Frees up disk space by removing unnecessary files such as temporary files, system cache, and old Windows updates.
  • How to Use:
    1. Open Disk Cleanup from the Start Menu.
    2. Select the drive you want to clean (usually C:).
    3. Choose the file categories to delete and click OK.
  • When to Use: If your storage is low or you want to declutter your system.


3. Check Disk (chkdsk)

  • Command:
    • chkdsk /f: Fixes errors on the disk.
    • chkdsk /r: Locates bad sectors and attempts to recover readable information.
  • Purpose: Checks the hard drive for errors and repairs them.
  • How to Use:
    1. Open Command Prompt as an administrator.
    2. Type chkdsk /f or chkdsk /r and press Enter.
    3. Restart your computer if prompted.
  • When to Use: If you suspect file system corruption, bad sectors, or experience slow performance.


4. Temp Folder

  • Location: C:\Windows\Temp or %TEMP%
  • Purpose: Stores temporary files created by applications. These can be safely deleted to free up space.
  • How to Use:
    1. Press Win + R, type %TEMP%, and press Enter.
    2. Select all files in the folder and delete them.
  • When to Use: Periodically, especially when disk space is low.


5. Temporary Internet Files

  • Location: Stored in browser cache.
  • Purpose: Contains cached data from websites to speed up loading times. Clearing it can resolve browsing issues.
  • How to Clear:
    • In Chrome: Go to Settings > Privacy and Security > Clear Browsing Data.
    • In Edge: Go to Settings > Privacy, Search, and Services > Clear Browsing Data.
  • When to Use: If web pages are loading incorrectly or to protect privacy.


6. Disk Defragment

  • Command: dfrgui or defrag
  • Purpose: Optimizes the arrangement of files on the disk for faster access (for HDDs, not necessary for SSDs).
  • How to Use:
    1. Open Defragment and Optimize Drives from the Start Menu.
    2. Select the drive to defragment and click Optimize.
  • When to Use: Periodically for HDDs to maintain performance (not applicable to SSDs).
  • Note: If more than 15% free space in the drive, use the GUI interface, else use the command-line interface


Best Practices

  • Use these tools together periodically to maintain your system’s health and performance.
  • Always back up important data before running tools like chkdsk or Disk Cleanup to avoid accidental data loss.


Comments

Popular posts from this blog

Quotation marks to wrap an element in HTML

What is the difference between iostream and iostream.h in cpp?

The Basic Structure of a Full-Stack Web App