Windows Command Line Commands [Part ]

Listen to this Post

In this article, we’ll explore essential Windows command-line utilities for system management, troubleshooting, and automation. These commands help streamline administrative tasks and improve efficiency.

System & File Management

1. `sfc /scannow` – Scans and repairs corrupted system files.

2. `dir` – Lists directory contents.

3. `del ` – Deletes a file.

4. `attrib +h +s +r ` – Hides a folder.
– To unhide: `attrib -h -s -r `

5. `mkdir ` – Creates a new folder.

6. `rmdir ` – Deletes an empty folder.

7. `move` – Moves files/folders.

8. `ren ` – Renames a file.

Power & Task Control

9. `powercfg /energy` – Generates a battery health report (saved as energy-report.html).

10. `tasklist` – Displays running processes.

11. `taskkill /IM “.exe” /F` – Force-stops a process (e.g., taskkill /IM "chrome.exe" /F).

12. `shutdown /s` – Shuts down the PC.

– `/r` – Restarts.
– `/h` – Hibernates.

System Information & Utilities

13. `ver` – Shows Windows version.

14. `vol` – Displays disk volume info.

15. `dism /online /cleanup-image /restorehealth` – Repairs Windows image.

16. `tree` – Displays directory structure.

17. `start ` – Opens a website in the default browser.

Miscellaneous

18. `cls` – Clears the command prompt.

19. `exit` – Closes the command prompt.

20. ` -help` – Shows command usage (e.g., powercfg -help).

You Should Know:

  • Automate Repairs:
    sfc /scannow 
    dism /online /cleanup-image /restorehealth 
    
  • Force-Kill Unresponsive Apps:
    taskkill /IM "app.exe" /F 
    
  • Generate System Reports:
    powercfg /energy 
    start C:\Windows\system32\energy-report.html 
    
  • Batch File for Quick Cleanup:
    @echo off 
    del /s /q C:\temp\ 
    rmdir /s /q C:\old_backups 
    

What Undercode Say

Mastering Windows command-line tools enhances productivity, especially for IT professionals and power users. These commands help in troubleshooting, automation, and system optimization. For deeper learning, explore PowerShell for advanced scripting.

Expected Output:

  • A functional command-line workflow for system maintenance.
  • Efficient process and file management.
  • Automated repair and reporting scripts.

(Note: No irrelevant URLs were found in the original post.)

References:

Reported By: Enderson Dias – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image