0% found this document useful (0 votes)
213 views15 pages

A-Z List of Windows CMD Commands - Also Included CMD Commands PDF

The document discusses a list of Windows command prompt (CMD) commands sorted alphabetically. It provides an overview of what command prompt is and how it can be accessed in Windows. The main body contains a table that lists various CMD commands from A to Z along with a brief description of their functions. It aims to serve as a reference for both experienced and new users of CMD commands in Windows.

Uploaded by

st i
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
213 views15 pages

A-Z List of Windows CMD Commands - Also Included CMD Commands PDF

The document discusses a list of Windows command prompt (CMD) commands sorted alphabetically. It provides an overview of what command prompt is and how it can be accessed in Windows. The main body contains a table that lists various CMD commands from A to Z along with a brief description of their functions. It aims to serve as a reference for both experienced and new users of CMD commands in Windows.

Uploaded by

st i
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

A-Z List Of Windows CMD Commands — Also


Included CMD Commands PDF
By Sabarinath - Last Updated: November 8, 2020

Here is the list of all Windows CMD commands sorted alphabetically


along with exclusive CMD commands pdf file for future reference for both
pro and newbies.

Command Prompt and CMD Commands are unknown territories for most
of the Windows users, they only know it as a black screen for
troubleshooting the system with some fancy commands.

If you are Linux user then you would know how commands play an
important role in different system operations — like how we play around
with apt-get Ubuntu commands to install, update or upgrade software.
Unlike Linux, Windows is a user-friendly operating system and we don’t
require to play with CMD commands at all to do our task. In most cases,
people open Command Prompt only when they need to repair a corrupted
disk, hide certain drives, to create a hacking-like environment, etc.

Contents

What Is Command Prompt And CMD Commands?

https://techlog360.com/all-windows-cmd-commands/ 1/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

Command Prompt, also known as cmd.exe or cmd — a command line


interpreter application on Windows NT family operating systems. And CMD
Commands are the specific set of instructions given to Command Prompt to
perform some kind of task or function on your Windows PC.

Most of the Windows CMD Commands are used to automate tasks via scripts
and batch files, perform advanced administrative functions, and troubleshoot
and solve certain kinds of Windows issues.

So here is the A-Z list of Windows CMD commands to perform desired


tasks which you normally do by using the GUI. Also, you can use these
commands to do some exciting hacks through Windows — which we will list
soon.

How To Access Command Prompt?


Before we start first we will see how to open the Command Prompt
program.

Three ways you can run the Command Prompt program :

1. Simply by typing cmd in the Start Menu search bar.

2. If you are using Windows 8, then you can access Command Prompt via
the Command Prompt shortcut located in the Start Menu or on the Apps
screen.

3. Or you can press CTRL+R to open the RUN utility, type cmd, and press
Enter.

Note:

Many commands can only be executed if Command Prompt is being run


as an administrator. To open an Elevated Command Prompt — Locate
the Command Prompt shortcut, then right-click on it to bring up its pop-
up menu of options and from the pop-up menu, choose Run as
administrator. Accept any User Account Control messages or warnings.

https://techlog360.com/all-windows-cmd-commands/ 2/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

A-Z Windows CMD Commands

CMD
Function
Commands

addusers Used to add and list users in a CSV file

admodcmd Used for bulk modifying contents in an active directory

Address Resolution Protocol is used to map IP address


arp
to the hardware address

assoc Used to change associations for file extensions

associat One step file association

at Run a command at a specific time

atmadm Display connection info of the ATM adapter

attrib Used to change file attributes

bcdboot Used to create and repair a system partition

bcdedit Used to manage boot configuration data

Used to manage the Background Intelligent Transfer


bitsadmin
Service

bootcfg Used to edit boot configuration in Windows

break Enable/Disable break capability (CTRL+C) in CMD

cacls Used to change permissions of files

call Used one batch program to call another

Used to request a certificate from a certification


certreq
authority

certutil Manage Certification Authority files and services

Used to change folder (directory) or go to a specific


cd
one

change Used to change terminal services

chcp Displays the number of active console code page

chdir Same as cd command


https://techlog360.com/all-windows-cmd-commands/ 3/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

chkdsk Used to check and repair issues in the disk

chkntfs Used to check the NTFS file system

choice Accept user input (via keyboard) to a batch file

cipher Used to encrypt/decrypt files and folder

cleanmgr Used clean temp files and recycle bin automatically

Copy result of any command (stdin) to Windows


clip
clipboard

cls Clear CMD screen

cmd Used to start a new CMD shell

cmdkey Used to manage stored usernames and passwords

Used to install or remove a connection manager


cmstp
service profile

color Change the color of the CMD shell using options

comp Compare contents of two files or two sets of files

compact Compress files and folders on an NTFS partition

compress Compress one or more files

convert Convert a FAT partition to NTFS

copy Copy one or more files to another location

Show the mapping between logical and physical


coreinfo
processors

Cleans specified profiles of wasted space and disabled


cprofile
user-specific file associations

cscmd Configure offline files on a client computer

csvde Import or Export the data of an active directory

date Used to display the date or change it

defrag Used to defragment system hard drive

del Used to delete a file(s)

delprof Used to delete user profile(s)

deltree Used to delete a folder and its sub-folders

devcon Access the command line device manager utility

dir Used to display files and folders list


https://techlog360.com/all-windows-cmd-commands/ 4/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

dirquota Manage File Server Resource Manager quotas

diruse Used to display disk usage

diskcomp Compare contents of two floppy disks

diskcopy Copy data of one floppy disk to another

Make changes to partitions of storage, both internal


diskpart
and connected

diskshadow Access the Disk Shadow Copy Service

diskuse View used space in folder(s)

Used to edit command line, recall commands, and


doskey
create macros

driverquery Display a list of installed device drivers

View and edit access control entries for objects in


dsacls
active directory

dsadd Used to add objects to active directory

dsget View objects in active directory

dsquery Find objects in an active directory

dsmod Used to modify objects in an active directory

dsmove Rename or move an active directory object.

dsrm Remove objects from an active directory

dsmgmt Manage Active Directory Lightweight Directory Services

Turn command-echoing feature on/off, display a


echo
message on the screen

endlocal End localization environment changes in a batch file

erase Used to delete on or more file(s)

Add custom event to Windows event log (Admin rights


eventcreate
required)

Display list of events and their properties from event


eventquerry
logs

Display and configure event triggers on local and


eventtriggers
remote machines

exit Exit the command line (Quit current batch script)

https://techlog360.com/all-windows-cmd-commands/ 5/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

expand Uncompress one or more .CAB file(s)

explorer Open Windows Explorer

extract Uncompress one or more Windows cabinet file(s)

fc Used to compare two files

find Used to search a specified text string in a file

findstr Used to find string patterns in files

Display information about user(s) on a specified remote


finger
computer

flattemp Used to enable/disable flat temporary folders

Run a command in a loop for a file(s) for defined


For
parameter

forfiles Used for batch processing of selected file(s)

format Used to format a disk

freedisk Used to check free space on a disk

fsutil File system utility to manage file and drive properties

ftp Use FTP service to transfer files from one PC to another

ftype Display/ Modify file extension type associations

Used to display the MAC address of your network


getmac
adapter

Used to direct a batch program to a line identified by a


goto
label

Display Group Policy Settings and Resultant Set of


gpresult
Policy for a user

Update local and active directory based on group policy


gpupdate
settings

Turn on the ability to display an extended character in


graftabl
graphics mode

Display a list of commands and see online information


help
for them

https://techlog360.com/all-windows-cmd-commands/ 6/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

hostname Used to display host name of the computer

icacls Used to change permissions of files and folders

iexpress Used to create a self-extracting zip archive

if Used for conditional processing in batch programs

ifmember Display the group(s) an active user belongs to

Replace the files which the OS is currently using


inuse
(restart required)

ipconfig Display and change Windows IP configuration

ipseccmd Used to configure IP Security policies

Display and modify routing table information used by


ipxroute
IPX protocol

Used to send files over an infrared link (infrared


irftp
functionality required)

label Used to change the name of a disk

lodctr Update registry values with latest performance counters

logman Used to manage performance monitor logs

logoff Log a user off

logtime Add the date, time, and a message to a text file

lpq Displays print queue status

Used to send a file to a computer running the Line


lpr
Printer Daemon service

macfile Manage files server for Mackintosh

makecab Used to create .cab files

mapisend Used to send email from command line

mbsacli Microsoft Baseline Security Analyser

mem Used to show memory usage

md Used to create directories and sub-directories

mkdir Used to create directories and sub-directories

https://techlog360.com/all-windows-cmd-commands/ 7/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

mklink Used to create symbolic link to a directory

mmc Access Microsoft Management Console

mode Configure COM, LPT, CON system devices

more Display one screen of output at time

mountvol Create, list, or delete a volume mount point

move Used to move files from one folder to another

moveuser Move user account to a domain or between machines

msg Used to send a pop-up message to a user

msiexec Install, modify, configure using Windows Installer

msinfo32 Display system information

mstsc Create a remote desktop connection

nbstat Display NetBIOS over TCP/IP information

net Used to manage network resources and services

netdom Network Domain Manager utility

netsh Display or modify network configuration

netstat Display active TCP/IP connections

nlsinfo Used to display locale information

nltest List domain controllers, force remote shutdown, etc

now Display date and time

nslookup Check IP address on a Name Server

ntbackup Backup data to tape using CMD or batch file

Runs cmd.exe instead of command.exe in an MS-DOS


ntcmdprompt
application

ntdsutil Manage Active Directory Domain Services

ntrights Used to edit user account privileges

ntsd Only for system developers

nvspbind Used to modify network bindings

openfiles Queries or displays open files

https://techlog360.com/all-windows-cmd-commands/ 8/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

pagefileconfig Display and configure Virtual memory settings

path Set PATH environment variable for executable files

Latency and Packet loss info for each node in the


pathping
network path

pause Used to stop processing of a batch file

pbadmin Starts Phone Book Administrator

pentnt Detect Floating Point Division error in the Pentium chip

perfmon Access performance monitor in CMD

perms Display a user\’s ACL permissions for a file

ping Test network connection to a computer

popd Go to the latest path/folder stored by PUSHD command

portqry Display TCP and UDP port status

Used to configure power settings and know battery


powercfg
health

print Used to print a text file(s) from CMD

printbrm For backup/recovery/migration of the print queue

prncnfg Used to configure/rename a printing device

prndrvr List/add/delete printer drivers

prnjobs List/pause/resume/cancel print jobs

prnmngr List/add/delete printers, display/set default printer

List/create/delete TCP printer ports, display/change


prnport
port configuration

prnqctl Clear printer queue, print a test page

Monitor system for CPU spikes, generate a crash report


procdump
during a spike

prompt Used to change the Prompt in CMD

psexec Run a CMD process on a remote computer

psfile Display remotely opened files, close an open file

psinfo List system information about a local/remote machine

pskill Kill a process(es) using its name or process ID

pslist Display process status and info about active processes

psloggedon See active users on machine


https://techlog360.com/all-windows-cmd-commands/ 9/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

psloglist Display event log records

pspasswd Used to change account password

psping Used to measure network performance

psservice Display and control services on a machine

psshutdown Shutdown/restart/logoff/lock a local or remote machine

Used to suspend a process on a local or remote


pssuspend
computer

Change current folder and store previous folder for use


pushd
by POPD

qgrep Search file(s) for a given string pattern

query process or
Display information about processes
qprocess

rasdial Display Remote Access Service Status

rasphone Manage RAS connections

rcp Copy files to a computer running remote shell service

recover Recover readable data from a defective disk

Display/add/change registry keys and values in


reg
Windows registry

regedit Import/export/delete settings from a .reg text file

regsvr32 Used to register/unregister a DLL file

regini Used to change registry permissions

Export performance counters to other formats like TSV,


relog
CSV, SQL

rem Add comments in batch file

ren Used to rename a file(s)

replace Used to replace a file with another file of same name

reset session Used to reset a remote desktop session

Run commands on remote machines running Rexec


rexec
service

rd Used to delete a folder(s)


https://techlog360.com/all-windows-cmd-commands/ 10/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

rmdir Used to delete a folder(s)

rmtshare Manage file and printer shares local or remote servers

robocopy Used to copy files and folders that have changed

route Display/change the local IP routing table

rsh Run commands on remote servers running RSH service

rsm Manage media resources using Removable storage

runas Run a program as a different user

rundll32 Used to run a DLL program

sc Use Service Controller to manage Windows services

schtasks Schedule command(s) to run at a specific time

secedit Configure system security

set Display/set/remove environment variables in CMD

setlocal Control visibility of environment variables in a batch file

Manage Service Principal Names for an Active Directory


setspn
service account

setx Set Environment Variables permanently

sfc System File Checker

share List/edit a file share or print on any computer

shellrunas Used to run a command as a different user

Change the position of the batch parameters in a batch


shift
file

shortcut Create a Windows shortcut

shutdown Shutdown the computer

sleep Put computer to sleep for specified number of seconds

Software Licensing Management tool for activation and


slmgr
KMS

sort Used to sort and display a redirected or piped input

start Start a program, command, or batch file

strings Find ANSI and UNICODE strings in binary files

subinacl Display/modify ACEs for file and folder permissions

https://techlog360.com/all-windows-cmd-commands/ 11/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

subst Associate a path with a drive letter

sysmon Monitor and log system activity to Windows event log

Display detailed configuration information about the


systeminfo
computer

takeown Used to take the ownership of a file

taskkill Used to terminate on or more running processes

tasklist Display a list of running apps and services.

tcmsetup Enable/disable TAPI client

Communicate with a remote machine using TELNET


telnet
protocol

Transfer files to and from a remote machine running


tftp
TFTP protocol

time Display/change system time

timeout Delay a batch file execution for specified seconds

title Change the text on top of CMD window

touch Change file timestamps

Process event trace logs and generate trace analysis


tracerpt
report

Trace route to a remote host by sending ICMP request


tracert
messages

tree Display a folder structure in the form of a graphical tree

tsdiscon Terminate a remote desktop connection

Terminate a running process on a RD Session Host


tskill
server

tssutdn Shutdown/reboot a terminal server remotely

type Show contents of a text file

typeperf Write performance data to a CMD window or a log file

tzutil Time Zone Utility

Remove performance counter names and explain text


unlodctr
for a service from the registry

https://techlog360.com/all-windows-cmd-commands/ 12/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

ver Show version number of installed OS

verify Verify whether files are saved correctly on the disk

vol Show disk volume label and serial number

Show shadow copy backups, installed shadow copy


vssadmin
writers and providers

w32tm Access Windows Time Service Utility

Used to synchronize events between networked


waitfor
computer(s)

wevtutil Retrieve information about event logs and publishers

where Find and display file(s) in the current directory

whoami Display information about the active user

windiff Compare contents of two files or sets of files

winrm Windows Remote Management

winrs Windows Remote Shell

wmic Windows Management Instrumentation Command

wuauclt Windows Update Agent to download new update files

xcalcs Change ACLs for files and folders

xcopy Copy files or directory trees to another folder

:: Comment

That’s it! If you think we forget to add any other CMD commands in this list,
please notify us. Also here is get a copy of list of CMD Commands PDF too.
And soon wait for more command prompt tricks. Also don’t forget to check
CMD keyboard shortcuts listed down below.

List Of CMD Commands PDF File


Also, check out other command lists too :

https://techlog360.com/all-windows-cmd-commands/ 13/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

Kali Linux Commands

Ubuntu Commands

Bash Command Line for Linux

Command Prompt Keyboard Shortcuts:


Here are some important CMD keyboard shortcuts to ease up your work on
Command Prompt.

CMD Keyboard
Function
Shortcuts

Pastes the last executed command (character by


F1
character)

F2 Copies characters from the previous command

F3 Repeats the last command

Deletes current prompt text up to the entered


F4
character

Pastes recently executed commands (does not


F5
cycle)

F6 Pastes ^Z to the prompt

Shows list of all previous commands from the


F7
command history

Type character and press F8 key to cycle through


F8
matching commands

Asks for the number of the command from the F7


F9
list to paste

Cycles through previous commands from the


Up Arrow
command history

Auto-fills characters from previous command one by


Right Arrow
one

Tab Auto-fills file/folder names

Alt+F7 Clears command history

Esc Erases current line

https://techlog360.com/all-windows-cmd-commands/ 14/15
3/11/2021 A-Z List Of Windows CMD Commands — Also Included CMD Commands PDF

https://techlog360.com/all-windows-cmd-commands/ 15/15

You might also like