# 75+ Vital Windows Commands Every IT Professional Should Master

Here's a comprehensive table of essential Windows commands formatted for your blog:
 
#CommandExplanationSample Usage
Network Diagnostics & Reconnaissance
1ipconfigDisplays IP configuration information. Use /all for detailed info.ipconfig /all
2pingTests network connectivity to a host.ping google.com ping -n 13 google.com
3tracertTraces the network route to a destination.tracert microsoft.com
4pathpingCombines ping and tracert functionality to provide detailed latency and packet loss per hop.pathping -q 10 -n -p 100 example.com
5nslookupQueries DNS servers to obtain domain name or IP address mapping.nslookup google.com
6netstatDisplays network statistics, active connections, and listening ports.netstat -ano
7getmacDisplays the MAC address(es) for network adapters. /v provides verbose output.getmac /v
8netshPowerful network configuration and scripting tool.netsh wlan show profiles
System Information & Management
9systeminfoDisplays detailed configuration information about the OS and hardware.systeminfo
10whoamiDisplays the current username. Critical for privilege assessment.whoami
11hostnameDisplays the computer's name.hostname
12verDisplays the Windows version.ver
13winverOpens a dialog box showing Windows version and build information.winver
14wmicWindows Management Instrumentation Command-line. Powerful tool for gathering vast system info (e.g., OS, processes, software).wmic os get name,version wmic product get name,version
15msinfo32Opens the System Information GUI with detailed hardware and software data.msinfo32
16driverqueryDisplays a list of all installed device drivers.driverquery
17setDisplays, sets, or removes environment variables.set set PATH
18pathDisplays or sets the PATH environment variable.path
Process & Service Management
19tasklistLists all currently running processes.tasklist
20taskkillTerminates a running process by its name or PID. /F forces termination.taskkill /IM notepad.exe /F taskkill /PID 1234 /F
21scService Control. Manages Windows services (query, start, stop, configure).sc query sc stop "spooler"
22net startStarts a network service.net start "Print Spooler"
23net stopStops a network service.net stop "Print Spooler"
24queryDisplays process/session information on Remote Desktop servers.query process *
File System Operations
25dirLists files and subdirectories in a directory.dir C:\
26cd / chdirChange Directory. Changes the current directory.cd C:\Users
27md / mkdirCreates a new directory.md NewFolder
28rd / rmdirRemove Directory. Deletes a directory.rd OldFolder
29copyCopies files from one location to another.copy C:\file.txt D:\
30xcopyExtended Copy. Copies files and directory trees with more options.xcopy C:\source D:\dest /E
31robocopyRobust File Copy. Advanced utility for reliable file copying and mirroring.robocopy C:\source D:\dest /E
32moveMoves files from one directory to another.move C:\file.txt D:\
33renRenames a file or directory.ren oldname.txt newname.txt
34del / eraseDeletes one or more files.del C:\file.txt
35typeDisplays the contents of a text file.type C:\file.txt
36findSearches for a specific text string in a file.find "error" C:\log.txt
37findstrFind String. Searches for strings in files using regular expressions.ipconfig /all | findstr DNS
38sortSorts the input.sort < names.txt
39compCompares the contents of two files.comp file1.txt file2.txt
40fcFile Compare. Compares files and displays the differences between them.fc file1.txt file2.txt
41treeDisplays the directory structure graphically.tree C:\
42attribDisplays or changes file attributes (Read-only, Hidden, etc.).attrib +r C:\file.txt
43cipherDisplays or alters the encryption of directories and files on NTFS volumes.cipher /c C:\SecretFolder
44compactDisplays or alters the compression of files on NTFS partitions.compact /q C:\folder
45fsutilA powerful utility for performing advanced file system tasks.fsutil fsinfo drives
Disk Management
46chkdskChecks a disk for errors and attempts to repair them. /F fixes errors.chkdsk C: /f
47diskpartA powerful text-mode command interpreter for managing disks, partitions, and volumes.diskpart (then list disk)
48formatFormats a disk to use a specific file system (e.g., NTFS).format C: /fs:ntfs
49defragDefragments a specified drive to optimize performance.defrag C:
50cleanmgrOpens the Disk Cleanup utility to free up space.cleanmgr
User & Group Management
51net userAdds, modifies, or displays user accounts.net user JohnDoe newpassword
52net localgroupAdds, displays, or modifies local groups.net localgroup Administrators
53runasRuns a specific tool or program under a different user account.runas /user:Admin cmd
Windows Registry
54regCommand-line utility to add, change, and display registry values and keys.reg query HKLM\Software
Scheduling & Policies
55schtasksSchedules commands and programs to run periodically or at a specific time.schtasks /create /tn "MyTask" /tr notepad.exe /sc daily
56gpupdateForces an immediate update of Group Policy settings.gpupdate /force
57gpresultDisplays the Resultant Set of Policy (RSoP) for a user or computer.gpresult /r
System Utilities & GUI Tools
58taskmgrOpens the Task Manager.taskmgr
59devmgmt.mscOpens the Device Manager console.devmgmt.msc
60diskmgmt.mscOpens the Disk Management console.diskmgmt.msc
61services.mscOpens the Services management console.services.msc
62eventvwrOpens the Event Viewer.eventvwr
63perfmonOpens the Performance Monitor.perfmon
64resmonOpens the Resource Monitor.resmon
65msconfigOpens the System Configuration utility.msconfig
66controlOpens the Control Panel.control
67mmcOpens the Microsoft Management Console.mmc
Power & Scripting
68powercfgManages power settings and generates energy reports.powercfg /energy
69shutdownShuts down or restarts the computer. /r restarts, /t 0 sets zero delay.shutdown /r /t 0
70clsClears the command prompt screen.cls
71echoDisplays messages or turns command echoing on or off.echo Hello World
72assocDisplays or modifies file extension associations.assoc .txt
73ftypeDisplays or modifies file types used in file extension associations.ftype txtfile
74wingetMicrosoft's official package manager for Windows to manage applications.winget list winget search firefox winget install appid
75mstscOpens the Remote Desktop Connection client.mstsc
76sfcSystem File Checker. Scans and repairs protected system files.sfc /scannow