List of DOS Commands and its’ Uses

3457

Command Prompt or CMD is a command line interpreter of operating system Windows family which is made by Microsoft Corporation. In this article, I have tried to curate final A to Z Windows command list of Windows CMD command. In this command list, both internal and external commands of command prompt have been included.

In the case of Windows operating system, most of the users are not concerned to know far about Command Prompt or cmd.exe or DOS (Disk Operating System). Though almost every people know that it is a software of inbuilt black screen which is used to solve Windows problem sometimes. For example, when one user has one corrupt pen drive. On the other side, Linux users are much familiar with the command line utility and it is a part of their daily computer use.

CMD is command line interpreter, one program has been designed in it through which users given hand-writing can understand, from a text file or through anything—in Windows NT family. It is the modern edition of COMMAND.COM which was in command line default shell of DOS operating system and Windows 9x family.

Command prompt of Windows NT – Windows XP, 7, 8, 8.1, 10 are so efficient like Linux command line. Using several commands, you will work wanted work which you can do in graphical user interface (GUI) generally.

How to open Command Prompt (DOS) in Windows?

Typing “cmd” in the search bar of the Start menu, you can open Windows Command Prompt. And, pressing Win+R button, opening “RUN“, writing there “cmd“, giving enter you can also open Windows Command Prompt.

command prompt

or

You may also Right click on the start button (of Windows 7 or later version) to get the “Command Prompt (Admin)” option.

command prompt admin

Are commands case sensitive?

Linux command used in Windows Command Prompt is not case-sensitive, it is not similar like- Linux command line. For example, when you will type dir or DIR, it is the same thing. But different command, several options may be case-sensitive.

The A to Z List of Windows CMD commands:

Here I have made A to Z list of CMD by searching several blogs. I hope it will be useful for you. If you get habituated once by using this command, then you can able to solve your work much faster without the use of normal graphical interface (GUI).

Do you know the use of Command Prompt?

If you don’t know, then first open the command prompt window, then type the “Command Name <Space>/?” without quote and tag and press the “Enter” key. See the example below.

command prompt help

N.B: Relevant service or Suitable windows edition may require for working some commands correctly.

Here are the list of DOS Commands

A

  1. addusers – It is used for users list and adding that in CSV file.
  2. admodcmd– It is used for changing bulk contents in an active directory.
  3. arp – Address Resolution Protocol is used for mapping between hardware address and IP address.
  4. assoc – It is used for changing added value for file extension.
  5. associat – 1st step of file association.
  6. at – It is used for running one command in a particular time.
  7. atmadm – It is used to show connection information of ATM adaptor.
  8. attrib – It is used for changing file attributes.

B

  1. bcdboot – It is used to create and repair system partition.
  2. bcdedit – It is used to manage boot configuration data.
  3. bitsadmin – It is used for managing Background Intelligent Transfer Service (BITS).
  4. bootcfg – It is used for editing boot configuration in windows.
  5. break –  It is used to make disable Enable/Disable capability (Ctrl + C)  in CMD.

C

  1. cacls – It is used to change file permission.
  2. call – It is used to call other batch from one batch program.
  3. certreq – It is used to apply certificate from certificate authority.
  4. certutil – It is used to lead file and service of Certification Authority.
  5. cd– It is used to change folder (directory) or to go in a particular folder.
  6. change – It is used for changing terminal service.
  7. chcp – It is used to show active console code page number.
  8. chdir – It is like cd command.
  9. chkdsk – It is used to check and repair disk’s problem.
  10. chkntfs – It is used to check NTFS file system.
  11. choice – It is used to accept user input through keyboard in a batch file.
  12. cipher – It is used to encrypt/decrypt file and folder.
  13. cleanmgr – It is used to clean temp files and recycle bin automatically.
  14. Clip – It is used for copying any type of result of command in windows clipboard.
  15. cls – It is used to clear CMD.
  16. screencmd – It is sued for starting new CMD shell.
  17. cmdkey – It is used for managing stored usernames and passwords.
  18. cmstp – It is used to install or delete connection manager service profile.
  19. color– It is used for changing CMD shell by using option.
  20. Comp– It is used for comparing the subjects of two files.
  21. compact– It is used to compress file and folder of NTFS partition.
  22. compress – It is used to compress one or several file.
  23. convert – It is used for converting in NTFS partition from FAT.
  24. copy – It is used for copying one or several files in any other place.
  25. coreinfo – It is used to show map between logical and physical processor.
  26. cprofile – It is used to clear particular profile of wasted space and disabled user-specific file association.
  27. cscmd – It is used to configure offline file in client computer.
  28. csvde– It is used to import or export active directory information.

D

  1. date– It is used to show date or to change it.
  2. defrag – It is used to defragment system hard drive.
  3. del– It is used to delete files.
  4. delprof – It is used to delete user profile.
  5. deltree – It is used to delete folder and its sub-folder.
  6. devcon – It is used to access command line device manager utility.
  7. dir– It is used to show file and folder list.
  8. dirquota – It is used to lead File Server Resource Manager (FSRM).
  9. diruse – It is used to show usage of disk.
  10. diskcomp – It is used to compare subject of two floppy disk.
  11. diskcopy – It is used to copy one floppy disk data in another floppy disk.
  12. diskpart – It is used to change storage partition (both internal and connected).
  13. diskshadow – It is used to access disk shadow copy service.
  14. diskuse– It is used to see rest place in folders.
  15. doskey – It is used to execute command line, rejecting command and to make macro.
  16. driverquery – It is used for showing a list of installed device driver.
  17. dsacls – It is used for controlling access of object execution in active directory.
  18. dsadd – It is used for adding any object in active directory.
  19. dsget – It is used for showing object in active directory.
  20. dsquery – It is used to find object in active directory.
  21. dsmod – It is used to modify thing in active directory.
  22. dsmove – It is used to rename or move object in active directory.
  23. dsrm – It is used to delete object from active directory.
  24. dsmgmt – It is used to lead Active Directory Lightweight Directory Services.

E

  1. echo – It is used to show message on the screen.
  2. endlocal– It is used to reject ‘localization environment changes’ in a batch file.
  3. erase – It is used to delete one or several file.
  4. eventcreate – It is used to add custom event in Windows event log (Require admin rights).
  5. eventquerry – It is used to show the list of events and events properties from events log.
  6. eventtriggers – It is used to show configure event trigger in local and remote machine.
  7. exit– It is used to exit from the command line (to quit present batch script).
  8. expand– It is used to uncompress one or more .CAB file.
  9. explorer – It is used to open Windows Explorer.
  10. extract – It is used to uncompress one or several windows cabinet file.

F

  1. fcused – It is used to compare two files.
  2. find – It is used to search a particular text string in a file.
  3. findstr – It is used to search string pattern in a file.
  4. finger – It is used to show information about particular remote computer users.
  5. flattemp – It is used to enable/disable flat temporary folder.
  6. For – It is used to run a file in a loop for defined parameter.
  7. forfiles – It is used to process selected batch file.
  8. format – It is used to format disk.
  9. freedisk – It is used to check free space of disk.
  10. fsutil – It is used to lead File system utility, properties of file and drive.
  11. ftp – It is used for transferring file in another PC from one PC in FTP service.
  12. ftype – It is used to Display/ Modify file extension type associations.

G

  1. getmac – It is used to know MAC address of your network adaptor.
  2. goto – It is used to instruct a line identified from a batch program with help of label.
  3. gpresult – It is used to show users Group Policy Settings and Resultant Set of policy.
  4. gpupdate – It is used for updating local and active directory based on group policy settings.
  5. graftabl – It is used to launch power of showing enhanced letter in graphics mood.

H

  1. help – It is used for seeing their online information and command list display.
  2. hostname – It is used to show computer hostname.

I

  1. icacls – It is used to change permissions of file and folder.
  2. iexpress – It is used to make self-extracting zip archive.
  3. if – It is used to process conditional in batch program.
  4. ifmember – It is used to show one active users groups.
  5. inuse – It is used to replace what file in present OS has used (restart required).
  6. ipconfig – It is possible to show and change Windows IP configuration.
  7. ipseccmd – It is used to configure IP Security rule.
  8. ipxroute – It is used show and modify routing table information which is used by IPX protocol.
  9. irftp – It is used to send file through infrared link (infrared functionality required).

K

  1. label – It is used to change disk’s name.
  2. lodctr – It is used to update registry value with the last performance counter.
  3. logman – It is used to lead performance monitor log.
  4. logoff – It is used to log off for users.
  5. logtime – It is used to add date, time and one message in a text file.
  6. lpq – It is used for showing print cue situation.
  7. lpr – It is used to send file in Line Printer Daemon running computer.

K

  1. macfile – It is used to lead file server of Mackintosh.
  2. makecab – It is used to make .cab file.
  3. mapisend – It is used to send email from command line.
  4. mbsacli – Microsoft Baseline Security Analyser.
  5. mbsacli – It is used to analyse Microsoft Baseline Security.
  6. mem – It is used for showing memory usage.
  7. md – It is used to make directory and sub-directory.
  8. mkdir – It is also used to make directory and sub-directory.
  9. mklink – It is used to make symbolic link in directory.
  10. mmc – It is used for accessing Microsoft Management Console.
  11. mode – It is used to configure COM, LPT, CON system.
  12. more– It is used to show output in one screen in one time.
  13. mountvol – It is used to make volume mount point, list and delete that.
  14. move – It is used for transferring file in another folder from one folder.
  15. moveuser – It is used to remove account in a domain or machine user.
  16. msg – It is used to send a pop-up message to user.
  17. msiexec – It is used to install, modify, configure by using Windows installer.
  18. msinfo32 – It is used for showing system information.
  19. mstsc – It is used to make remote desktop connection.

N

  1. nbstat – It is used to show NetBIOS based information on TCP/IP.
  2. Net– It is used to lead network resources and service.
  3. netdom – It is used to utility network domain manager.
  4. netsh– It is used to show or change network configuration.
  5. netstat – It is used to show active TCP/IP connection.
  6. nlsinfo – It is used for showing local information.
  7. nltest – It is used to make domain controller’s list and to shut down force remote etc.
  8. now – It is used for showing date and time.
  9. nslookup – It is used for checking IP address of name server.
  10. ntbackup – It is used to backup in tape from data by CMD or batch file.
  11. ntcmdprompt – It is used to run cmd.exe instead of command.exe in MS-DOS application.
  12. ntdsutil – It is used to lead Active Directory Domain Services.
  13. ntrights – It is used to execute users account privileges.
  14. ntsd – It is used for just system developer.
  15. nvspbind – It is used to change network binding.

O

  1. openfiles – It is used to query or open showing file.

P

  1. pagefileconfig – It is used to configure virtual memory settings showing.
  2. path– It is used to set PATH environment variable for executable file.
  3. pathping– It is used for latency and packet loss information in each node of network path.
  4. pause – It is used for closing a batch file processing.
  5. pbadmin – It is used to start ‘Phone Book Administrator’.
  6. pentnt– It is used to identify Floating Point Division fault in Pentium chip.
  7. perfmon – It is used to monitor performance in CMD.
  8. perms– It is used for showing users ACL permission for file.
  9. ping– It is used for tasting network connection of computer.
  10. popd– It is used for going to stored latest path/folder in PUSHD command.
  11. portqry– It is used for showing TCP and UDP port’s condition.
  12. powercfg – It is used to configure power settings and to know the battery condition.
  13. print – It is used to print text file from CMD.
  14. printbrm – It is used to queue backup/recovery/migration print.
  15. prncnfg – It is used to configure/rename printing devices.
  16. prndrvr – It is used to make list/add/delete printer driver.
  17. prnjobs – It is used to make list/pause/ resume/cancel print’s work.
  18. prnmngr – It is used to make List/add/delete printer, to display/set default printer.
  19. prnport – It is used to make List/create/delete TCP printer port, to display/change port configuration.
  20. prnqctl – It is used to clear printer queue, to print test page.
  21. procdump – It is used to monitor system for CPU’s spike, to generate crash report at the time of a spike.
  22. prompt – It is used to change prompt in CMD.
  23. psexec – It is used to process a CMD in remote computer.
  24. psfile – It is used to show opened file in remote computer, to close opened file.
  25. psinfo – It is used for information list of local/remote machine system.
  26. pskill – It is used for closing a processing work by its name or ID.
  27. pslist – It is used to know about condition and information of active process.
  28. psloggedon – It is used to show active users in machine.
  29. psloglist – It is used for showing event log record.
  30. pspasswd – It is used for changing account’s password.
  31. psping – It is used to measure work ability of network.
  32. psservice – It is used to check control process of a machine.
  33. psshutdown – It is used to Shutdown/restart/logoff/lock local or remote machine.
  34. pssuspend – It is used to postpone the process of local/remote computer.
  35. pushd – It is used to change present folder used by POPD and preserve in the next folder.

Q

  1. query session or qwinsta – It is used to show user session info in terminal server or RD session host.
  2. query termserver or qappsrv– It is used for making list all terminal servers and RD session host server which are situated in network.
  3. query user or quser –   It is used for showing user session information in Terminal server or RD session host server.
  4. qgrep – It is used to search file for string pattern.
  5. query – It is used to process or quee process information about process.

R

  1. rasdial – It is used to show Remote Access Service Status.
  2. rasphone – It is used to lead RAS connection.
  3. rcp– It is used to copy file in a running computer in remote shell service.
  4. recover – It is used to recovery readable data from faultiness disk.
  5. reg  – It is used to display/add/change that what is windows registry and the value of windows registry.
  6. regedit – It is used to delete/Import/export  setting from .reg text file.
  7. regsvr32 – It is used to register/unregister DLL file.
  8. regini – It is used to change registry permission.
  9. relog – It is used to export performance counter from others format like TSV, CSV, SQL.
  10. rem– It is used to add comment in batch file.
  11. ren– It is used to rename file.
  12. replace– It is used to replace other file with same name files.
  13. resetsession– It is used to reset a remote desktop session.
  14. rexec – It is used to run command on Rexec service running remote machine.
  15. rd– It is used to delete folder.
  16. rmdir– It is also used to delete folder.
  17. rmtshare – It is used to lead local or remote server file and printer share.
  18. robocopy – It is used to copy next folder or file.
  19. route – It is used to show/change local IP routing table.
  20. rsh– It is used for running command in running remote server of RSH service.
  21. rsm– It is used to lead media resource through removable storage.
  22. runas– It is used to lead a program as several users.
  23. rundll32– It is used to run DLL program.

S

  1. sc– It is used for using service controller to lead windows service.
  2. schtasks – It is used for running schedule command in a particular time.
  3. secedit – Configure system security.
  4. Secedit– It is used to configure system security.
  5. set– It is used to display/set/remove environment variable in CMD.
  6. setlocal – It is used for controlling environment variable visibility in a batch file.
  7. setspn – It is used to lead Active Directory service account of service principle name.
  8. setx – It is used for setting environment variable permanently.
  9. sfc – System File Checker.
  10. sfc – It is used to check system file.
  11. share – It is used to share or print listed/edited file in any other computer.
  12. shellrunas – It is used to apply command as several users.
  13. shift – It is used to change location of batch parameter in a bath file.
  14. shortcut – It is used to make windows shortcut.
  15. shutdown – It is used to shutdown/close computer.
  16. sleep – It is used to make computer sleep for second of particular number.
  17. slmgr – Software Licensing Management tool is used for activation and KMS.
  18. sort– It is used for making sort and showing redirect or pip input.
  19. start – It is used to start one program, command or batch.
  20. strings – It is used to find ANSI and UNICODE string in binary files.
  21. subinacl – It is used to display/modify ACEs for permission of file and folder.
  22. subst – It is helpful to connect a path with a drive letter.
  23. Sysmon– It is used for logging in monitor and windows event logged system activity.
  24. systeminfo – It is used to show details configuration information about computer.

T

  1. takeown– It is used to take ownership of a file.
  2. taskkill– It is used to close one or several running application.
  3. tasklist– It is used to show a list of running application and service.
  4. tcmsetup – It is used to enable/disable TAP client.
  5. telnet – It is used to communicate with remote machine by using TELNET protocol.
  6. tftp – It is used to transfer file from remote machine in TFTP protocol.
  7. time– It is used to show/change system time.
  8. timeout – It is used for making a batch file late in execution for particular second.
  9. title– It is used to change upper text of CMD window.
  10. touch– It is used to change timestamp of file.
  11. tracerpt– It is used to process event trace logs and to generate trace analyse report.
  12. tracert – It is used to trace route with a faraway host by sending ICMP request message.
  13. tree– It is used for showing folder structure in a shape of graphical tree.
  14. tsdiscon – It is used to close remote desktop connection.
  15. tskill– It is used to close RD session host server running process.
  16. tssutdn– It is used to shutdown/reboot terminal server from faraway.
  17. type– It is used for showing materials of text file.
  18. typeperf– It is used to write performance data in CMD window or a log file.
  19. tzutil– It is used to utility time zone.

U

  1. unlodctr – It is used to remove performance counter name from registry and to express a service text.

V

  1. ver– It is used to see version number of installed operating system.
  2. verify – It is used to check that has file preserved in disk correctly or not.
  3. vol – It is used for showing volume label and serial number of disk.
  4. vssadmin – It is used for showing shadow copy backups, installed shadow copy writers and providers.

W

  1. w32tm – It is used for accessing Windows Time Service Utility.
  2. waitfor – It is used to synchronise event in a network computer.
  3. wevtutil – It is used to resurrect information about event logs and publishers.
  4. where– It is used for searching file in present directory.
  5. whoami – It is used for showing information about active users.
  6. windiff – It is used to compare the subject of two files or file set.
  7. winrm – It is used for managing windows remote.
  8. winrs – It is used for windows remote shell.
  9. wmic – It is used to command windows management instrumentation.
  10. wuauclt – It is used for downloading new update file.

X

  1. xcalcs – It is used to change ACLs for file and folder.
  2. xcopy– It is used to copy file or directory tree in another folder.

This ultimate Windows A-Z command list which has been made with the reference of SS64 and TechNet. I have made it by doing very hard work. But there may be the mistake in it in many times for lack of attention. But if you find any incompatibility then you can say in the following comment section without hesitation.

Thank You!

Biswajit Das
"If no one responds to your call, then go your own way alone". Open thy mind thy mind walk alone walk alone We not afraid, walk alone Open thy mind, walk alone. ---------------------------------------- A clear rejection is always better than a fake promise.