You are on page 1of 34

 fossBytes

Tech

News

Security

Geek

How To

Advertise

Deals

Academy

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

BY ADITYA TIWARI ON NOV 16, 2016 – IN LIST

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Short Bytes: Command Prompt or CMD is a command line interpreter in the Windows
family of operating systems created by Microsoft Corporation. In this article, we have tried
to curate an A to Z list of Windows CMD Commands. The list includes both internal and
external commands applicable to the command prompt.

I

n the case of Windows OS, most users are not even
remotely concerned about the Command Prompt or
cmd.exe. People know that there is some inbuilt software

with a black screen which is used to troubleshoot Windows issues
sometimes. For instance, when a user has to repair a corrupt pen
drive. On the other hand, Linux users are very much familiar with the
command line utility and it’s a part of their daily computer usage.
CMD is a command line interpreter – a program designed to
understand the commands input by a user, from a text file, or any
open in browser PRO version

other medium – in Windows NT family. It is the modern version of

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

other medium – in Windows NT family. It is the modern version of
the COMMAND.COM which was the default shell present in the
DOS operating systems and as a command line interpreter in
Windows 9x family.

Total Malware
Protection
Protect Your Computer –
Shop Now! Go to
buy.malwarebytes.com

Install Service
Packs
Identify & Install Missing Service
Packs on your Network. Free Trial!
Go to gfi.com

Similar to Linux command line, the Command Prompt in Windows NT
– Windows X, 7, 8, 8.1, 10 – is quite efficient. Using various commands,
you can ask your Windows OS to perform desired tasks which you
normally do by using the GUI.

How to open Windows CMD?
open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Are the Commands CaseSensitive? The commands used in the Windows Command Prompt are not casesensitive.com .You can open the Windows Command Prompt by typing cmd in the Start Menu search bar. Once you get the hang of these commands. For example. when you type dir or DIR. type cmd. you can press CTRL+R to open the RUN utility. But individual commands may have various options which can be case-sensitive. it’s the same thing. you can do most of your work more quickly without using the normal graphical interface. A to Z List of Windows CMD Commands Here is an A to Z list of Windows CMD commands which will be beneficial to you. Alternatively. unlike the Linux command line. and press Enter. open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.

To display help for the commands: command_name /? Press Enter. For example.com . to see help for the ping command: ping /? Note: Some of these commands may require relevant service or Windows version to work correctly. A – Windows CMD commands A Description addusers Used to add and l ist users in a CSV fil e admodcmd Used for bul k modifying contents in an activ e directory arp assoc open in browser PRO version Address Resol ution Protocol is used to map IP address to the hardware address Used to change associations for fil e extensions Are you a developer? Try out the HTML to PDF API pdfcrowd.

assoc Used to change associations for fil e extensions associat One step fil e association at Run a command at a specific time atmadm Displ ay connection info of the ATM adapter attrib Used to change fil e attributes B – Windows CMD Commands B Description bcdboot Used to create and repair a system partition bcdedit Used to manage boot configuration data bitsadmin Used to manage the Background Intel l igent Transfer Serv ice bootcfg Used to edit boot configuration in Windows break Enabl e/Disabl e break capabil ity (CTRL+C) in CMD C – Windows CMD Commands open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com .

com .open in browser PRO version C Description cacl s Used to change permissions of fil es cal l Used one batch program to cal l another certreq Used to request a certificate from a certification authority certutil Manage Certification Authority fil es and serv ices cd Used to change fol der (directory) or go to a specific one change Used to change terminal serv ices chcp Displ ays the number of activ e consol e code page chdir Same as cd command chkdsk Used to check and repair issues in the disk chkntfs Used to check the NTFS fil e system choice Accept user input (v ia keyboard) to a batch fil e cipher Used to encrypt/decrypt fil es and fol der cl eanmgr Used cl ean temp fil es and recycl e bin automatical l y cl ip Copy resul t of any command (stdin) to Windows cl ipboard Are you a developer? Try out the HTML to PDF API pdfcrowd.

cl ip Copy resul t of any command (stdin) to Windows cl ipboard cl s Cl ear CMD screen cmd Used to start a new CMD shel l cmdkey Used to manage stored usernames and passwords cmstp Used to instal l or remov e a connection manager serv ice profil e col or Change the col or of the CMD shel l using options comp Compare contents of two fil es or two sets of fil es compact Compress fil es and fol ders on an NTFS partition compress Compress one or more fil es conv ert Conv ert a FAT partition to NTFS copy Copy one or more fil es to another l ocation coreinfo Show the mapping between l ogical and physical processors cprofil e cscmd open in browser PRO version Cl eans specified profil es of wasted space and disabl ed user-specific fil e associations Configure offl ine fil es on a cl ient computer de Try out the HTML to PDF Import or Are you acsv developer? API Export the data of an activ e directory pdfcrowd.com .

Fil eAPI Serv er Are you a developer? Try out Manage the HTML to PDF Resource pdfcrowd. Access the command l ine dev ice manager util ity.csv de Import or Export the data of an activ e directory D – Windows CMD Commands D date defrag Used to displ ay the date or change it. del Used to del ete a fil e(s).com . Used to defragment system hard driv e. del tree dev con dir open in browser PRO version Description Used to del ete a fol der and its sub-fol ders. del prof Used to del ete user profil e(s). Used to displ ay fil es and fol ders l ist.

dirquota diruse diskcomp diskcopy diskshadow diskuse Manage Fil e Serv er Resource Manager quotas. Compare contents of two fl oppy disks. driv erquery Displ ay a l ist of instal l ed dev ice driv ers. V iew and edit access control open in browser PRO version dsacl s entries for objects in activ e Are you a developer? Try out the HTML to PDF API pdfcrowd. both internal and connected. V iew used space in fol der(s). Used to displ ay disk usage. Access the Disk Shadow Copy Serv ice. Make changes to partitions diskpart of storage. doskey recal l commands.com . Copy data of one fl oppy disk to another. and create macros. Used to edit command l ine.

Used to modify objects in an activ e directory. V iew objects in activ e directory.dsacl s entries for objects in activ e directory.com . Manage Activ e Directory Lightweight Directory Serv ices E – Windows CMD Commands open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd. Remov e objects from an activ e directory. dsadd dsget dsquery dsmod dsmov e dsrm dsmgmt Used to add objects to activ e directory. Rename or mov e an activ e directory object. Find objects in an activ e directory.

ev entquerry Displ ay l ist of ev ents and their properties from ev ent l ogs. ev entcreate Add custom ev ent to Windows ev ent l og (Admin rights required).com . ev enttriggers Displ ay and configure ev ent triggers on l ocal and remote machines.E echo Description Turn command-echoing feature on/off. displ ay a message on the screen. erase Used to del ete on or more fil e(s). expand Uncompress one or more . endl ocal End l ocal ization env ironment changes in a batch fil e. exit Exit the command l ine (Quit current batch script).CAB fil e(s) expl orer Open Windows Expl orer. extract Uncompress one or more Windows cabinet fil e(s) F – Windows CMD Commands F open in browser PRO version Are you a developer? Try out the HTML to PDF API Description pdfcrowd.

fsutil Fil e system util ity to manage fil e and driv e properties.fc Used to compare two fil es. fl attemp Used to enabl e/disabl e fl at temporary fol ders. freedisk Used to check free space on a disk. finger Displ ay information about user(s) on a specified remote computer. find Used to search a specified text string in a fil e. G – Windows CMD Commands open in browser PRO version G Are you a developer? Try out the HTML to PDF API Description pdfcrowd. ftp Use FTP serv ice to transfer fil es from one PC to another. forfil es Used for batch processing of sel ected fil e(s) format Used to format a disk. ftype Displ ay/ Modify fil e extension type associations.com . findstr Used to find string patterns in fil es. For Run a command in a l oop for a fil e(s) for defined parameter.

gpupdate Update l ocal and activ e directory based on group pol icy settings. Are you a developer? Try out the HTML to PDF API pdfcrowd.com .G Description getmac Used to displ ay the MAC address of your network adapter. goto Used to direct a batch program to a l ine identified by a l abel . graftabl Turn on the abil ity to displ ay an extended character in graphics mode. I – Windows CMD Commands open in browser PRO version I Description icacl s Used to change permissions of fil es and fol ders. hostname Used to displ ay hostname of the computer. H – Windows CMD Commands H Description hel p Displ ay a l ist of commands and see onl ine information for them. gpresul t Displ ay Group Pol icy Settings and Resul tant Set of Pol icy for a user.

ifmember Displ ay the group(s) an activ e user bel ongs to. inuse Repl ace the fil es which the OS is currentl y using (restart required). iexpress Used to create a sel f-extracting zip archiv e. L – Windows CMD Commands open in browser PRO version L Description l abel Used to change the name of a disk.com . ipconfig Displ ay and change Windows IP configuration. irftp Used to send fil es ov er an infrared l ink (infrared functional ity required). if Used for conditional processing in batch programs. ipseccmd Used to configure IP Security pol icies. l odctr Update registry v al ues with l atest performance counters. l ogman Used to manage performance monitor l ogs. ipxroute Displ ay and modify routing tabl e information used by IPX protocol .icacl s Used to change permissions of fil es and fol ders. Are you a developer? Try out the HTML to PDF API pdfcrowd.

and a message to a text fil e.cab fil es. Are you a developer? Try out the HTML to PDF API pdfcrowd. mapisend Used to send email from command l ine.l ogoff Log a user off. time. mkl ink Used to create symbol ic l ink to a directory. mem Used to show memory usage. mkdir Used to create directories and sub-directories.com . mbsacl i Microsoft Basel ine Security Anal yser. makecab Used to create . l ogtime Add the date. l pr Used to send a fil e to a computer running the Line Printer Daemon serv ice. l pq Displ ays print queue status. M – Windows CMD Commands open in browser PRO version M Description macfil e Manage fil es serv er for Mackintosh. md Used to create directories and sub-directories.

more Displ ay one screen of output at time. msg Used to send a pop-up message to a user. N – Windows CMD Commands open in browser PRO version N Description nbstat Displ ay NetBIOS ov er TCP/IP information. consfigure using Windows Instal l er. msiexec Instal l . mov euser Mov e user account to a domain or between machines. mstsc Create a remote desktop connection. or del ete a v ol ume mount point.com . modify. Are you a developer? Try out the HTML to PDF API pdfcrowd. LPT. mmc Access Microsoft Management Consol e. msinfo32 Displ ay system information. mov e Used to mov e fil es from one fol der to another. mountv ol Create. CON system dev ies.mkl ink Used to create symbol ic l ink to a directory. mode Configure COM. l ist.

ntdsutil Manage Activ e Directory Domain Serv ices ntrights Used to edit user account priv il eges. netdom Network Domain Manager util ity netsh Displ ay or modify network configuration netstat Displ ay activ e TCP/IP connections. Are you a developer? Try out the HTML to PDF API pdfcrowd. etc. nl sinfo Used to displ ay l ocal e information nl test List domain control l ers. force remote shutdown.exe in an MS-DOS appl ication. nv spbind Used to modify network bindings.open in browser PRO version net Used to manage network resources and serv ices.com . ntsd Onl y for system dev el opers. now Displ ay date and time. ntcmdprompt Runs cmd. ntbackup Backup data to tape using CMD or batch fil e. nsl ookup Check IP address on a Name Serv er.exe instead of command.

path Set PATH env ironment v ariabl e for executabl e fil es. pause Used to stop processing of a batch fil e. pathping Latency and Packet l oss info for each node in the network path. Are you a developer? Try out the HTML to PDF API pdfcrowd.O – Windows CMD Commands O Description openfil es Queries or displ ays open fil es. P – Windows CMD Commands open in browser PRO version P Description pagefil econfig Displ ay and configure V irtual memory settings. perfmon Access performance monitor in CMD perms Displ ay a user\’s ACL permissions for a fil e. pbadmin Starts Phone Book Administrator pentnt Detect Fl oating Point Div ision error in the Pentium chip.com .

Are you a developer? Try out the HTML to PDF API pdfcrowd. prompt Used to change the Prompt in CMD. prnqctl Cl ear printer queue. prncnfg Used to configure/rename a printing dev ice. displ ay/set defaul t printer. prnport open in browser PRO version List/create/del ete TCP printer ports. print Used to print a text fil e(s) from CMD. generate a crash report during a spike. print a test page. procdump Monitor system for CPU spikes. powercfg Used to configure power settings and know battery heal th.ping Test network connection to a computer.com . prnjobs List/pause/resume/cancel print jobs. prnmngr List/add/del ete printers. printbrm For backup/recov ery/migration of the print queue. popd Go to the l atest path/fol der stored by PUSHD command portqry Displ ay TCP and UDP port status. prndrv r List/add/del ete printer driv ers. displ ay/change port configuration.

pskil l Kil l a process(es) using its name or process ID. pushd Change current fol der and store prev ious fol der for use by POPD. psserv ice Displ ay and control serv ices on a machine. cl ose an open fil e. psl ist Displ ay process status and info about activ e processes. psfil e Displ ay remotel y opened fil es. psl ogl ist Displ ay ev ent l og records. pspasswd Used to change account password.com . Q – Windows CMD Commands open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd. psinfo List system information about a l ocal /remote machine. psl oggedon See activ e users on machine. pssuspend Used to suspend a process on a l ocal or remote computer. psshutdown Shutdown/restart/l ogoff/l ock a l ocal or remote machine.psexec Run a CMD process on a remote computer. psping Used to measure network performance.

Are you a developer? Try out the HTML to PDF API pdfcrowd. Q Description qgrep Search fil e(s) for a giv en string pattern. recov er Recov er readabl e data from a defectiv e disk. R – Windows CMD Commands open in browser PRO version R Description rasdial Displ ay Remote Access Serv ice Status.query termserver or qappsrvList all terminal servers and RD Session host servers on the network.query session or qwinstaDisplay user session info on Terminal server or RD session host. rcp Copy fil es to a computer running remote shel l serv ice.query user or quserDisplay user session info on a terminal server or RD session host server. query process or qprocess Displ ay information about processes. rasphone Manage RAS connections.com .

regedit Import/export/del ete settings from a . rem Add comments in batch fil e. reset session Used to reset a remote desktop session. regsv r32 Used to register/unregister a DLL fil e. rmtshare Manage fil e and printer shares l ocal or remote serv ers. robocopy Used to copy fil es and fol ders that hav e changed. rd Used to del ete a fol der(s). route Try out the HTML to PDF API Are you a developer? Displ ay/change the l ocal IP routing tabl e. CSV .reg text fil e. rel og Export performance counters to other formats l ike TSV . repl ace Used to repl ace a fil e with another fil e of same name. ren Used to rename a fil e(s). SQL. regini Used to change registry permissions. rexec Run commands on remote machines running Rexec serv ice. rmdir Used to del ete a fol der(s).com . pdfcrowd.open in browser PRO version reg Displ ay/add/change registry keys and v al ues in Windows registry.

rsm Manage media resources using Remov abl e storage. setl ocal Control v isibil ity of env ironment v ariabl es in a batch fil e. runas Run a program as a different user.com . setspn Manage Serv ice Principal Names for an Activ e Directory serv ice account. Are you a developer? Try out the HTML to PDF API pdfcrowd. set Displ ay/set/remov e env ironment v ariabl es in CMD.route Displ ay/change the l ocal IP routing tabl e. S – Windows CMD Commands open in browser PRO version S Description sc Use Serv ice Control l er to manage Windows serv ices. rundl l 32 Used to run a DLL program. secedit Configure system security. schtasks Schedul e command(s) to run at a specific time. rsh Run commands on remote serv ers running RSH serv ice. setx Set Env ironment V ariabl es permanentl y.

open in browser PRO version sfc System Fil e Checker share List/edit a fil e share or print on any computer. sl mgr Software Licensing Management tool for activ ation and KMS. subinacl Displ ay/modify ACEs for fil e and fol der permissions.com . shel l runas Used to run a command as a different user. sort Used to sort and displ ay a redirected or piped input. subst Associate a path with a driv e l etter. shift Change the position of the batch parameters in a batch fil e. start Start a program. sl eep Put computer to sl eep for specified number of seconds. shutdown Shutdown the computer. shortcut Create a Windows shortcut. or batch fil e. strings Find ANSI and UNICODE strings in binary fil es. sysmon Monitor and l og system activ ity to Windows ev ent l og. systeminfo Displ ay detail ed configuration information about the computer. Are you a developer? Try out the HTML to PDF API pdfcrowd. command.

tftp Transfer fil es to and from a remote machine running TFTP protocol .com . T – Windows CMD Commands open in browser PRO version T Description takeown Used to take the ownership of a fil e. tcmsetup Enabl e/disabl e TAPI cl ient. titl e Change touch Change fil e timestamps. Are you a developer? Try out the HTML to PDF API pdfcrowd. tracerpt Process ev ent trace l ogs and generate trace anal ysis report. timeout Del ay a batch fil e execution for specified seconds. tel net Communicate with a remote machine using TELNET protocol . taskl ist Displ ay a l ist of running apps and serv ices.systeminfo Displ ay detail ed configuration information about the computer. taskkil l Used to terminate on or more running processes. time Displ ay/change system time.

tsdiscon Terminate a remote desktop connection. V – Windows CMD Commands open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd. tssutdn Shutdown/reboot a terminal serv er remotel y.tracert Trace route to a remote host by sending ICMP request messages. tree Displ ay a fol der structure in the form of a graphical tree. tzutil Time Zone Util ity. type Show contents of a text fil e.com . typeperf Write performance data to a CMD window or a l og fil e. U – Windows CMD Commands U unl odctr Description Remov e performance counter names and expl ain text for a serv ice from the registry. tskil l Terminate a running process on a RD Session Host serv er.

windiff Compare contents of two fil es or sets of fil es. where Find and displ ay fil e(s) in the current directory. v erify V erify whether fil es are sav ed correctl y on the disk. v ssadmin Show shadow copy backups. Are you a developer? Try out the HTML to PDF API pdfcrowd. v ol Show disk v ol ume l abel and serial number.com .V Descrption v er Show v ersion number of instal l ed OS. W – Windows CMD Commands open in browser PRO version W Description w32tm Access Windows Time Serv ice Util ity waitfor Used to synchronise ev ents between networked computer(s). instal l ed shadow copy writers and prov iders. whoami Displ ay information about the activ e user. wev tutil Retriev e information about ev ent l ogs and publ ishers.

This was the ultimate A-Z List of Windows CMD Commands which has been created with the inputs from SS64 and TechNet. A lot of attention has been paid while preparing it but if you find any discrepancy. open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd. xcopy Copy fil es or directory trees to another fol der. wmic Windows Management Instrumentation Command.com . wuaucl t Windows Update Agent to downl oad new update fil es. feel free to notify.winrm Windows Remote Management. X – Windows CMD Commands X Description xcal cs Change ACLs for fil es and fol ders. winrs Windows Remote Shel l .

discrepancy. Also Read: 32-Bit Vs 64-Bit Windows OS: What Is The Difference? How To Choose? FROM AROUND THE WEB open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com . feel free to notify. Did you find this helpful? Tell us in the comments below.

35+ Perfectly T imed Photos T hat Almost Broke T he Internet Smart W eb User Apprev iew s Magazine W eb Life Adv ice Auto Ov erload So Simple ...com Guide to W ebsite Speed Optimization Recommended by Tags: cmd w indow s cmd.exe command line interpreter W indow s CMD Commands command line refrences Command Prompt Microsoft W indow s NT Aditya Tiwari An engineer (almost) turned tech writer who also makes occasional food trips and open in browser PROversion Are you a developer? Try out the HTML to PDF API pdfcrowd.techbitbox.com .Do T his Before Y ou T urn On Y our Computer Why T his Addictive MMO Strategy Game is a Must-Play Do T his Every T ime Y ou Use Y our Computer.3 Clicks and Y our Window s Will Work Like a New T he Story Behind MeUndies. a Viral Underw ear Brand People| Love Medium MeUndies Which Programming Language Should Y ou Learn? A Beginner’s Guide to Website Speed Optimization Dice Insights Comments on: A Beginner’s w w w .

Like · Reply · 3 hrs Facebook Comments Plugin open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.... Byron Smith If I'm not mistaken. ALL DEALS  2 Comments Add a comment. likes house music. aditya.com  LATEST DEALS FROM FOSSBYTES. Feel free to connect. qgrep for instance doesn't get recognized on my win7 machine.tiwari@fossbytes. Austria It's helpful but it would be more valuable if you could tag it with the supported OS .. Like · Reply · 11 hrs Norbs Ha · Graz... the "associat" command should be "assoc" (at least it is on Windows 10).com .

com .ABOUT MORE FROM FOSSBYTES  About Us  Adv ertise With Us  Contact Us  fossBytes Team  Priv acy Policy  Rev iew Guidelines      open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.

© Fossbytes 1.8K S HA RE S open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com .