Complete list of CMD commands for Windows 10, 8, 7, Vista, and XP

The command shell is a software program that provides direct communication between the user and the operating system. The command prompt in Windows 10 provides access to over 300 commands! They can perform certain operating system tasks from the command-line interface, rather than the common graphical window interface.

  • CMD commands or Command Prompt commands: Windows 10, 8, 7, Vista, and XP
  • DOS commands: Windows 98/95 and MS-DOS

You can use the Command Prompt Windows 10 to create and edit scripts to automate and quickly perform common tasks. For example, you can create a simple script in a batch (.bat) file to automatically back up important data. Below is a complete list of Command Prompt commands, often called CMD commands in Windows.

Applies to

  • Windows Server (Semi-Annual Channel)
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2012
  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows 10
  • Windows 8.1
  • Windows 8
  • Windows 7
  • Windows Vista
  • Windows XP
  • Windows 98/95

Full Windows 10 CMD Commands List (Command Prompt Commands)

Append

The append command can be used to open files in another directory as if they were located in the current directory. This command inherits from MS-DOS. It is available in 32-bit versions of Windows, but not available in 64-bit versions of Windows.

append [[:][;...]] [/x[:on|:off]] [/path:[:on|:off] [/e]
append ;

Arp

The arp command is used to display or change entries in the ARP cache. It is available in all versions of Windows.

arp command

arp command

arp [/a [] [/n ]] [/g [] [-n ]] [/d []] [/s []]

Assoc

The assoc command is used to display or change the file type associated with a particular file extension. This command is available in Windows 8, 7, Vista, and XP, but has been removed in Windows 10.

ASSOC command

ASSOC command

assoc [<.ext>[=[]]]

At

The at command is used to schedule commands to run at a specific date and time. This command is available in Windows 7, Vista, and XP. After Windows 8 and 10, use the schtasks command instead.

at [\\computername] [[id] [/delete] | /delete [/yes]]
at [\\computername]

Atmadm

The atmadm command is used to display information related to asynchronous transfer mode (ATM) connections on the system. Applies To: Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

atmadm [/c][/a][/s]

Attrib

Displays, sets, or removes attributes assigned to files or directories. If used without parameters, attrib displays attributes of all files in the current directory. This command is available in all versions of Windows, as well as in MS-DOS.

attrib [{+|-}r] [{+|-}a] [{+|-}s] [{+|-}h] [{+|-}i] [:][][] [/s [/d] [/l]]

auditpol

Displays information about and performs functions to manipulate audit policies. Available in Windows 8, 7, and Vista.

Auditpol command []

Bcdboot

Enables you to quickly set up a system partition, or to repair the boot environment located on the system partition. Available in Windows 8 and 7.

bcdboot[/l] [/s]

bcdedit

Boot Configuration Data (BCD) files provide a store that is used to describe boot applications and boot application settings. The objects and elements in the store effectively replace Boot.ini. Available in Windows 10, 8, and 7.

BCDEdit /Command [] [] ...

bdehdcfg

Prepares a hard drive with the partitions necessary for BitLocker Drive Encryption. Most installations of Windows 7 will not need to use this tool because BitLocker setup includes the ability to prepare and repartition drives as required.

bdehdcfg [–driveinfo ] [-target {default|unallocated| shrink| merge}] [–newdriveletter] [–size ] [-quiet]

bootcfg

Configures, queries, or changes Boot.ini file settings. You are not recommended to use this command. Because it serves no real value since boot.ini is not used in Windows 10.

bootcfg [arguments...]

Cipher

Displays or alters the encryption of directories and files on NTFS volumes. If used without parameters, cipher displays the encryption state of the current directory and any files it contains. Available in Windows 10, 8, 7, Vista, and XP.

cipher commands

cipher commands

cipher [/e | /d | /c] [/s:] [/b] [/h] [PathName [...]]
cipher /k
cipher /r: [/smartcard]
cipher /u [/n]
cipher /w:
cipher /x[:efsfile] [FileName]
cipher /y
cipher /adduser [/certhash: | /certfile:] [/s:Directory] [/b] [/h] [PathName [...]]
cipher /removeuser /certhash: [/s:] [/b] [/h] [ [...]]
cipher /rekey [PathName [...]]

driverquery

Enables an administrator to display a list of installed device drivers and their properties. If used without parameters, driverquery runs on the local computer. Available in Windows 10, 8, 7, Vista, and XP.

driverquery cmd

driverquery cmd

driverquery [/s [/u [\] [/p ]]] [/fo {table | list | csv}] [/nh] [/v | /si]

fc

Compares two files or sets of files and displays the differences between them. Available in all versions (32-bit & 64-bit) of Windows OS.

fc cmd

fc cmd

fc /a [/c] [/l] [/lb] [/n] [/off[line]] [/t] [/u] [/w] [/] [:][] [:][]
fc /b [][] [][]

ipconfig

Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. These commands are great if the Windows network troubleshooter chokes, which does happen on occasion.

ipconfig cmd

ipconfig cmd

ipconfig [/allcompartments] [/all] [/renew []] [/release []] [/renew6[]] [/release6 []] [/flushdns] [/displaydns] [/registerdns] [/showclassid ] [/setclassid []]

netstat

Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols). Entering the command “netstat -an” will provide you with a list of currently open ports and related IP addresses. This cmd is available in all versions (32-bit & 64-bit) of Windows OS.

netstat cmd

netstat cmd

netstat [-a] [-e] [-n] [-o] [-p ] [-r] [-s] []

ping

The ping command verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) echo Request messages. The ping command is available in all versions of Windows.

ping cmd

ping cmd

ping [/t] [/a] [/n ] [/l ] [/f] [/I ] [/v ] [/r ] [/s ] [{/j | /k }] [/w ] [/R] [/S ] [/4] [/6]

For more Windows Commands, go to Microsoft Docs page…

Full Version Windows 10 Product Keys 64-bit for You – Keep Updating