
The Command Prompt (CMD) looks old-fashioned, but it is still handy for quick troubleshooting. Here are the CMD commands you need most often, with a short explanation. Type cmd in the Start menu to begin. Some commands only work as administrator.
Network
ipconfigshows your IP address and gateway.ipconfig /allgives all details.ipconfig /flushdnsclears the DNS cache, useful when a website won't load after a change.ping 8.8.8.8tests whether you have internet.tracert google.comshows the route to a server.nslookup domain.comlooks up DNS records.netstat -anoshows open connections with their process ID.
System and repair
systeminfoshows the Windows version, install date and memory.sfc /scannowchecks and repairs Windows system files.DISM /Online /Cleanup-Image /RestoreHealthrepairs the Windows image when sfc can't fix the errors.chkdsk C: /fchecks the disk for errors (often after a restart).tasklistandtaskkill /IM name.exe /Flist and stop processes.shutdown /r /t 0restarts immediately;shutdown /s /t 0shuts down.
Management and domain
gpupdate /forceapplies Group Policy right away.gpresult /rshows which policies are active.whoamishows which account you are signed in with.dsregcmd /statusshows whether the PC is joined to Entra ID or a domain.winget upgrade --allupdates installed apps. See winget in Windows.

Files and folders
cd,dir,mkdirandcopyto navigate and copy.robocopy source target /Ereliably copies large folders, including subfolders.clsclears the screen.
Type /? after a command to see all its options. For managing Microsoft 365, PowerShell is the better choice: see check your PowerShell version and install PowerShell 7.
Nederlandstalige versie: De meestgebruikte CMD-commando's voor Windows
Related articles
▸Fix the DRIVER_PNP_WATCHDOG Blue Screen in Windows 11A step-by-step plan to fix the DRIVER_PNP_WATCHDOG error: updates, drivers, sfc and DISM, BIOS and recovery…
▸Fix the 0x0 0x0 error code on a Windows PCA step-by-step plan to fix the generic 0x0 0x0 error: updates, sfc and DISM, clean boot, drivers and recovery.
▸Run Command Prompt as Administrator in Windows 11 (6 Ways)Open Command Prompt, PowerShell or Windows Terminal as administrator in Windows 11 and 10: via Start…
▸Edit the Hosts File in Windows 11: Location, Syntax and FixesWhere is the hosts file in Windows 11 and 10 and how do you edit it? With Notepad as administrator…
▸Join a Windows 11 computer to an Active Directory domainJoin a Windows 11 PC to your Active Directory domain through settings or with PowerShell, and fix common…