The Ultimate A to Z List Of Windows CMD Commands You Need To Know

The command line is a text interface for your computer. It’s a program that takes in commands, which it passes on to the computer’s operating system to run. Microsoft Windows Command Prompt is very powerful tool. We can quickly and easily perform a task using CMD commands. We have compiled the list of all Windows CMD commands arranged alphabetically. You can also download Windows CMD commands PDF file.

While the commands in Windows 10, 8, 7, Vista, and XP are called CMD commands or Command Prompt commands, the commands in Windows 98/95 and MS-DOS are called DOS commands. In this article, we have listed the most commonly used commands in the Windows operating systems.

ADDUSERSAdd or list users to/from a CSV file
ADmodcmdActive Directory Bulk Modify
ARPAddress Resolution Protocol
ASSOCChange file extension associations
ATTRIBChange file attributes
BCDBOOTCreate or repair a system partition
BCDEDITManage Boot Configuration Data
BITSADMINBackground Intelligent Transfer Service
BROWSTATGet domain, browser and PDC info
CACLSChange file permissions
CALLCall one batch program from another
CERTREQRequest certificate from a certification authority
CERTUTILManage certification authority (CA) files and services
CD Change Directory – move to a specific Folder
CHANGEChange Terminal Server Session properties
CHCPChange the active console Code Page
CHKDSKCheck Disk – check and repair disk problems
CHKNTFSCheck the NTFS file system
CHOICEAccept keyboard input to a batch file
CIPHEREncrypt or Decrypt files/folders
CleanMgrAutomated cleanup of Temp files, recycle bin
CLIPCopy STDIN to the Windows clipboard
CLSClear the screen
CMDStart a new CMD shell
CMDKEYManage stored usernames/passwords
COLORChange colors of the CMD window
COMPCompare the contents of two files or sets of files
COMPACTCompress files or folders on an NTFS partition
COMPRESSCompress one or more files
CONConsole input
CONVERTConvert a FAT drive to NTFS
COPYCopy one or more files to another location
CoreinfoShow the mapping between logical & physical processors
CSCcmdClient-side caching (Offline Files)
CSVDEImport or Export Active Directory data
DATEDisplay or set the date•
DEFRAGDefragment hard drive
DELDelete one or more files
DELPROFDelete user profiles
DELTREEDelete a folder and all subfolders
DevConDevice Manager Command Line Utility
DIRDisplay a list of files and folders
DIRQUOTAFile Server Resource Manager Disk quotas
DIRUSEDisplay disk usage
DISKPARTDisk Administration
DISKSHADOW Volume Shadow Copy Service
DISKUSEShow the space used in folders
DISMDeployment Image Servicing and Management
DNSCMDManage DNS servers
DOSKEYEdit command line, recall commands, and create macros
DriverQuery Display installed device drivers
DSACLsActive Directory ACLs
DSAddAdd items to Active Directory (user group computer)
DSGetView items in Active Directory (user group computer)
DSQuerySearch Active Directory (user group computer)
DSModModify items in Active Directory (user group computer)
DSMoveMove an Active Directory Object
DSRMRemove items from Active Directory
DsmgmtDirectory Service Management
ECHODisplay message on screen
ENDLOCALEnd localisation of the environment in a batch file
ERASEDelete one or more files
EVENTCREATE Add a message to the Windows event log
EXITQuit the current script/routine and set an errorlevel
EXPANDUncompress CAB files
EXPLOREROpen Windows Explorer
EXTRACTUncompress CAB files
FCCompare two files
FINDSearch for a text string in a file
FINDSTRSearch for strings in files
FLTMCManage MiniFilter drivers
FOR /FLoop command: against a set of files
FOR /FLoop command: against the results of another command
FORLoop command: all options Files, Directory, List
FORFILESBatch process multiple files
FORMATFormat a disk
FREEDISKCheck free disk space
FSUTILFile and Volume utilities
FTPFile Transfer Protocol
FTYPEFile extension file type associations
GETMACDisplay the Media Access Control (MAC) address
GOTODirect a batch program to jump to a labelled line
GPRESULTDisplay Resultant Set of Policy information
GPUPDATEUpdate Group Policy settings
HELPOnline Help
HOSTNAMEDisplay the host name of the computer
iCACLSChange file and folder permissions
IEXPRESSCreate a self extracting ZIP file archive
IFConditionally perform a command
IFMEMBERIs the current user a member of a group
INUSEReplace files that are in use by the OS
LABELEdit a disk label
LGPOLocal Group Policy Object utility
LODCTRLoad PerfMon performance counters
LOGMANManage Performance Monitor logs
LOGOFFLog a user off
LOGTIMELog the date and time in a file
MAKECABCreate .CAB files
MAPISENDSend email from the command line
MBSAcli Baseline Security Analyzer
MDCreate a new Directory
MKLINKCreate a symbolic link (linkd)
MODEConfigure a system device COM/LPT/CON
MOREDisplay output, one screen at a time
MOUNTVOLManage a volume mount point
MOVEMove files from one folder to another
MOVEUSERMove a user from one domain to another
MSGSend a message
MSIEXECMicrosoft Windows Installer
MSINFO32System Information
MSTSCTerminal Server Connection/Remote Desktop Protocol(RDP)
NETManage network resources
NETDOMDomain Manager
NETSHConfigure Network Interfaces, Firewall & Remote access
NBTSTATDisplay networking statistics (NetBIOS over TCP/IP)
NETSTATDisplay networking statistics (TCP/IP)
NLSINFODisplay locale information (reskit).
NLTESTNetwork Location Test (AD)
NOWDisplay the current Date and Time
NSLOOKUPName server lookup
NTBACKUPWindows Backup folders to tape
NTDSUtilActive Directory Domain Services management
NTRIGHTSEdit user account rights
NVSPBINDModify network bindings
OPENFILESQuery or display open files
PATHDisplay or set a search path for executable files
PATHPINGTrace route plus network latency and packet loss
PAUSESuspend processing of a batch file
PERMSShow permissions for a user
PINGTest a network connection
POPDReturn to a previous directory saved by PUSHD
PORTQRYDisplay the status of ports and services
POWERCFGConfigure power settings
PRINTPrint a text file
PRINTBRMPrint queue Backup/Recovery
PRNCNFGConfigure or rename a printer
PRNMNGRAdd, delete, list printers and printer connections
ProcDumpMonitor an application for CPU spikes
PROMPTChange the command prompt
PsExecExecute process remotely
PsFileShow files opened remotely
PsGetSidDisplay the SID of a computer or a user
PsInfoList information about a system
PsKillKill processes by name or process ID
PsListList detailed information about processes
PsLoggedOn Who’s logged on (locally or via resource sharing)
PsLogListEvent log records
PsPasswdChange account password
PsPingMeasure network performance
PsServiceView and control services
PsShutdown Shutdown or reboot a computer
PsSuspendSuspend processes
PUSHDSave and then change the current directory
QGREPSearch file(s) for lines that match a given pattern
Query Process / QPROCESS  Display processes
Query Session / QWinsta   Display all sessions (TS/Remote Desktop)
Query TermServer /QAppSrv List all servers (TS/Remote Desktop)
Query User    / QUSER     Display user sessions (TS/Remote Desktop)
RASDIALManage RAS connections
RASPHONEManage RAS connections
RDDelete a Directory
RECOVERRecover a damaged file from a defective disk
REGRegistry: Read, Set, Export, Delete keys and values
REGEDITImport or export registry settings
REGSVR32Register or unregister a DLL
REGINIChange Registry Permissions
REMRecord comments (remarks) in a batch file
RENRename a file or files
REPLACEReplace or update one file with another
Reset Session  Delete a Remote Desktop Session
RMTSHAREShare a folder or a printer
ROBOCOPYRobust File and Folder Copy
ROUTEManipulate network routing tables
RUNStart | RUN commands
RUNASExecute a program under a different user account
RUNDLL32Run a DLL command (add/remove print connections)
SCService Control
SCHTASKSSchedule a command to run at a specific time
SETDisplay, set, or remove session environment variables
SETLOCALControl the visibility of environment variables
SetSPNEdit Service Principal Names
SETXSet environment variables
SFCSystem File Checker
SHAREList or edit a file share or print share
ShellRunAs Run a command under a different user account
SHIFTShift the position of batch file parameters
SHORTCUTCreate a windows shortcut (.LNK file)
SHUTDOWNShutdown the computer
SIGCHECKDisplay file version no. VirusTotal status & timestamp
SLEEPWait for x seconds
SLMGRSoftware Licensing Management (Vista/2008)
SORTSort input
STARTStart a program, command or batch file•
STRINGSSearch for ANSI and UNICODE strings in binary files
SUBINACLEdit file and folder Permissions, Ownership and Domain
SUBSTAssociate a path with a drive letter
SYSMONMonitor and log system activity to the Windows event log
SYSTEMINFO List system configuration
TAKEOWN Take ownership of a file
TASKLISTList running applications and services
TASKKILLEnd a running process
TELNETCommunicate with another host using the TELNET protocol
TIMEDisplay or set the system time
TIMEOUTDelay processing of a batch file/command
TITLESet the window title for a CMD.EXE session•
TLIS Task list with full path
TOUCHChange file timestamps
TRACERTTrace route to a remote host
TREEGraphical display of folder structure
TSDIS Disconnect a Remote Desktop Session
TSKILLEnd a running process
TYPEDisplay the contents of a text file
TypePerfWrite Performance Monitor data to a log file
TZUTILTime Zone Utility
VERDisplay version information
VERIFYVerify that files have been saved
VMConnectConnect to a Hyper-V Virtual Machine
VOLDisplay a disk label
VSSADMINDisplay volume shadow copy backups + writers/providers.
W32TMTime Service
WAITFORWait for or send a signal
WBADMINWindows Backup Admin
WECUTILWindows Event Collector Utility
WEVTUTILClear event logs, enable/disable/query logs
WHERELocate and display files in a directory tree
WHOAMIOutput the current UserName and domain
WINDIFFCompare the contents of two files or sets of files
WINRMWindows Remote Management
WINRSWindows Remote Shell
WMICWMI Commands
WPEUTILRun WinPE commands
WPRWindows Performance Recorder
WUSAWindows Update Standalone Installer
WUAUCLTWindows Update
XCACLSChange file and folder permissions
XCOPYCopy files and folders
::Comment / Remark

The commands that are marked with • , are Internal commands i.e. these can be run in CMD window only. All other commands are External commands, i. e. can be run in CMD shell, PowerShell, or directly from Start > Run.

Internal commands: The internal commands are those commands that are automatically loaded in the memory.

External commands: –  This commands are not permanent part of the memory. To execute or run this commands an external file is required.
Example : [.] Dot  exe, bat.

You may also like...

2 Responses

  1. gralion torile says:

    I got what you intend,bookmarked, very decent web site.

  2. frolep rotrem says:

    I¦ve recently started a blog, the information you offer on this web site has helped me greatly. Thanks for all of your time & work.

Leave a Reply

Your email address will not be published. Required fields are marked *