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:
- Open Command Prompt as an administrator.
- Type
sfc /scannowand press Enter. - 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:
- Open Disk Cleanup from the Start Menu.
- Select the drive you want to clean (usually
C:). - 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:
- Open Command Prompt as an administrator.
- Type
chkdsk /forchkdsk /rand press Enter. - 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\Tempor%TEMP% - Purpose: Stores temporary files created by applications. These can be safely deleted to free up space.
- How to Use:
- Press
Win + R, type%TEMP%, and press Enter. - Select all files in the folder and delete them.
- Press
- 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:
dfrguiordefrag - Purpose: Optimizes the arrangement of files on the disk for faster access (for HDDs, not necessary for SSDs).
- How to Use:
- Open Defragment and Optimize Drives from the Start Menu.
- 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
chkdskor Disk Cleanup to avoid accidental data loss.
Comments
Post a Comment
Write something to CodeWithAbdur!