Essential Windows CMD Commands Every IT Technician Should Know

 

Essential Windows CMD Commands Every IT Technician Should Know

The Windows Command Prompt is still one of the most useful tools for IT support and system administration. With a few simple commands, technicians can quickly troubleshoot network, system, storage, and service-related issues.

🌐 Network Troubleshooting

ipconfig /all

Displays detailed IP, DNS, gateway, and adapter information.

ping 8.8.8.8

Quickly checks basic network connectivity.

tracert <hostname>

Shows the route taken to reach a destination.

pathping <hostname>

Combines ping and traceroute information to help identify packet loss.

netstat -ano

Displays active network connections and their associated process IDs.

🔧 System & File Management

systeminfo

Displays detailed Windows system information.

whoami /all

Shows the current user's identity, groups, and privileges.

sfc /scannow

Scans Windows system files and attempts to repair corrupted files.

DISM /Online /Cleanup-Image /RestoreHealth

Helps repair the Windows component store.

robocopy <src> <dst>

Provides reliable file and folder copying.

⚙️ Processes & Services

tasklist

Lists currently running processes.

taskkill /PID <id> /F

Forcefully terminates a process using its PID.

sc query

Displays Windows service information.

sc stop <service>
sc start <service>

Stops or starts a Windows service.

🌐 DNS Troubleshooting

ipconfig /flushdns

Clears the local DNS resolver cache.

ipconfig /displaydns

Displays cached DNS records.

nslookup <domain>

Checks DNS resolution for a domain.

💾 Disk & Storage

chkdsk C: /scan

Scans the drive for file-system problems.

diskpart

Opens the Windows disk-management command-line utility.

Inside DiskPart, commonly used commands include:

list disk
list volume

🔐 Remote Access & Network Shares

mstsc

Opens Remote Desktop Connection.

net use \\<pc>\C$

Connects to an administrative network share when permissions allow.

net use * /delete

Removes existing network-share connections.

Final Thoughts

You don't need dozens of commands to handle everyday Windows troubleshooting. Keeping these essential CMD commands handy can help IT technicians diagnose connectivity problems, check system health, manage services, and investigate storage issues much faster.

Tip: Use Administrator Command Prompt when a command requires elevated permissions, and replace placeholders such as <hostname>, <domain>, and <service> with the appropriate values.

Powered by Blogger.