# 75+ Vital Windows Commands Every IT Professional Should Master
Here's a comprehensive table of essential Windows commands formatted for your blog:
| # | Command | Explanation | Sample Usage |
|---|---|---|---|
| Network Diagnostics & Reconnaissance | |||
| 1 | ipconfig | Displays IP configuration information. Use /all for detailed info. | ipconfig /all |
| 2 | ping | Tests network connectivity to a host. | ping google.com ping -n 13 google.com |
| 3 | tracert | Traces the network route to a destination. | tracert microsoft.com |
| 4 | pathping | Combines ping and tracert functionality to provide detailed latency and packet loss per hop. | pathping -q 10 -n -p 100 example.com |
| 5 | nslookup | Queries DNS servers to obtain domain name or IP address mapping. | nslookup google.com |
| 6 | netstat | Displays network statistics, active connections, and listening ports. | netstat -ano |
| 7 | getmac | Displays the MAC address(es) for network adapters. /v provides verbose output. | getmac /v |
| 8 | netsh | Powerful network configuration and scripting tool. | netsh wlan show profiles |
| System Information & Management | |||
| 9 | systeminfo | Displays detailed configuration information about the OS and hardware. | systeminfo |
| 10 | whoami | Displays the current username. Critical for privilege assessment. | whoami |
| 11 | hostname | Displays the computer's name. | hostname |
| 12 | ver | Displays the Windows version. | ver |
| 13 | winver | Opens a dialog box showing Windows version and build information. | winver |
| 14 | wmic | Windows 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 |
| 15 | msinfo32 | Opens the System Information GUI with detailed hardware and software data. | msinfo32 |
| 16 | driverquery | Displays a list of all installed device drivers. | driverquery |
| 17 | set | Displays, sets, or removes environment variables. | set set PATH |
| 18 | path | Displays or sets the PATH environment variable. | path |
| Process & Service Management | |||
| 19 | tasklist | Lists all currently running processes. | tasklist |
| 20 | taskkill | Terminates a running process by its name or PID. /F forces termination. | taskkill /IM notepad.exe /F taskkill /PID 1234 /F |
| 21 | sc | Service Control. Manages Windows services (query, start, stop, configure). | sc query sc stop "spooler" |
| 22 | net start | Starts a network service. | net start "Print Spooler" |
| 23 | net stop | Stops a network service. | net stop "Print Spooler" |
| 24 | query | Displays process/session information on Remote Desktop servers. | query process * |
| File System Operations | |||
| 25 | dir | Lists files and subdirectories in a directory. | dir C:\ |
| 26 | cd / chdir | Change Directory. Changes the current directory. | cd C:\Users |
| 27 | md / mkdir | Creates a new directory. | md NewFolder |
| 28 | rd / rmdir | Remove Directory. Deletes a directory. | rd OldFolder |
| 29 | copy | Copies files from one location to another. | copy C:\file.txt D:\ |
| 30 | xcopy | Extended Copy. Copies files and directory trees with more options. | xcopy C:\source D:\dest /E |
| 31 | robocopy | Robust File Copy. Advanced utility for reliable file copying and mirroring. | robocopy C:\source D:\dest /E |
| 32 | move | Moves files from one directory to another. | move C:\file.txt D:\ |
| 33 | ren | Renames a file or directory. | ren oldname.txt newname.txt |
| 34 | del / erase | Deletes one or more files. | del C:\file.txt |
| 35 | type | Displays the contents of a text file. | type C:\file.txt |
| 36 | find | Searches for a specific text string in a file. | find "error" C:\log.txt |
| 37 | findstr | Find String. Searches for strings in files using regular expressions. | ipconfig /all | findstr DNS |
| 38 | sort | Sorts the input. | sort < names.txt |
| 39 | comp | Compares the contents of two files. | comp file1.txt file2.txt |
| 40 | fc | File Compare. Compares files and displays the differences between them. | fc file1.txt file2.txt |
| 41 | tree | Displays the directory structure graphically. | tree C:\ |
| 42 | attrib | Displays or changes file attributes (Read-only, Hidden, etc.). | attrib +r C:\file.txt |
| 43 | cipher | Displays or alters the encryption of directories and files on NTFS volumes. | cipher /c C:\SecretFolder |
| 44 | compact | Displays or alters the compression of files on NTFS partitions. | compact /q C:\folder |
| 45 | fsutil | A powerful utility for performing advanced file system tasks. | fsutil fsinfo drives |
| Disk Management | |||
| 46 | chkdsk | Checks a disk for errors and attempts to repair them. /F fixes errors. | chkdsk C: /f |
| 47 | diskpart | A powerful text-mode command interpreter for managing disks, partitions, and volumes. | diskpart (then list disk) |
| 48 | format | Formats a disk to use a specific file system (e.g., NTFS). | format C: /fs:ntfs |
| 49 | defrag | Defragments a specified drive to optimize performance. | defrag C: |
| 50 | cleanmgr | Opens the Disk Cleanup utility to free up space. | cleanmgr |
| User & Group Management | |||
| 51 | net user | Adds, modifies, or displays user accounts. | net user JohnDoe newpassword |
| 52 | net localgroup | Adds, displays, or modifies local groups. | net localgroup Administrators |
| 53 | runas | Runs a specific tool or program under a different user account. | runas /user:Admin cmd |
| Windows Registry | |||
| 54 | reg | Command-line utility to add, change, and display registry values and keys. | reg query HKLM\Software |
| Scheduling & Policies | |||
| 55 | schtasks | Schedules commands and programs to run periodically or at a specific time. | schtasks /create /tn "MyTask" /tr notepad.exe /sc daily |
| 56 | gpupdate | Forces an immediate update of Group Policy settings. | gpupdate /force |
| 57 | gpresult | Displays the Resultant Set of Policy (RSoP) for a user or computer. | gpresult /r |
| System Utilities & GUI Tools | |||
| 58 | taskmgr | Opens the Task Manager. | taskmgr |
| 59 | devmgmt.msc | Opens the Device Manager console. | devmgmt.msc |
| 60 | diskmgmt.msc | Opens the Disk Management console. | diskmgmt.msc |
| 61 | services.msc | Opens the Services management console. | services.msc |
| 62 | eventvwr | Opens the Event Viewer. | eventvwr |
| 63 | perfmon | Opens the Performance Monitor. | perfmon |
| 64 | resmon | Opens the Resource Monitor. | resmon |
| 65 | msconfig | Opens the System Configuration utility. | msconfig |
| 66 | control | Opens the Control Panel. | control |
| 67 | mmc | Opens the Microsoft Management Console. | mmc |
| Power & Scripting | |||
| 68 | powercfg | Manages power settings and generates energy reports. | powercfg /energy |
| 69 | shutdown | Shuts down or restarts the computer. /r restarts, /t 0 sets zero delay. | shutdown /r /t 0 |
| 70 | cls | Clears the command prompt screen. | cls |
| 71 | echo | Displays messages or turns command echoing on or off. | echo Hello World |
| 72 | assoc | Displays or modifies file extension associations. | assoc .txt |
| 73 | ftype | Displays or modifies file types used in file extension associations. | ftype txtfile |
| 74 | winget | Microsoft's official package manager for Windows to manage applications. | winget list winget search firefox winget install appid |
| 75 | mstsc | Opens the Remote Desktop Connection client. | mstsc |
| 76 | sfc | System File Checker. Scans and repairs protected system files. | sfc /scannow |
Add New Comment