Windows cmd commands list

Командная строка Windows (CMD) — мощный инструмент, который предоставляет доступ к широкому набору команд для выполнения различных задач, от работы с файлами до настройки сети и автоматизации процессов.  В статье рассмотрим 100 популярных команд CMD, которые пригодятся как новичкам, так и опытным пользователям. Для удобства они разделены по категориям. 

Шпаргалка по CMD командам в Windows | 100 популярных команд

Разделы

  • Общие команды CMD
  • Сетевые команды CMD
  • Команды для управления процессами
  • Команды для управления файловой системой
  • Команды для управления пользователями
  • Команды для управления безопасностью
  • Команды для диагностики и устранения неполадок
  • Команды для скриптинга и автоматизации
  • Команды для управления сетевыми подключениями
  • Команды для управления печатью
  • Дополнительные команды в Windows

Общие команды командной строки (CMD) позволяют пользователям управлять ОС Windows через интерфейс командной строки. Они нацелены на различные задачи – от получения справочной информации до управления процессами. 

  • hel выводит список всех доступных команд и их краткое описание, что полезно для получения информации о базовых командах.
  • cls очищает экран командной строки. Если в окне CMD много текста, этой командой можно убрать весь вывод и начать работу «с чистого листа».
  • exit завершает текущую сессию командной строки и закрывает окно CMD.
  • echo выводит сообщения в консоль или включает/выключает отображение команд в пакетных файлах – echo Hello, World! выведет Hello, World! на экран.
  • ver отображает версию операционной системы Windows.
  • title изменяет заголовок окна командной строки. Например, title Моя Командная Строка изменит заголовок на «Моя Командная Строка».
  • pause временно приостанавливает выполнение скрипта, но при нажатии любой клавиши можно продолжить работу.
  • date позволяет узнать или изменить текущую дату в системе.
  • time отображает или изменяет текущее время в системе.
  • tasklist выводит список всех запущенных процессов с их PID (идентификатором процесса).
  • powercfg — управляет настройками энергопотребления и профилями питания. 
  • fc — сравнивает два файла и отображает их различия. 

Сетевые команды CMD

В разделе собраны основные сетевые команды CMD, которые помогут управлять подключениями, диагностировать сетевые проблемы и выполнять разнообразные операции с сетью. Они незаменимы для системных администраторов и пользователей, нуждающихся в решении сетевых задач. 

  • ping проверяет связь с удаленным узлом, отправляя ему пакеты данных. Например, ping google.com проверит доступность сервера Google.
  • ipconfig отображает конфигурацию сетевых интерфейсов системы (IP-адреса, маску подсети и шлюзы).
  • netstat выводит информацию о сетевых соединениях и открытых портах
  • netstat -an показывает все активные соединения.
  • tracert отслеживает маршрут пакета до целевого узла – tracert yandex.ru покажет все узлы, через которые проходит запрос.
  • nslookup используется для проверки информации о DNS-серверах.
  • nslookup example.com отображает IP-адрес сайта example.com.
  • arp выводит или изменяет записи ARP (Address Resolution Protocol) –: arp -a покажет текущие записи ARP.
  • route управляет таблицей маршрутизации сети – route print выведет все существующие маршруты в системе.
  • net use подключает сетевые диски. Например, net use Z: \\server\folder подключит сетевой ресурс как диск Z:.
  • netsh позволяет настраивать различные параметры сети через командную строку.
  • netsh wlan show profiles отображает сохраненные профили Wi-Fi.

Команды для управления процессами

Команды ниже позволяют эффективно управлять процессами и службами на вашем ПК: помогают запускать службы, планировать задачи, управлять активными процессами, а также выключать или перезагружать систему. С их помощью можно автоматизировать выполнение задач, получать информацию о состоянии системы и контролировать её работоспособность. 

  • sc управляет службами Windows. Пример: sc start servicename запустит службу с именем servicename.
  • schtasks управляет планировщиком задач. Так, schtasks /create /tn «Моя Задача» /tr notepad.exe /sc once /st 12:00 создаст задачу для запуска.
  • start запускает программу или команду в новом окне. Например, start notepad откроет блокнот.
  • wmic взаимодействует с системой через Windows Management Instrumentation – wmic process list brief покажет список процессов.
  • shutdown выключает, перезагружает или завершает работу системы. Так, shutdown /s /f /t 0 немедленно выключит компьютер.
  • systeminfo выводит информацию о системе, включая версию Windows, параметры оборудования и установленные обновления.

Команды для управления файловой системой

Команды для управления файловой системой в CMD позволяют работать с файлами и папками: просматривать содержимое директорий, перемещаться между папками, создавать и удалять файлы и каталоги, копировать данные с использованием различных опций. 

  • dir отображает список файлов и каталогов в указанной директории. Пример: dir C:\Windows выведет содержимое папки Windows.
  • cd меняет текущий каталог. Так, cd C:\Users перейдет в папку пользователей.
  • md NewFolder создает новую папку. 
  • rd удаляет пустую папку. Пример: rd NewFolder удалит папку NewFolder.
  • copy копирует файлы из одного места в другое.
  • move перемещает файлы или папки.
  • del удаляет файлы. Например, del file.txt удалит файл file.txt.
  • xcopy копирует файлы и директории, включая их структуру. Так, xcopy C:\Source D:\Destination /s /e скопирует все файлы и папки из Source в Destination.
  • robocopy более продвинутая версия xcopy, используется для надежного копирования данных. Например, robocopy C:\Source D:\Destination /mir синхронизирует две папки.

Команды для управления пользователями

Команды для управления пользователями предоставляют средства для администрирования учетных записей, настройки групповых прав и управления политиками безопасности. А также позволяют администраторам эффективно управлять пользователями в системе, добавлять новых пользователей, изменять их права и настраивать параметры учетных записей.

  • net user управляет учетными записями пользователей.
  • net user UserName /add добавляет нового пользователя с именем UserName.
  • net localgroup управляет локальными группами пользователей.
  • net localgroup Administrators UserName /add добавляет пользователя в группу администраторов.
  • whoami выводит имя текущего пользователя и информацию о его правах.
  • runas позволяет запускать программы от имени другого пользователя. Так, runas /user:administrator cmd запустит CMD с правами администратора.
  • net accounts управляет параметрами учетных записей, например, минимальной длиной пароля и периодом его действия.
  • gpupdate — обновляет групповые политики на локальном компьютере, что полезно для администраторов, управляемых сетей.
  • taskview — открывает таймлайн Windows, показывая историю активности пользователя, полезно для управления и поиска ранее использованных файлов и приложений.
  • msg отправляет сообщение пользователям, подключенным к системе. Пример: msg «Система будет перезагружена через 5 минут» отправит сообщение всем пользователям.

Команды для управления безопасностью

Команды для управления безопасностью предназначены для обеспечения защиты данных и управления доступом к файлам и системным ресурсам, что позволяет шифровать файлы, проверять целостность системных файлов и управлять правами доступа.

  • cipher управляет шифрованием файлов на дисках NTFS.
  • cipher/e зашифровывает файлы в указанной директории.
  • sfc проверяет целостность системных файлов и автоматически восстанавливает их при обнаружении повреждений.
  • sfc /verifyonly — проверяет системные файлы на наличие повреждений, но не исправляет их автоматически.
  • sfc /scannow выполняет полную проверку системы.
  • cacls изменяет права доступа к файлам. Пример: cacls file.txt /g UserName:F даст пользователю полный доступ к файлу.
  • icacls расширяет возможности команды cacls и предоставляет дополнительные параметры для управления правами доступа.
  • takeown позволяет взять владение файлом или директорией. Так, takeown /f file.txt предоставит доступ к файлам.
  • attrib изменяет атрибуты файлов и папок. Например, attrib +r file.txt сделает файл доступным только для чтения.

Команды для диагностики и устранения неполадок

Команды из раздела помогают находить и устранять неполадки в системе, восстанавливать загрузочные параметры и проверять целостность данных на диске, а также они позволяют решать проблемы, связанные с запуском операционной системы или со сбоями на уровне файловой системы. 

  • chkdsk проверяет диск на наличие ошибок и исправляет их. Так, chkdsk C: /f выполнит проверку диска C.
  • bootrec восстанавливает загрузочный сектор. 
  • bcdedit управляет параметрами загрузки системы. 
  • bcdedit /set {current} safeboot minimal включает безопасный режим.

Команды для скриптинга и автоматизации

Команды, приведенные ниже, предназначены для создания сложных сценариев выполнения команд, что позволяет автоматизировать повседневные задачи и более эффективно управлять процессами. 

  • for создает цикл для выполнения команд. Например, for %i in (1 2 3) do echo %i выведет числа 1, 2, 3.
  • if выполняет условное выполнение команд.
  • goto перенаправляет выполнение скрипта к определенной метке.
  • call вызывает другую команду или скрипт.

Команды для управления сетевыми подключениями

Команды для управления сетевыми подключениями предоставляют возможности для настройки, диагностики и оптимизации сетевых параметров и соединений, позволяя управлять IP-адресами, подключаться и отключаться от сетей.

  • ipconfig /release освобождает текущий IP-адрес, назначенный DHCP сервером, что позволяет при необходимости сбросить сетевое подключение.
  • ipconfig /renew обновляет IP-адрес, полученный от DHCP сервера. Часто используется после команды ipconfig /release для восстановления подключения.
  • ipconfig /flushdns очищает кэш DNS, если изменился DNS-сервер или необходимо устранить проблемы с доступом к сайтам.
  • ipconfig /displaydns выводит содержимое кэша DNS, часто используется для диагностики проблем с DNS.
  • netsh interface ip set address используется для назначения статического IP-адреса сетевому интерфейсу. Пример: netsh interface ip set address Ethernet static 192.168.1.100 255.255.255.0 192.168.1.1.
  • netsh wlan show drivers выводит информацию о драйверах беспроводной сети, что полезно при настройке Wi-Fi подключения.
  • netsh wlan show interfaces отображает текущие активные беспроводные подключения и их параметры, например, мощность сигнала.
  • netsh wlan connect подключает к указанной Wi-Fi сети. Для этого нужно ввести: netsh wlan connect name=MyWiFi.
  • netsh wlan disconnect отключает текущее беспроводное подключение.
  • netsh advfirewall set allprofiles state управляет состоянием брандмауэра Windows – netsh advfirewall set allprofiles state off отключает брандмауэр для всех профилей.
  • netsh int ip reset сбрасывает настройки IP стека (TCP/IP) к значениям по умолчанию, помогая при сетевых неполадках.
  • route add добавляет маршрут в таблицу маршрутизации. Например, route add 192.168.2.0 mask 255.255.255.0 192.168.1.1 добавит маршрут для подсети 192.168.2.0 через шлюз 192.168.1.1.
  • route delete удаляет указанный маршрут из таблицы маршрутизации.
  • netsh interface show interface выводит список всех сетевых интерфейсов в системе, включая их состояние и тип.
  • net view отображает список компьютеров в локальной сети – net view \\server покажет общие ресурсы на указанном сервере.
  • net use /delete удаляет существующее подключение к сетевому ресурсу. Так, net use Z: /delete отключает сетевой диск Z:.
  • ftp открывает FTP-клиент для передачи файлов между локальной и удаленной системами. Например, по команде ftp ftp.example.com ПК подключится к FTP-серверу.
  • telnet используется для подключения к удаленным системам через Telnet-протокол. Так, telnet example.com 23 подключит ПК к серверу на порту 23.
  • getmac выводит MAC-адреса всех сетевых интерфейсов компьютера.

Команды для управления печатью

В этом разделе команды для управления печатью позволяют эффективно управлять процессом печати (включая очередью на печать), настройками принтеров и заданиями на печать. 

  • print отправляет файл на печать. Например, print C:\Documents\file.txt отправит текстовый файл на принтер по умолчанию.
  • rundll32 printui.dll,PrintUIEntry открывает диалоговое окно для установки или управления принтерами – rundll32 printui.dll,PrintUIEntry /in /n\\server\printer установит сетевой принтер.
  • net print отображает список заданий на печать – net print \\server\printer покажет очередь печати на указанном принтере.
  • net stop spooler останавливает службу диспетчера очереди печати (spooler), особенно когда требуется устранить зависшие задания печати.
  • net start spooler запускает службу диспетчера очереди печати после её остановки.
  • wmic printer list brief выводит список установленных принтеров с краткой информацией о каждом из них.
  • wmic printer where default=true get name выводит имя принтера, установленного по умолчанию.
  • wmic printer where name=’PrinterName’ delete удаляет указанный принтер из системы.
  • wmic printerconfig отображает информацию о конфигурации принтера, включая его настройки и параметры печати.
  • cscript prnjobs.vbs используется для управления заданиями печати через скрипт prnjobs.vbs, который можно использовать для удаления, приостановки или возобновления заданий.

Дополнительные команды в Windows

В дополнение к основным инструментам для управления системой, командная строка Windows предоставляет ряд дополнительных команд, которые расширяют возможности администрирования и диагностики. 

  • wevtutil управляет журналами событий Windows. Например, wevtutil qe System выведет события из системного журнала.
  • tzutil управляет настройками часовых поясов. tzutil /s Pacific Standard Time установит часовой пояс на Тихоокеанское стандартное время.
  • taskkill — завершает процесс по его PID или имени. Так, taskkill /F /PID 1234 завершит процесс с PID 1234.
  • powercfg /hibernate off — отключает режим гибернации.
  • powercfg /energy — создает отчет об использовании энергии системой.

Command
Description

Append
The append command can be used by programs to open files in another directory as if they were located in the current directory. The append command is available in MS-DOS as well as in all 32-bit versions of Windows. The append command is not available in 64-bit versions of Windows.

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

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

At
The at command is used to schedule commands and other programs to run at a specific date and time. The at command is available in Windows 7, Windows Vista, and Windows XP. Beginning in Windows 8, command line task scheduling should instead be completed with the schtasks command.

Atmadm
The atmadm command is used to display information related to asynchronous transfer mode (ATM) connections on the system. The atmadm command is available in Windows XP. Support for ATM was removed beginning in Windows Vista, making the atmadm command unnecessary.

Attrib
The attrib command is used to change the attributes of a single file or a directory. The attrib command is available in all versions of Windows, as well as in MS-DOS.

Auditpol
The auditpol command is used to display or change audit policies. The auditpol command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Bcdboot
The bcdboot command is used to copy boot files to the system partition and to create a new system BCD store. The bcdboot command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Bcdedit
The bcdedit command is used to view or make changes to Boot Configuration Data. The bcdedit command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. The bcdedit command replaced the bootcfg command beginning in Windows Vista.

Bdehdcfg
The bdehdcfg command is used to prepare a hard drive for BitLocker Drive Encryption. The bdehdcfg command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Bitsadmin
The bitsadmin command is used to create, manage, and monitor download and upload jobs. The bitsadmin command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. While the bitsadmin command is available in those versions of Windows, it is being phased out—the BITS PowerShell cmdlets should be used instead.

Bootcfg
The bootcfg command is used to build, modify, or view the contents of the boot.ini file, a hidden file that is used to identify in what folder, on which partition, and on which hard drive Windows is located. The bootcfg command is available in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The bootcfg command was replaced by the bcdedit command beginning in Windows Vista. Bootcfg is still available in Windows 10, 8, 7, and Vista, but it serves no real value since boot.ini is not used in these operating systems.

Bootsect
The bootsect command is used to configure the master boot code to one compatible with BOOTMGR (Vista and later) or NTLDR (XP and earlier). The bootsect command is available in Windows 11, Windows 10, and Windows 8. The bootsect command is also available in Windows 7 and Windows Vista but only from the Command Prompt available in System Recovery Options.

Break
The break command sets or clears extended CTRL+C checking on DOS systems. The break command is available in all versions of Windows, as well as in MS-DOS. The break command is available in Windows XP and later versions of Windows to provide compatibility with MS-DOS files but it has no effect in Windows itself.

Cacls
The cacls command is used to display or change access control lists of files. The cacls command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The cacls command is being phased out in favor of the icacls command, which should be used instead in all versions of Windows after Windows XP.

Call
The call command is used to run a script or batch program from within another script or batch program. The call command is available in all versions of Windows, as well as in MS-DOS. The call command has no effect outside of a script or batch file. In other words, running the call command at the Command Prompt or MS-DOS prompt will do nothing.

Cd
The cd command is the shorthand version of the chdir command. The cd command is available in all versions of Windows, as well as in MS-DOS.

Certreq
The certreq command is used to perform various certification authority (CA) certificate functions. The certreq command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Certutil
The certutil command is used to dump and display certification authority (CA) configuration information in addition to other CA functions. The certutil command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Change
The change command changes various terminal server settings like install modes, COM port mappings, and logons. The change command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Chcp
The chcp command displays or configures the active code page number. The chcp command is available in all versions of Windows, as well as in MS-DOS.

Chdir
The chdir command is used to display the drive letter and folder that you are currently in. Chdir can also be used to change the drive and/or directory that you want to work in. The chdir command is available in all versions of Windows, as well as in MS-DOS.

Checknetisolation
The checknetisolation command is used to test apps that require network capabilities. The checknetisolation command is available in Windows 11, Windows 10, and Windows 8.

Chglogon
The chglogon command enables, disables, or drains terminal server session logins. The chglogon command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. Executing the chglogon command is the same as executing change logon.

Chgport
The chgport command can be used to display or change COM port mappings for DOS compatibility. The chgport command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. Executing the chgport command is the same as executing change port.

Chgusr
The chgusr command is used to change the install mode for the terminal server. The chgusr command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. Executing the chgusr command is the same as executing change user.

Chkdsk
The chkdsk command, often referred to as check disk, is used to identify and correct certain hard drive errors. The chkdsk command is available in all versions of Windows, as well as in MS-DOS.

Chkntfs
The chkntfs command is used to configure or display the checking of the disk drive during the Windows boot process. The chkntfs command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Choice
The choice command is used within a script or batch program to provide a list of choices and return the value of that choice to the program. The choice command is available in MS-DOS and all versions of Windows except Windows XP. Use the set command with the /p switch in place of the choice command in batch files and scripts that you plan to use in Windows XP.

Cipher
The cipher command shows or changes the encryption status of files and folders on NTFS partitions. The cipher command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Clip
The clip command is used to redirect the output from any command to the clipboard in Windows. The clip command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Cls
The cls command clears the screen of all previously entered commands and other text. The cls command is available in all versions of Windows, as well as in MS-DOS.

Cmd
The cmd command starts a new instance of the cmd.exe command interpreter. The cmd command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Cmdkey
The cmdkey command is used to show, create, and remove stored user names and passwords. The cmdkey command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Cmstp
The cmstp command installs or uninstalls a Connection Manager service profile. The cmstp command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Color
The color command is used to change the colors of the text and background within the Command Prompt window. The color command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Command
The command command starts a new instance of the command.com command interpreter. The command command is available in MS-DOS as well as in all 32-bit versions of Windows. The command command is not available in 64-bit versions of Windows.

Comp
The comp command is used to compare the contents of two files or sets of files. The comp command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Compact
The compact command is used to show or change the compression state of files and directories on NTFS partitions. The compact command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Convert
The convert command is used to convert FAT or FAT32 formatted volumes to the NTFS format. The convert command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Copy
The copy command does simply that — it copies one or more files from one location to another. The copy command is available in all versions of Windows, as well as in MS-DOS. The xcopy command is considered to be a more «powerful» version of the copy command.

Cscript
The cscript command is used to execute scripts via Microsoft Script Host. The cscript command is available in all versions of Windows. The cscript command is most popularly used to manage printers from the command line using scripts like prncnfg.vbs, prndrvr.vbs, prnmngr.vbs, and others.

Ctty
The ctty command is used to change the default input and output devices for the system. The ctty command is available in Windows 98 and 95 as well as in MS-DOS. The functions provided by the ctty command were no longer necessary beginning in Windows XP because the command.com interpreter (MS-DOS) is no longer the default command line interpreter.

Date
The date command is used to show or change the current date. The date command is available in all versions of Windows, as well as in MS-DOS.

Dblspace
The dblspace command is used to create or configure DoubleSpace compressed drives. The dblspace command is available in Windows 98 and 95, as well as in MS-DOS. DriveSpace, executed using the drvspace command, is an updated version of DoubleSpace. Windows began handling compression beginning in Windows XP.

Debug
The debug command starts Debug, a command line application used to test and edit programs. The debug command is available in MS-DOS as well as in all 32-bit versions of Windows. The debug command is not available in 64-bit versions of Windows.

Defrag
The defrag command is used to defragment a drive you specify. The defrag command is the command line version of Microsoft’s Disk Defragmenter. The defrag command is available in all versions of Windows, as well as in MS-DOS.

Del
The del command is used to delete one or more files. The del command is available in all versions of Windows, as well as in MS-DOS. The del command is the same as the erase command.

Deltree
The deltree command is used to delete a directory and all the files and subdirectories within it. The deltree command is available in Windows 98 and 95, as well as in MS-DOS. Beginning in Windows XP, a folder and its files and subfolders can be removed using the /s function of the rmdir command. Deltree was no longer needed with this new rmdir ability so the command was removed.

Diantz
The diantz command is used to losslessly compress one or more files. The diantz command is sometimes called Cabinet Maker. The diantz command is available in Windows 7, Windows Vista, and Windows XP. The diantz command is the same as the makecab command.

Dir
The dir command is used to display a list of files and folders contained inside the folder that you are currently working in. The dir command also displays other important information like the hard drive’s serial number, the total number of files listed, their combined size, the total amount of free space left on the drive, and more. The dir command is available in all versions of Windows, as well as in MS-DOS.

Diskcomp
The diskcomp command is used to compare the contents of two floppy disks. The diskcomp command is available in all versions of Windows, as well as in MS-DOS, with the exclusion of Windows 11 and Windows 10.

Diskcopy
The diskcopy command is used to copy the entire contents of one floppy disk to another. The diskcopy command is available in all versions of Windows, as well as in MS-DOS, with the exclusion of Windows 11 and Windows 10.

Diskpart
The diskpart command is used to create, manage, and delete hard drive partitions. The diskpart command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The diskpart command replaced the fdisk command beginning in Windows XP.

Diskperf
The diskperf command is used to manage disk performance counters remotely. The diskperf command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Diskraid
The diskraid command starts the DiskRAID tool which is used to manage and configure RAID arrays. The diskraid command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Dism
The dism command starts the Deployment Image Servicing and Management tool (DISM). The DISM tool is used to manage features in Windows images. The dism command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Dispdiag
The dispdiag command is used to output a log of information about the display system. The dispdiag command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Djoin
The djoin command is used to create a new computer account in a domain. The djoin command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Doskey
The doskey command is used to edit command lines, create macros, and recall previously entered commands. The doskey command is available in all versions of Windows, as well as in MS-DOS.

Dosshell
The dosshell command starts DOS Shell, a graphical file management tool for MS-DOS. The dosshell command is available in Windows 95 (in MS-DOS mode) and also in MS-DOS version 6.0 and later MS-DOS versions that were upgraded from previous versions that contained the dosshell command. A graphical file manager, Windows Explorer, became an integrated part of the operating system beginning in Windows 95.

Dosx
The dosx command is used to start DOS Protected Mode Interface (DPMI), a special mode designed to give MS-DOS applications access to more than the normally allowed 640 KB. The dosx command is available in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The dosx command is not available in 64-bit versions of Windows. The dosx command and DPMI is only available in Windows to support older MS-DOS programs.

Driverquery
The driverquery command is used to show a list of all installed drivers. The driverquery command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Drvspace
The drvspace command is used to create or configure DriveSpace compressed drives. The drvspace command is available in Windows 98 and 95, as well as in MS-DOS. DriveSpace is an updated version of DoubleSpace, executed using the dblspace command. Windows began handling compression beginning in Windows XP.

Echo
The echo command is used to show messages, most commonly from within script or batch files. The echo command can also be used to turn the echoing feature on or off. The echo command is available in all versions of Windows, as well as in MS-DOS.

Edit
The edit command starts the MS-DOS Editor tool which is used to create and modify text files. The edit command is available in MS-DOS as well as in all 32-bit versions of Windows. The edit command is not available in 64-bit versions of Windows.

Edlin
The edlin command starts the Edlin tool which is used to create and modify text files from the command line. The edlin command is available in all 32-bit versions of Windows but is not available in 64-bit versions of Windows. In MS-DOS, the edlin command is only available up to MS-DOS 5.0, so unless your later version of MS-DOS was upgraded from 5.0 or prior, you won’t see the edlin command.

Emm386
The emm386 command is used to give MS-DOS access to more than 640 KB of memory (RAM). The emm386 command is available in Windows 98 and 95, as well as in MS-DOS. Windows itself has access to extended and expanded memory beginning in Windows 95.

Endlocal
The endlocal command is used to end the localization of environment changes inside a batch or script file. The endlocal command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Erase
The erase command is used to delete one or more files. The erase command is available in all versions of Windows, as well as in MS-DOS. The erase command is the same as the del command.

Esentutl
The esentutl command is used to manage Extensible Storage Engine databases. The esentutl command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Eventcreate
The eventcreate command is used to create a custom event in an event log. The eventcreate command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Eventtriggers
The eventtriggers command is used to configure and display event triggers. The eventtriggers command is available in Windows XP. Beginning in Windows Vista, event triggers are created using the Attach Task To This Event feature in Event Viewer, making the eventtriggers command unnecessary.

Exe2bin
The exe2bin command is used to convert a file of the EXE file type (executable file) to a binary file. The exe2bin command is available in 32-bit versions of Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The exe2bin command is not available in any 64-bit version of Windows.

Exit
The exit command is used to end the cmd.exe (Windows) or command.com (MS-DOS) session that you’re currently working in. The exit command is available in all versions of Windows, as well as in MS-DOS.

Expand
The expand command is used to extract the files and folders contained in Microsoft Cabinet (CAB) files. The expand command is available in MS-DOS as well as in all versions of Windows. The expand command is not available in the 64-bit version of Windows XP.

Extrac32
The extrac32 command is used to extract the files and folders contained in Microsoft Cabinet (CAB) files. The extrac32 command is available in all versions of Windows. The extrac32 command is actually a CAB extraction program that can extract any Microsoft Cabinet file. Use the expand command instead of the extrac32 command if possible.

Extract
The extract command is used to extract the files and folders contained in Microsoft Cabinet (CAB) files. The extract command is available in Windows 98 and 95. The extract command was replaced by the expand command beginning in Windows XP.

Fasthelp
The fasthelp command provides more detailed information on any of the other MS-DOS commands. The fasthelp command is only available in MS-DOS. The help command replaced the fasthelp command beginning in Windows 95.

Fastopen
The fastopen command is used to add a program’s hard drive location to a special list stored in memory, potentially improving the program’s launch time by removing the need for MS-DOS to locate the application on the drive. The fastopen command is available in MS-DOS as well as in all 32-bit versions of Windows. The fastopen command is not available in 64-bit versions of Windows. Fastopen is only available in Windows 10, Windows 8, 7, Vista, and XP to support older MS-DOS files.

Fc
The fc command is used to compare two individual or sets of files and then show the differences between them. The fc command is available in all versions of Windows, as well as in MS-DOS.

Fdisk
The fdisk command is used to create, manage, and delete hard drive partitions. The fdisk command is available in Windows 98 and 95, as well as in MS-DOS. The fdisk command was replaced by the diskpart command beginning in Windows XP. Partition management is also available from Disk Management in Windows 11, 10, 8, 7, Vista, and XP.

Find
The find command is used to search for a specified text string in one or more files. The find command is available in all versions of Windows, as well as in MS-DOS.

Findstr
The findstr command is used to find text string patterns in one or more files. The findstr command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Finger
The finger command is used to return information about one or more users on a remote computer that’s running the Finger service. The finger command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Fltmc
The fltmc command is used to load, unload, list, and otherwise manage Filter drivers. The fltmc command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Fondue
The fondue command, short for Features on Demand User Experience Tool, is used to install any of the several optional Windows features from the command line. The fondue command is available in Windows 11, Windows 10, and Windows 8. Optional Windows features can also be installed from the Programs and Features applet in Control Panel.

For
The for command is used to run a specified command for each file in a set of files. The for command is most often used within a batch or script file. The for command is available in all versions of Windows, as well as in MS-DOS.

Forcedos
The forcedos command is used to start the specified program in the MS-DOS subsystem. The forcedos command is only available in 32-bit versions of Windows XP. The forcedos command is only used for MS-DOS programs that are not recognized as such by Windows XP.

Forfiles
The forfiles command selects one or more files to execute a specified command on. The forfiles command is most often used within a batch or script file. The forfiles command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Format
The format command is used to format a drive in the file system that you specify. The format command is available in all versions of Windows, as well as in MS-DOS. Drive formatting is also available from Disk Management in Windows 11, 10, 8, 7, Vista, and XP.

Fsutil
The fsutil command is used to perform various FAT and NTFS file system tasks like managing reparse points and sparse files, dismounting a volume, and extending a volume. The fsutil command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Ftp
The ftp command can be used to transfer files to and from another computer. The remote computer must be operating as an FTP server. The ftp command is available in all versions of Windows.

Ftype
The ftype command is used to define a default program to open a specified file type. The ftype command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Getmac
The getmac command is used to display the media access control (MAC) address of all the network controllers on a system. The getmac command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Goto
The goto command is used in a batch or script file to direct the command process to a labeled line in the script. The goto command is available in all versions of Windows, as well as in MS-DOS.

Gpresult
The gpresult command is used to display Group Policy settings. The gpresult command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Gpupdate
The gpupdate command is used to update Group Policy settings. The gpupdate command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Graftabl
The graftabl command is used to enable the ability of Windows to display an extended character set in graphics mode. The graftabl command is available in all versions of Windows and in MS-DOS up to version 5.0. The graftabl command is not available in 64-bit versions of Windows.

Graphics
The graphics command is used to load a program that can print graphics. The graphics command is available in MS-DOS as well as in all 32-bit versions of Windows. The graphics command is not available in 64-bit versions of Windows.

Help
The help command provides more detailed information on any of the other Command Prompt or MS-DOS commands. The help command is available in all versions of Windows, as well as in MS-DOS.

Hostname
The hostname command displays the name of the current host. The hostname command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Hwrcomp
The hwrcomp command is used to compile custom dictionaries for handwriting recognition. The hwrcomp command is available in Windows 8 and Windows 7.

Hwrreg
The hwrreg command is used to install a previously compiled custom dictionary for handwriting recognition. The hwrreg command is available in Windows 8 and Windows 7.

Icacls
The icacls command is used to display or change access control lists of files. The icacls command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. The icacls command is an updated version of the cacls command.

If
The if command is used to perform conditional functions in a batch file. The if command is available in all versions of Windows, as well as in MS-DOS.

Interlnk
The interlnk command is used to connect two computers via a serial or parallel connection to share files and printers. The interlnk command is only available in MS-DOS. The ability to directly connect two computers is handled by the networking functions in all versions of Windows.

Intersvr
The intersvr command is used to start the Interlnk server and to copy Interlnk files from one computer to another. The intersvr command is only available in MS-DOS. The ability to directly connect two computers is handled by the networking functions in all versions of Windows.

Ipconfig
The ipconfig command is used to display detailed IP information for each network adapter utilizing TCP/IP. The ipconfig command can also be used to release and renew IP addresses on systems configured to receive them via a DHCP server. The ipconfig command is available in all versions of Windows.

Ipxroute
The ipxroute command is used to display and change information about IPX routing tables. The ipxroute command is available in Windows XP. Microsoft removed their built-in NetWare client beginning in Windows Vista, removing the associated ipxroute command as well.

Irftp
The irftp command is used to transmit files over an infrared link. The irftp command is available in Windows 8, Windows 7, and Windows Vista.

Iscsicli
The iscsicli command starts the Microsoft iSCSI Initiator, used to manage iSCSI. The iscsicli command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Kb16
The kb16 command is used to support MS-DOS files that need to configure a keyboard for a specific language. The kb16 command is available in Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The kb16 command is not available in 64-bit versions of Windows. The kb16 command replaced the keyb command beginning in Windows XP but only exists to support older MS-DOS files.

Keyb
The keyb command is used to configure a keyboard for a specific language. The keyb command is available in Windows 98 and 95, as well as in MS-DOS. See the kb16 command for an equivalent command in later versions of Windows. Keyboard language settings are handled by the Region and Language or Regional and Language Options (depending on the version of Windows) Control Panel applets in Windows beginning in Windows XP.

Klist
The klist command is used to list Kerberos service tickets. The klist command can also be used to purge Kerberos tickets. The klist command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Ksetup
The ksetup command is used to configure connections to a Kerberos server. The ksetup command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Ktmutil
The ktmutil command starts the Kernel Transaction Manager utility. The ktmutil command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Label
The label command is used to manage the volume label of a disk. The label command is available in all versions of Windows, as well as in MS-DOS.

Lh
The lh command is the shorthand version of the loadhigh command. The lh command is available in Windows 98 and 95, as well as in MS-DOS.

Licensingdiag
The licensingdiag command is a tool used to generate a text-based log and other data files that contain product activation and other Windows licensing information. The licensingdiag command is available in Windows 11, Windows 10, and Windows 8.

Loadfix
The loadfix command is used to load the specified program in the first 64K of memory and then runs the program. The loadfix command is available in MS-DOS as well as in all 32-bit versions of Windows. The loadfix command is not available in 64-bit versions of Windows.

Loadhigh
The loadhigh command is used to load a program into high memory and is usually used from within the autoexec.bat file. The loadhigh command is available in Windows 98 and 95, as well as in MS-DOS. Memory usage is handled automatically beginning in Windows XP.

Lock
The lock command is used to lock a drive, enabling direct disk access for a program. The lock command is only available in Windows 98 and 95. Drive locking is no longer available as of Windows XP.

Lodctr
The lodctr command is used to update registry values related to performance counters. The lodctr command is available in all versions of Windows.

Logman
The logman command is used to create and manage Event Trace Session and Performance logs. The logman command also supports many functions of Performance Monitor. The logman command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Logoff
The logoff command is used to terminate a session. The logoff command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Lpq
The lpq command displays the status of a print queue on a computer running Line Printer Daemon (LPD). The lpq command is available in all versions of Windows. The lpq command is not available by default in Windows 11, 10, 8, 7, or Vista, but can be enabled by turning on the LPD Print Service and LPR Port Monitor features from Programs and Features in Control Panel.

Lpr
The lpr command is used to send a file to a computer running Line Printer Daemon (LPD). The lpr command is available in all versions of Windows. The lpr command is not available by default in Windows 11, 10, 8, 7, or Vista, but can be enabled by turning on the LPD Print Service and LPR Port Monitor features from Programs and Features in Control Panel.

Makecab
The makecab command is used to losslessly compress one or more files. The makecab command is sometimes called Cabinet Maker. The makecab command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The makecab command is the same as the diantz command, a command that was removed after Windows 7.

Manage-bde
The manage-bde command is used to configure BitLocker Drive Encryption from the command line. The manage-bde command is available in Windows 11, Windows 10, Windows 8, and Windows 7. A script by the name of manage-bde.wsf exists in Windows Vista and can be used with the cscript command to perform BitLocker tasks from the command line in that operating system.

Md
The md command is the shorthand version of the mkdir command. The md command is available in all versions of Windows, as well as in MS-DOS.

Mem
The mem command shows information about used and free memory areas and programs that are currently loaded into memory in the MS-DOS subsystem. The mem command is available in MS-DOS as well as in all 32-bit versions of Windows. The mem command is not available in 64-bit versions of Windows.

Memmaker
The memmaker command is used to start MemMaker, a memory optimization tool. The memaker command is available in Windows 98 and 95, as well as in MS-DOS. Memory usage is automatically optimized beginning in Windows XP.

Mkdir
The mkdir command is used to create a new folder. The mkdir command is available in all versions of Windows, as well as in MS-DOS.

Mklink
The mklink command is used to create a symbolic link. The mklink command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Mode
The mode command is used to configure system devices, most often COM and LPT ports. The mode command is available in all versions of Windows, as well as in MS-DOS.

Mofcomp
The mofcomp command properly displays the data within a Managed Object Format (MOF) file. The mofcomp command is available in all versions of Windows.

More
The more command is used to display the information contained in a text file. The more command can also be used to paginate the results of any other Command Prompt or MS-DOS command. The more command is available in all versions of Windows, as well as in MS-DOS.

Mount
The mount command is used to mount Network File System (NFS) network shares. The mount command is available in Windows 7 and Windows Vista. The mount command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The mount command is not available in Windows 11, 10, or 8 because Service for UNIX (SFU) was discontinued.

Mountvol
The mountvol command is used to display, create, or remove volume mount points. The mountvol command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Move
The move command is used to move one or more files from one folder to another. The move command is also used to rename directories. The move command is available in all versions of Windows, as well as in MS-DOS.

Mrinfo
The mrinfo command is used to provide information about a router’s interfaces and neighbors. The mrinfo command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Msav
The msav command starts Microsoft Antivirus. The msav command is only available in MS-DOS. Microsoft Antivirus was designed for MS-DOS and Windows 3.x only. Microsoft provides an optional virus protection suite called Microsoft Security Essentials for Windows XP and later operating systems, and third-party antivirus tools are available for all versions of Windows.

Msbackup
The msbackup command starts Microsoft Backup, a tool used to back up and restore one or more files. The msbackup command is only available in MS-DOS. The msbackup command was replaced with Microsoft Backup beginning in Windows 95 and then Backup and Restore in later versions of Windows.

Mscdex
The mscdex command is used to provide CD-ROM access to MS-DOS. The mscdex command is available in Windows 98 and 95, as well as in MS-DOS. Windows provides access to CD-ROM drives for the MS-DOS subsystem beginning in Windows XP, so the mscdex command is unnecessary in this and later operating systems.

Msd
The msd command starts Microsoft Diagnostics, a system information tool. The msd command is only available in MS-DOS. The msd command was replaced with System Information beginning in Windows 95.

Msg
The msg command is used to send a message to a user. The msg command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Msiexec
The msiexec command is used to start Windows Installer, a tool used to install and configure software. The msiexec command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Muiunattend
The muiunattend command starts the Multilanguage User Interface unattended setup process. The muiunattend command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Nbtstat
The nbtstat command is used to show TCP/IP information and other statistical information about a remote computer. The nbtstat command is available in all versions of Windows.

Net
The net command is used to display, configure, and correct a wide variety of network settings. The net command is available in all versions of Windows.

Net1
The net1 command is used to display, configure, and correct a wide variety of network settings. The net1 command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The net command should be used instead of the net1 command. The net1 command was made available in Windows NT and Windows 2000 as a temporary fix for a Y2K issue that the net command had, which was corrected before the release of Windows XP. The net1 command remains in later versions of Windows only for compatibility with older programs and scripts that utilized the command.

Netcfg
The netcfg command is used to install the Windows Preinstallation Environment (WinPE), a lightweight version of Windows used to deploy workstations. The netcfg command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Netsh
The netsh command is used to start Network Shell, a command-line utility used to manage the network configuration of the local, or a remote, computer. The netsh command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Netstat
The netstat command is most commonly used to display all open network connections and listening ports. The netstat command is available in all versions of Windows.

Nfsadmin
The nfsadmin command is used to manage Server for NFS or Client for NFS from the command line. The nfsadmin command is available in Windows 7 and Windows Vista. The nfsadmin command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The nfsadmin command is not available in Windows 11, 10, or 8 because Service for UNIX (SFU) was discontinued.

Nlsfunc
The nlsfunc command is used to load information specific to a particular country or region. The nlsfunc command is available in MS-DOS as well as in all 32-bit versions of Windows. The nlsfunc command is not available in 64-bit versions of Windows. Nlsfunc is only available in Windows 10, 8, 7, Vista, and XP to support older MS-DOS files.

Nltest
The nltest command is used to test secure channels between Windows computers in a domain and between domain controllers that are trusting other domains. The nltest command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Nslookup
The nslookup is most commonly used to display the hostname of an entered IP address. The nslookup command queries your configured DNS server to discover the IP address. The nslookup command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Ntbackup
The ntbackup command is used to perform various backup functions from the Command Prompt or from within a batch or script file. The ntbackup command is available in Windows XP. The ntbackup command was replaced with the wbadmin beginning in Windows Vista.

Ntsd
The ntsd command is used to perform certain command line debugging tasks. The ntsd command is available in Windows XP. The ntsd command was removed beginning in Windows Vista due to the addition of dump file support in Task Manager.

Ocsetup
The ocsetup command starts the Windows Optional Component Setup tool, used to install additional Windows features. The ocsetup command is available in Windows 8, Windows 7, and Windows Vista. Beginning in Windows 8, Microsoft is depreciating the ocsetup command in favor of the dism command.

Openfiles
The openfiles command is used to display and disconnect open files and folders on a system. The openfiles command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Path
The path command is used to display or set a specific path available to executable files. The path command is available in all versions of Windows, as well as in MS-DOS.

Pathping
The pathping command functions much like the tracert command but will also report information about network latency and loss at each hop. The pathping command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Pause
The pause command is used within a batch or script file to pause the processing of the file. When the pause command is used, a «Press any key to continue…» message displays in the command window. The pause command is available in all versions of Windows, as well as in MS-DOS.

Pentnt
The pentnt command is used to detect floating point division errors in the Intel Pentium chip. The pentnt command is also used to enable floating point emulation and disable floating point hardware. The pentnt command is available in Windows XP. The pentnt command was removed beginning in Windows Vista due to the lack of Intel Pentium CPU use at the time of this operating system release.

Ping
The ping command sends an Internet Control Message Protocol (ICMP) Echo Request message to a specified remote computer to verify IP-level connectivity. The ping command is available in all versions of Windows.

Pkgmgr
The pkgmgr command is used to start the Windows Package Manager from the Command Prompt. Package Manager installs, uninstalls, configures, and updates features and packages for Windows. The pkgmgr command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Pnpunattend
The pnpunattend command is used to automate the installation of hardware device drivers. The pnpunattend command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Pnputil
The pnputil command is used to start the Microsoft PnP Utility, a tool used to install a Plug and Play device from the command line. The pnputil command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Popd
The popd command is used to change the current directory to the one most recently stored by the pushd command. The popd command is most often utilized from within a batch or script file. The popd command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Power
The power command is used to reduce the power consumed by a computer by monitoring software and hardware devices. The power command is available in Windows 98 and 95, as well as in MS-DOS. The power command was replaced by operating system integrated power management functions beginning in Windows XP.

Powercfg
The powercfg command is used to manage the Windows power management settings from the command line. The powercfg command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Print
The print command is used to print a specified text file to a specified printing device. The print command is available in all versions of Windows, as well as in MS-DOS.

Prompt
The prompt command is used to customize the appearance of the prompt text in Command Prompt or MS-DOS. The prompt command is available in all versions of Windows, as well as in MS-DOS.

Pushd
The pushd command is used to store a directory for use, most commonly from within a batch or script program. The pushd command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Pwlauncher
The pwlauncher command is used to enable, disable, or show the status of your Windows To Go startup options. The pwlauncher command is available in Windows 11, 10, and 8.

Qappsrv
The qappsrv command is used to display all Remote Desktop Session Host servers available on the network. The qappsrv command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Qbasic
The qbasic command starts QBasic, the MS-DOS based programming environment for the BASIC programming language. The qbasic command is available in Windows 98 and 95, as well as in MS-DOS. The qbasic command is not installed by default with Windows 98 or 95 but is available from the installation disc or disks.

Qprocess
The qprocess command is used to display information about running processes. The qprocess command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Query
The query command is used to display the status of a specified service. The query command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Quser
The quser command is used to display information about users currently logged on to the system. The quser command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Qwinsta
The qwinsta command is used to display information about open Remote Desktop Sessions. The qwinsta command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Rasautou
The rasautou command is used to manage Remote Access Dialer AutoDial addresses. The rasautou command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Rasdial
The rasdial command is used to start or end a network connection for a Microsoft client. The rasdial command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Rcp
The rcp command is used to copy files between a Windows computer and a system running the rshd daemon. The rcp command is available in Windows 7, Windows Vista, and Windows XP. The rcp command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Subsystem for UNIX-based Applications Windows feature from Programs and Features in Control Panel and then installing the Utilities and SDK for UNIX-based Applications available here for Windows Vista and here for Windows 7. The rcp command is not available in Windows 11, 10, or 8 because Service for UNIX (SFU) was discontinued.

Rd
The rd command is the shorthand version of the rmdir command. The rd command is available in all versions of Windows, as well as in MS-DOS.

Rdpsign
The rdpsign command is used to sign a Remote Desktop Protocol (RDP) file. The rdpsign command is available in Windows 7.

Reagentc
The reagentc command is used to configure the Windows Recovery Environment (RE). The reagentc command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Recimg
The recimg command is used to create a custom refresh image. The recimg command is available in Windows 8.

Recover
The recover command is used to recover readable data from a bad or defective disk. The recover command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Reg
The reg command is used to manage the Windows Registry from the command line. The reg command can perform common registry functions like adding registry keys, exporting the registry, etc. The reg command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Regini
The regini command is used to set or change registry permissions and registry values from the command line. The regini command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Register-cimprovider
The register-cimprovider command is used to register a Common Information Model (CIM) Provider in Windows. The register-cimprovider command is available in Windows 11, Windows 10, and Windows 8.

Regsvr32
The regsvr32 command is used to register a DLL file as a command component in the Windows Registry. The regsvr32 command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Relog
The relog command is used to create new performance logs from data in existing performance logs. The relog command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Rem
The rem command is used to record comments or remarks in a batch or script file. The rem command is available in all versions of Windows, as well as in MS-DOS.

Ren
The ren command is the shorthand version of the rename command. The ren command is available in all versions of Windows, as well as in MS-DOS.

Rename
The rename command is used to change the name of the individual file that you specify. The rename command is available in all versions of Windows, as well as in MS-DOS.

Repair-bde
The repair-bde command is used to repair or decrypt a damaged drive that’s been encrypted using BitLocker. The repair-bde command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Replace
The replace command is used to replace one or more files with one or more other files. The replace command is available in all versions of Windows, as well as in MS-DOS.

Reset
The reset command, executed as reset session, is used to reset the session subsystem software and hardware to known initial values. The reset command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Restore
The restore command is used to restore files that were backed up using the backup command. The restore command is only available in MS-DOS. The backup command was only available up to MS-DOS 5.00 but the restore command was included by default with later versions of MS-DOS to provide a way to restore files that were backed up in previous versions of MS-DOS.

Rexec
The rexec command is used to run commands on remote computers running the rexec daemon. The rexec command is available in Windows Vista and Windows XP. The rsh command is not available by default in Windows Vista but can be enabled by turning on the Subsystem for UNIX-based Applications Windows feature from Programs and Features in Control Panel and then installing the Utilities and SDK for UNIX-based Applications available here. The rexec command is not available in Windows 7 but can be executed in Windows XP via Windows XP Mode if need be.

Rmdir
The rmdir command is used to delete an existing or completely empty folder. The rmdir command is available in all versions of Windows, as well as in MS-DOS.

Robocopy
The robocopy command is used to copy files and directories from one location to another. This command is also called Robust File Copy. The robocopy command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. The robocopy command is superior to both the copy command and the xcopy command because robocopy supports many more options.

Route
The route command is used to manipulate network routing tables. The route command is available in all versions of Windows.

Rpcinfo
The rpcinfo command makes a remote procedure call (RPC) to an RPC server and reports what it finds. The rpcinfo command is available in Windows 7 and Windows Vista. The rpcinfo command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The rpcinfo command is not available in Windows 11, 10, or 8 because Service for UNIX (SFU) was discontinued.

Rpcping
The rpcping command is used to ping a server using RPC. The rpcping command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Rsh
The rsh command is used to run commands on remote computers running the rsh daemon. The rsh command is available in Windows 7, Windows Vista, and Windows XP. The rsh command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Subsystem for UNIX-based Applications Windows feature from Programs and Features in Control Panel and then installing the Utilities and SDK for UNIX-based Applications available here for Windows Vista and here for Windows 7. The rsh command is not available in Windows 11, 10, or 8 because Service for UNIX (SFU) was discontinued.

Rsm
The rsm command is used to manage media resources using Removable Storage. The rsm command is available in Windows Vista and Windows XP. The rsm command was optional in Windows Vista and then removed in Windows 7 due to Removable Storage Manager being removed from the operating system. Search for the rsm command in the C:\Windows\winsxs folder in Windows Vista if you’re having trouble executing the command.

Runas
The runas command is used to execute a program using another user’s credentials. The runas command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Rwinsta
The rwinsta command is the shorthand version of the reset session command. The rwinsta command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Sc
The sc command is used to configure information about services. The sc command communicates with the Service Control Manager. The sc command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Scandisk
The scandisk command is used to start Microsoft ScanDisk, a disk repair program. The scandisk command is available in Windows 98 and 95, as well as in MS-DOS. The scandisk command was replaced by the chkdsk command beginning in Windows XP.

Scanreg
The scanreg command starts Windows Registry Checker, a basic registry repair program and backup utility. The scanreg command is available in Windows 98 and Windows 95. The functions provided by the scanreg command were no longer necessary beginning in Windows XP due to changes in how the Windows Registry functions.

Schtasks
The schtasks command is used to schedule specified programs or commands to run at certain times. The schtasks command can be used to create, delete, query, change, run, and end scheduled tasks. The schtasks command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.​

Sdbinst
The sdbinst command is used to deploy customized SDB database files. The sdbinst command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Secedit
The secedit command is used to configure and analyze system security by comparing the current security configuration to a template. The secedit command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Set
The set command is used to display, enable, or disable environment variables in MS-DOS or from the Command Prompt. The set command is available in all versions of Windows, as well as in MS-DOS.

Setlocal
The setlocal command is used to start the localization of environment changes inside a batch or script file. The setlocal command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Setspn
The setspn command is used to manage the Service Principal Names (SPN) for an Active Directory (AD) service account. The setspn command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Setver
The setver command is used to set the MS-DOS version number that MS-DOS reports to a program. The setver command is available in MS-DOS as well as in all 32-bit versions of Windows. The setver command is not available in 64-bit versions of Windows.

Setx
The setx command is used to create or change environment variables in the user environment or the system environment. The setx command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Sfc
The sfc command is used to verify and replace important Windows system files. The sfc command is also referred to as System File Checker or Windows Resource Checker, depending on the operating system. The sfc command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Shadow
The shadow command is used to monitor another Remote Desktop Services session. The shadow command is available in Windows 7, Windows Vista, and Windows XP.

Share
The share command is used to install file locking and file sharing functions in MS-DOS. The share command is available in MS-DOS as well as in all 32-bit versions of Windows. The share command is not available in 64-bit versions of Windows. Share is only available in Windows 10, 8, 7, Vista, and XP to support older MS-DOS files.

Shift
The shift command is used to change the position of replaceable parameters in a batch or script file. The shift command is available in all versions of Windows, as well as in MS-DOS.

Showmount
The showmount command is used to display information about NFS-mounted file systems. The showmount command is available in Windows 7 and Windows Vista. The showmount command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The showmount command is not available in Windows 11, 10, or 8 because Service for UNIX (SFU) was discontinued.

Shutdown
The shutdown command can be used to shut down, restart, or log off the current system or a remote computer. The shutdown command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Smartdrv
The smartdrv command installs and configures SMARTDrive, a disk caching utility for MS-DOS. The smartdrv command is available in Windows 98 and 95, as well as in MS-DOS. Caching is automatic beginning in Windows XP, making the smartdrv command unnecessary.

Sort
The sort command is used to read data from a specified input, sort that data, and return the results of that sort to the Command Prompt screen, a file, or another output device. The sort command is available in all versions of Windows, as well as in MS-DOS.

Start
The start command is used to open a new command line window to run a specified program or command. The start command can also be used to start an application without creating a new window. The start command is available in all versions of Windows.

Subst
The subst command is used to associate a local path with a drive letter. The subst command is a lot like the net use command except a local path is used instead of a shared network path. The subst command is available in all versions of Windows, as well as in MS-DOS. The subst command replaced the assign command beginning with MS-DOS 6.0.

Sxstrace
The sxstrace command is used to start the WinSxs Tracing Utility, a programming diagnostic tool. The sxstrace command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Sys
The sys command is used to copy the MS-DOS system files and command interpreter to a disk. The sys command is available in Windows 98 and 95, as well as in MS-DOS. The sys command is used most often to create a simple bootable disk or hard drive. The necessary system files for Windows are too large to fit on a disk, so the sys command was removed beginning in Windows XP.

Systeminfo
The systeminfo command is used to display basic Windows configuration information for the local or a remote computer. The systeminfo command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Takeown
The takedown command is used to regain access to a file that that an administrator was denied access to when reassigning ownership of the file. The takeown command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Taskkill
The taskkill command is used to terminate a running task. The taskkill command is the command line equivalent of ending a process in Task Manager in Windows. The taskkill command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tasklist
Displays a list of applications, services, and the Process ID (PID) currently running on either a local or a remote computer. The tasklist command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tcmsetup
The tcmsetup command is used to set up or disable the Telephony Application Programming Interface (TAPI) client. The tcmsetup command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Telnet
The telnet command is used to communicate with remote computers that use the Telnet protocol. The telnet command is available in all versions of Windows. The telnet command is not available by default in Windows 11, 10, 8, 7, or Vista, but can be enabled by turning on the Telnet Client Windows feature from Programs and Features in Control Panel.

Tftp
The tftp command is used to transfer files to and from a remote computer that’s running the Trivial File Transfer Protocol (TFTP) service or daemon. The tftp command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The tftp command is not available by default in some versions of Windows, but can be enabled by turning on the TFTP Client Windows feature from Programs and Features in Control Panel.

Time
The time command is used to show or change the current time. The time command is available in all versions of Windows, as well as in MS-DOS.

Timeout
The timeout command is typically used in a batch or script file to provide a specified timeout value during a procedure. The timeout command can also be used to ignore keypresses. The timeout command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Title
The title command is used to set the Command Prompt window title. The title command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tlntadmn
The tlntadmn command is used to administer a local or remote computer running Telnet Server. The tlntadmn command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. The tlntadmn command is not available by default in some versions of Windows but can be enabled by turning on the Telnet Server Windows feature from Programs and Features in Control Panel.

Tpmvscmgr
The tpmvscmgr command is used to create and destroy TPM virtual smart cards. The tpmvscmgr command is available in Windows 11, Windows 10, and Windows 8.

Tracerpt
The tracerpt command is used to process event trace logs or real-time data from instrumented event trace providers. The tracerpt command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tracert
The tracert command sends Internet Control Message Protocol (ICMP) Echo Request messages to a specified remote computer with increasing Time to Live (TTL) field values and displays the IP address and hostname, if available, of the router interfaces between the source and destination. The tracert command is available in all versions of Windows.

Tree
The tree command is used to graphically display the folder structure of a specified drive or path. The tree command is available in all versions of Windows, as well as in MS-DOS.

Tscon
The tscon command is used to attach a user session to a Remote Desktop session. The tscon command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tsdiscon
The tsdiscon command is used to disconnect a Remote Desktop session. The tsdiscon command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tskill
The tskill command is used to end the specified process. The tskill command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tsshutdn
The tsshutdn command is used to remotely shut down or restart a terminal server. The tsshutdn command is available in Windows XP. The ability to shut down a computer remotely is also available in the more powerful shutdown command, so tsshutdn was removed beginning in Windows Vista.

Type
The type command is used to display the information contained in a text file. The type command is available in all versions of Windows, as well as in MS-DOS.

Typeperf
The typerperf command displays performance data in the Command Prompt window or writes the data to specified log file. The typeperf command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Tzutil
The tzutil command is used to display or configure the current system’s time zone. The tzutil command can also be used to enable or disable Daylight Saving Time adjustments. The tzutil command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Umount
The umount command is used to remove Network File System (NFS) mounted network shares. The umount command is available in Windows 7 and Windows Vista. The umount command is not available by default in Windows Vista or Windows 7 but can be enabled by turning on the Services for NFS Windows feature from Programs and Features in Control Panel. The umount command is not available in Windows 11, 10, or 8 because Service for UNIX (SFU) was discontinued.

Undelete
The undelete command is used to undo a deletion performed with the MS-DOS delete command. The undelete command is only available in MS-DOS. The undelete command was removed beginning in Windows 95 due to the availability of the Recycle Bin in Windows. Additionally, free file recovery programs are available from third-party software makers.

Unformat
The unformat command is used to undo the formatting on a drive performed by the MS-DOS format command. The unformat command is only available in MS-DOS. The unformat command was removed beginning in Windows 95 due to file system changes.

Unlock
The unlock command is used to unlock a drive, disabling direct disk access for a program. The unlock command is only available in Windows 98 and 95. Drive locking is no longer available as of Windows XP.

Unlodctr
The unlodctr command removes Explain text and Performance counter names for a service or device driver from the Windows Registry. The unlodctr command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Vaultcmd
The vaultcmd command is used to create, remove, and show stored credentials. The vaultcmd command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Ver
The ver command is used to display the current Windows or MS-DOS version number. The ver command is available in all versions of Windows, as well as in MS-DOS.

Verify
The verify command is used to enable or disable the ability of Command Prompt, or MS-DOS, to verify that files are written correctly to a disk. The verify command is available in all versions of Windows, as well as in MS-DOS.

Vol
The vol command shows the volume label and serial number of a specified disk, assuming this information exists. The vol command is available in all versions of Windows, as well as in MS-DOS.

Vsafe
The vsafe command is used to start VSafe, a basic virus protection system for MS-DOS. The vsafe command is only available in MS-DOS. VSafe was designed for MS-DOS and Windows 3.x only. Microsoft provides an optional virus protection suite called Microsoft Security Essentials for Windows XP and later operating systems, and third-party antivirus tools are available for all versions of Windows.

Vssadmin
The vssadmin command starts the Volume Shadow Copy Service administrative command line tool which displays current volume shadow copy backups and all installed shadow copy writers and providers. The vssadmin command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

W32tm
The w32tm command is used to diagnose issues with Windows Time. The w32tm command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Waitfor
The waitfor command is used to send or wait for a signal on a system. The waitfor command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Wbadmin
The wbadmin command is used to start and stop backup jobs, display details about a previous backup, list the items within a backup, and report on the status of a currently running backup. The wbadmin command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista. The wbadmin command replaced the ntbackup command beginning in Windows Vista.

Wecutil
The wecutil command is used to manage subscriptions to events that are forwarded from WS-Management supported computers. The wecutil command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Wevtutil
The wevtutil command starts the Windows Events Command Line Utility which is used to manage event logs and publishers. The wevtutil command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Where
The where command is used to search for files that match a specified pattern. The where command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Whoami
The whoami command is used to retrieve user name and group information on a network. The whoami command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Winmgmt
The winmgmt command starts the command line version of WMI, a scripting tool in Windows. The winmgmt command is available in all versions of Windows.

Winrm
The winrm command is used to start the command line version of Windows Remote Management, used to manage secure communications with local and remote computers using web services. The winrm command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Winrs
The winrs command is used to open a secure command window with a remote host. The winrs command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Winsat
The winsat command starts the Windows System Assessment Tool, a program that assesses various features, attributes, and capabilities of a computer running Windows. The winsat command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Wmic
The wmic command starts the Windows Management Instrumentation Command line (WMIC), a scripting interface that simplifies the use of Windows Management Instrumentation (WMI) and systems managed via WMI. The wmic command is available in Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP.

Wsmanhttpconfig
The wsmanhttpconfig command is used to manage aspects of the Windows Remote Management (WinRM) service. The wsmanhttpconfig command is available in Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.

Xcopy
The xcopy command can copy one or more files or directory trees from one location to another. The xcopy command is generally considered a more «powerful» version of the copy command through the robocopy command trumps even xcopy. The xcopy command is available in all versions of Windows, as well as in MS-DOS. A command by the name of xcopy32 existed in Windows 95 and Windows 98. To avoid a long and confusing explanation here, just know that no matter if you executed the xcopy command or the xcopy32 command, you were always executing the most updated version of the command.

Xwizard
The xwizard command, short for Extensible Wizard, is used to register data in Windows, often from a preconfigured XML file. The xwizard command is available in Windows 11, Windows 10, Windows 8, and Windows 7.

Windows CMD commands offer powerful tools for managing and controlling your computer. These text-based instructions let users perform tasks quickly and efficiently. CMD.exe, the Windows Command Prompt, provides access to over 280 built-in commands for file management, network troubleshooting, and system configuration.

The Command Prompt gives users direct control over their Windows operating system. It’s a versatile tool for both basic and advanced operations. Users can automate tasks with batch files and scripts, making repetitive processes easier.

CMD commands work on Windows 10, 11, and earlier versions. They range from simple directory navigation to complex system maintenance. Learning these commands can boost productivity and deepen understanding of Windows systems.

CMD Commands List

ASSOC Displays or modifies file extension associations.
ATTRIB Displays or changes file attributes.
BREAK Sets or clears extended CTRL+C checking.
BCDEDIT Sets properties in boot database to control boot loading.
CACLS Displays or modifies access control lists (ACLs) of files.
CALL Calls one batch program from another.
CD Displays the name of or changes the current directory.
CHCP Displays or sets the active code page number.
CHDIR Displays the name of or changes the current directory.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the checking of disk at boot time.
CLS Clears the screen.
CMD Starts a new instance of the Windows command interpreter.
COLOR Sets the default console foreground and background colors.
COMP Compares the contents of two files or sets of files.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converts FAT volumes to NTFS.  You cannot convert the current drive.
COPY Copies one or more files to another location.
DATE Displays or sets the date.
DEL Deletes one or more files.
DIR Displays a list of files and subdirectories in a directory.
DISKPART Displays or configures Disk Partition properties.
DOSKEY Edits command lines, recalls Windows commands, and creates macros.
DRIVERQUERY Displays current device driver status and properties.
ECHO Displays messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Deletes one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Compares two files or sets of files, and displays the differences between them.
FIND Searches for a text string in a file or files.
FINDSTR Searches for strings in files.
FOR Runs a specified command for each file in a set of files.
FORMAT Formats a disk for use with Windows.
FSUTIL Displays or configures the file system properties.
FTYPE Displays or modifies file types used in file extension associations.
GOTO Directs the Windows command interpreter to a labeled line in a batch program.
GPRESULT Displays Group Policy information for machine or user.
GRAFTABL Enables Windows to display an extended character set in graphics mode.
HELP Provides Help information for Windows commands.
ICACLS Display, modify, backup, or restore ACLs for files and directories.
IF Performs conditional processing in batch programs.
LABEL Creates, changes, or deletes the volume label of a disk.
MD Creates a directory.
MKDIR Creates a directory.
MKLINK Creates Symbolic Links and Hard Links
MODE Configures a system device.
MORE Displays output one screen at a time.
MOVE Moves one or more files from one directory to another directory.
OPENFILES Displays files opened by remote users for a file share.
PATH Displays or sets a search path for executable files.
PAUSE Suspends processing of a batch file and displays a message.
POPD Restores the previous value of the current directory saved by PUSHD.
PRINT Prints a text file.
PROMPT Changes the Windows command prompt.
PUSHD Saves the current directory then changes it.
RD Removes a directory.
RECOVER Recovers readable information from a bad or defective disk.
REM Records comments (remarks) in batch files or CONFIG.SYS.
REN Renames a file or files.
RENAME Renames a file or files.
REPLACE Replaces files.
RMDIR Removes a directory.
ROBOCOPY Advanced utility to copy files and directory trees
SET Displays, sets, or removes Windows environment variables.
SETLOCAL Begins localization of environment changes in a batch file.
SC Displays or configures services (background processes).
SCHTASKS Schedules commands and programs to run on a computer.
SHIFT Shifts the position of replaceable parameters in batch files.
SHUTDOWN Allows proper local or remote shutdown of machine.
SORT Sorts input.
START Starts a separate window to run a specified program or command.
SUBST Associates a path with a drive letter.
SYSTEMINFO Displays machine specific properties and configuration.
TASKLIST Displays all currently running tasks including services.
TASKKILL Kill or stop a running process or application.
TIME Displays or sets the system time.
TITLE Sets the window title for a CMD.EXE session.
TREE Graphically displays the directory structure of a drive or path.
TYPE Displays the contents of a text file.
VER Displays the Windows version.
VERIFY Tells Windows whether to verify that your files are written correctly to a disk.
VOL Displays a disk volume label and serial number.
XCOPY Copies files and directory trees.
WMIC Displays WMI information inside interactive command shell.

Essential Windows CMD Commands

The Windows Command Prompt (CMD) is a powerful tool. It lets you interact with your computer using text-based commands. Here’s a list of essential CMD commands that every Windows user should know:

Basic Navigation and File Management

  • dir: Lists files and folders in the current directory.
  • cd: Changes the current directory. For example, “cd Documents” moves you to the Documents folder.
  • mkdir: Creates a new directory. “mkdir NewFolder” creates a folder named “NewFolder.”
  • rmdir: Removes an empty directory.
  • del: Deletes files. Use with caution!
  • copy: Copies files from one location to another.
  • move: Moves files from one location to another.
  • ren: Renames a file or folder.

System Information and Control

  • systeminfo: Displays detailed information about your computer’s hardware and software.
  • tasklist: Shows a list of running processes.
  • taskkill: Ends a running process. You’ll usually need to specify the process ID (PID).
  • shutdown: Shuts down or restarts your computer. You can add arguments like “/r” for restart or “/s” for shutdown.
  • gpupdate: Refreshes Group Policy settings.

Networking

  • ipconfig: Displays your computer’s network configuration details, including IP address.
  • ping: Tests the connection to another device on the network. For example, “ping google.com” checks if you can reach Google’s servers.
  • tracert: Traces the route that packets take to reach a specific destination.
  • netstat: Displays active network connections.

Disk Management

  • chkdsk: Checks a disk for errors and attempts to fix them.
  • diskpart: A powerful tool for managing disks, partitions, and volumes.
  • format: Formats a drive (erases all data!).

Other Useful Commands

  • help: Provides information about a specific command. For example, “help copy” shows details about the copy command.
  • cls: Clears the Command Prompt screen.
  • date: Displays or sets the current date.
  • time: Displays or sets the current time.

Tips for Using CMD

  • Most commands have options (arguments) that modify their behavior. Use the “/?” switch after a command to see its available options. For example, “dir /?”
  • You can use the Tab key to autocomplete commands and file/folder names.
  • Use the arrow keys to scroll through your command history.
Command Description
dir Lists files and folders
cd Changes the directory
mkdir Creates a new directory
systeminfo Shows system information
ipconfig Displays network configuration
ping Tests network connectivity
chkdsk Checks disk for errors

Key Takeaways

  • CMD commands offer powerful control over Windows systems
  • Users can automate tasks with batch files and scripts
  • The Command Prompt works on multiple Windows versions

Core Command Line Operations

Windows Command Prompt offers powerful tools for system management and file operations. These commands let users control their computer through text-based inputs.

Navigating the File System

The “cd” command changes directories. Type “cd foldername” to move into a folder. Use “cd ..” to go up one level. “dir” lists files and folders in the current directory. It shows names, sizes, and dates. “tree” displays the folder structure as a tree diagram. This helps visualize file organization. “path” shows or sets the system path. The path tells Windows where to look for programs.

File Management

“copy” duplicates files. “move” relocates files. “del” erases files. Use these with caution. “ren” renames files or folders. “mkdir” or “md” creates new folders. “rmdir” removes empty folders. “type” displays the contents of text files. “fc” compares two files and shows differences. “attrib” changes file attributes like hidden or read-only. These commands help organize and maintain files efficiently.

System Information Commands

“systeminfo” gives a detailed report of the computer’s hardware and software. “hostname” shows the computer’s name. “tasklist” displays running processes. “taskkill” ends specific processes. “sfc” scans and repairs Windows system files. “chkdsk” checks the hard drive for errors. “diskpart” manages disk partitions. These tools help diagnose and fix system issues.

Network Utilities

“ping” tests network connections. “ipconfig” shows network settings. “tracert” traces the route to a website. “netstat” displays network statistics. “nslookup” queries domain name servers. “net” manages network resources and users. “getmac” retrieves the MAC address. “pathping” combines ping and tracert functions. These commands are vital for network troubleshooting and setup.

When working on the Windows command line, do you remember how often you kept looking for the same commands? Do you easily mistype in the Windows command prompt as if you were using bash commands, such as “rm” instead of “del”? If you’ve ever been in the situations above, this Windows command line cheat sheet is for you.

The Windows command line is only as powerful as the commands at your disposal, which we’ll expand on in this Windows command prompt cheat sheet. It covers every command you need for important tasks and batch scripting, plus a few delightful surprises if you make it to the end.

Keep a copy of this Windows command line cheat sheet on your desk, in your pocket, or wherever you go. When you’re ready, let’s dive in.

Search our Windows command line cheat sheet to find the right cheat for the term you’re looking for. Simply enter the term in the search bar and you’ll receive the matching cheats available.

What Is the Windows Command Line?

The Windows command line (Windows command prompt) is the command-line interface (CLI) on Microsoft Windows machines, analogous to the Terminal in Unix/Linux. It emulates many command-line abilities in Microsoft’s deprecated text-only operating system MS-DOS (but it’s not MS-DOS).

Methods to open the Windows CLI:

  • On Windows 10 or above, click Start on the bottom left corner, type cmd, and select Command Prompt.
  • On Windows 8.x or earlier, press Ctrl+R to open the Run dialog box, type cmd into it, and press Enter.

Hence, another name for Windows CLI is “cmd.”

Scripts containing Windows commands (batch scripts) have “.bat” as the file extension. All cmd commands are case-insensitive, so arp and ARP are the same. If you need help using any command, add /? to it, e.g., ARP /? will show the manual for ARP:

Table Of Contents

  1. Windows Command Line Cheat Sheet Search
  2. Directory Navigation
  3. File Management
  4. Disk Management
  5. Windows Command Generator
  6. System Information and Networking
  7. Process Management
  8. Batch Scripting
  9. Conclusion
  10. Frequently Asked Questions

Directory Navigation

These commands help you view directories and move directories around.

Command Explanation
c: Change the current drive to the C:\ drive
d: Change the current drive to the D:\ drive
CD c:\path\to\my_folder Change directory to c:\path\to\my_folder
CD .. Navigate to the parent directory of the current working directory
CD .\new_folder Navigate to the folder new_folder located in the current working directory
CD /D d:\videos\ Change the current drive to D:\ and access the folder videos on it.
DIR Display files and folders in the current directory
DIR /A c:\apps\ Display files and folders in the directory c:\apps\
DIR /A:D Display only folders (D: directories)
DIR /A:-D Display only files (D: directories; -: not)
DIR /A:H Display hidden files and folders
DIR /O Display files and folders sorted alphabetically
DIR /O:S Display files and folders sorted by file size from smallest to largest
DIR /O:-S Display files and folders sorted by file size from largest to smallest
DIR /B Display only the names of files and folders in the current working directory
SORT Take input from a source file/pipeline, sort its contents alphabetically (default: A to Z; in reverse: Z to A), and display the output
SORT "C:\music\playlist.m3u" Sort the contents of C:\music\playlist.m3u line by line
DIR /B | SORT /R /O ZtoA.txt List all file and folder names in the current working directory, sort them in reverse alphabetical order, and save the sorted output to a file ZtoA.txt:

MOVE Move a file or files
MOVE c:\f1\text.txt c:\f2 Move a file text.txt from one folder c:\f1 to another folder c:\f2
MD new_folderMAKEDIR new_folder Create a new folder called new_folder in the current directory
RD new_folderRMDIR new_folder Delete the folder called new_folder in the current directory
TREE Show the directory structure of a disk/folder
TREE "C:\Program Files" Show the directory structure of the folder “Program Files” on the disk C:\
TREE C:\ /F Display the names of the files in each folder in the directory structure of the C:\ drive
ATTRIB Display/set the attributes of the files in the current directory
ATTRIB +H +S +R myItem Hide a file/folder myItem
ATTRIB -H -S -R myItem Unhide a file/folder myItem

TREE demonstration

File Management

The following commands are for managing and manipulating files.

Like Unix, cmd supports pipelines: you may pass the output of a command to the next one by sandwiching the pipe character “|” between both.

Command Explanation
COPY text.txt C:\schoolwork Copy the file text.txt to a folder with the path C:\schoolwork
DEL text.txtERASE text.txt Delete the file text.txt
REN text.txt script.batRENAME text.txt script.bat Rename a file text.txt to script.bat
REPLACE .\src\hey.txt .\dest Overwrite; replace a file named hey.txt in a local folder src with another hey.txt in a local folder dest, both files sharing the same name.
Warning: Don’t specify .\dest\hey.txt anywhere here.
XCOPY Copy files and directory trees to another folder.
XCOPY is similar to COPY but with additional switches to specify the source and destination paths in detail.
XCOPY /S folder1 folder2 Copy folders and subfolders of folder1 to folder2
ROBOCOPY Robust copying of files and directories: by default, such copying only occurs if the source and destination differ in time stamps or file sizes.
EXPAND gameData.cab Decompresses the compressed .CAB cabinet file gameData.cab
FC file1.ext file2.ext Compare the contents of two files (file1.ext, file2.ext) and display non-matching lines
COMP file1.ext file2.ext Compare the contents of two files (file1.ext, file2.ext) and display non-matching items
FIND "python" in run.bat Output every line that contains a text string (which you must enclose in quotation marks) «python» in the file run.bat
FIND /C "python" in run.bat Count every line that contains a text string (which you must enclose in quotation marks) «python» in the file run.bat
PRINT resume.txt Print contents of a file resume.txt
OPENFILES /QUERY Query/display open files
OPENFILES /DISCONNECT Disconnect files opened by network users.
TYPE test.txt Displays the contents of the file test.txt
TYPE playlist.m3u | SORT /unique /o C:\work\unique_play.m3u Sort a file playlist.m3u and output only the unique values to a file C:\work\unique_play.m3u
MORE Display contents of one or more files, one screen at a time.
ASSOC Display or change the association between a file extension and a file type
NOTEPAD Open the Notepad application from cmd
NOTEPAD filename.ext Open a file filename.ext in Notepad

Disk Management

It’s easy to handle and automate the following tasks on cmd.

Command Explanation
CHKDSK Check and repair disk problems (local disks only)
CHKDSK /F A: Fix errors on A: drive
CHKDSK /R A: Recover data on A: drive
CHKDSK /X A: Dismount drive A:
CIPHER /E classified Encrypt the folder classified
CIPHER /D secret_recipe.txt Decrypt the file secret_recipe.txt
DEFRAG Disk Defragmentation
CHKNTFS Display/modify disk-checking on startup
COMPACT Display/change the compression of files in NTFS partitions
CONVERT Convert FAT disk volume to NTFS
DISKPART Display and adjust disk partition properties
FORMAT Format the disk
FSUTIL File system management
LABEL d:x Rename disk D:\ to X:\
SUBST p: c:\taxes Assign drive P:\ to the local folder c:\taxes
SUBST p: /D Remove the path represented by P:\
RECOVER d:\data.dat Recover a file data.dat from a bad or defective disk D:\
VOL Display current disk volume label and serial number
POWERCFG Control power settings and configure Hibernate/Standby modes
SFC /SCANNOW Scan and update protected system files

Windows Command Generator

Say goodbye to the hassle of trying to remember the exact syntax for the Windows command line! With our Windows Command Generator, you can simply say what you need Windows to do, and we will generate the command for you.

System Information and Networking

The following commands are helpful in troubleshooting computers and computer networks.

Command Explanation
VER Display the current operating system version
SYSTEMINFO List system configuration
HOSTNAME Show the computer’s hostname on the network
DRIVERQUERY Show all installed device drivers
DATE Display/set system date
TIME Display/set system time
GPRESULT Display Resultant Set of Policy (RSoP) information for a remote user and computer.
GPUPDATE Update group policies
IPCONFIG Display Windows IP network configurations
IPCONFIG /release Release your current local IP address
IPCONFIG /renew Request a new local IP address
IPCONFIG /flushdns Reset the contents of the DNS client resolver cache
PING google.com Send ICMP requests to the target google.com and check host availability
PATHPING Trace route and provide network latency and packet loss for each router and link in the path
NET Provide various network services
NET use M: \\gameServ /user:"ReadyPlayerOne" player1 Assign as disk M:\ the path \\gameServ, logging in as “ReadyPlayerOne” and password “player1
TRACERT Find the IP address of any remote host
NSLOOKUP Find IP addresses on a nameserver
ROUTE Manipulate network routing tables
ROUTE PRINT Displays network route details
ARP -A List IP addresses and corresponding physical addresses (Address Resolution Protocol)
NETSH Configure network interfaces, Windows firewall, routing, and remote access
NETSTAT Display current TCP/IP network connections and protocol statistics
GETMAC Shows all MAC addresses of the network adapters

Process Management

The commands below are Task Manager-like functions. Note that you call variables in arithmetic or logical expressions by enclosing each with two “%” signs (e.g., “%a%”).

Command Explanation
SCHTASKS Create/edit a job on Task Scheduler. Use this to create scheduled tasks in Disk Management.
SET List environment variables
PATH Display/change the list of folders stored in the %PATH% environment variable
SHUTDOWN /R Restart the computer
SHUTDOWN /S /T 60 Shut down the computer 60 seconds from now
TASKLIST List running tasks
TASKLIST /SVC Show services related to each task
TASKLIST /V Display detailed task information
TASKLIST | FIND "1234" Get the name of the executable associated with the process ID (PID) of 1234
TASKKILL End one or more tasks
TASKKILL /IM "msedge.exe" Terminate all Microsoft Edge instances:

TASKKILL /PID 10736 Terminate process with PID of 10736
REGREGEDIT Registry Editor
RUNAS /USER:user2 program1 Execute a program program1 as another user user2
POWERSHELL Open a Powershell instance

Batch Scripting

These commands are for constructing and debugging batch scripts (.bat). To suppress the output of a certain command, add @ in front of it, e.g., @echo off.

Demonstration of CHOICE, PAUSE, and TIMEOUT
Command Explanation
REM comment. . .
:comment. . .
Prefix for the single-line comment “comment. . .”
GOTO end
<comment_block>
:end
Format of multi-line comments represented by <comment_block> enclosed by delimiters end and :end
SET /A c = %a% + %b% Assign the arithmetic expression a+b to the variable c
^ Escape character
some_command > output.txt Redirect output of some_command to a file output.txt
? Wildcard representing one character
* Wildcard representing multiple characters
& Introduce a new command on the same line
TIMEOUT 3600 Tell the command prompt to sleep for 3600 seconds (= 1 hour)
PAUSE Prompt the user to continue
CHOICE Prompt the user to pick an on-screen option
CHOICE /T 15 /C ync /CS /D y /M "Press y=Yes, n=No, c=cancel:" You have 15 seconds to press Y, N, or C keys without capitalization, defaulting to “y” if time runs out without a decision
CLS Clear screen
CMD Restarts Windows command prompt window:

COLOR Set text and background color of cmd:

ECHO ON Display each command executed
ECHO OFF Only display command output
ECHO a string of characters Display a string of characters
HELP Display help
PROMPT topSecret^>$$ Changes the command line prompt to topSecret>$ for the current session
PROMPT Reset the command line prompt to default
START X Start/open a program/document X in a new window
TITLE top Secret Set the title of the current session of Windows command prompt to top Secret
/? Add this to the end of any command word (shown in ALL CAPS in this cheat sheet) to get help on the command, e.g., CD/? = manual for CD (change directory) command
| CLIP Append this to the end of a command to copy the command output to the clipboard
EXIT Exits the command line

Flow Control

Note the condition is a Boolean expression e.g., %a%==5.

Conditional Syntax
If IF (condition) do_something
If-else If (condition) (do_something)
ELSE (do_something_else)
Nested if IF (condition1) IF (condition2) do_something
Infinite loop :marker
do_something
GOTO marker
While loop :marker
IF (condition) (
   do_something
   GOTO :marker
)

Shortcut keys

Any Windows CLI cheat sheet must include methods to speed up your work, such as the following.

Key Effect
Tab Autocomplete
Ctrl+F Find text in console (opens dialog box)
F1, F3, F5, F8 Retype command
F2 Copy the current command leftward of the cursor
F4 Delete the current command rightward of the cursor
F6 Insert end-of-file character
F7 List previous commands from which you choose
F9 Retype a command by typing its line number in the command history

Conclusion

We sincerely hope this Windows cmd commands cheat sheet helps you finish your work quickly and efficiently today, especially if you’re prone to confusing Windows command prompt commands with other terminal scripting languages in the past.

Remember to check out our course offerings on Windows.

Frequently Asked Questions



Can I use the command line for coding?

Like bash, sh, and zsh, the Windows command line is a shell scripting language suited for automating line-by-line execution of programs callable from a command line interface. It’s not suitable as a programming language because it lacks data structures found in general-purpose programming languages such as Python (interpretive) and C++ (compiled).



What are the basic CLI commands?

They’re DIR, CD, CP, DEL, MOVE, REN, MKDIR, RMDIR, CLS, HELP, EXIT, and NOTEPAD. With these commands, a beginner can operate the Windows command prompt and manage most files and folders.



Is learning the command line useful?

Yes. Learning how to use it will allow you to discover your computer’s latent superpowers. You can automate tasks when combined with Run > shell:startup or Task Scheduler (both on Windows). The command line will help you manage and manipulate files and folders more quickly than comparable actions (e.g., drag and drop) on the graphical user interface.



Can CMD run Python?

If the machine has Python installed, then yes. Python isn’t native to Windows. Note that the command to run Python could be one of the following: python, py -2 (for Python 2); python3, py -3 (for Python 3).


  • Cassandra is a writer, artist, musician, and technologist who makes connections across disciplines: cyber security, writing/journalism, art/design, music, mathematics, technology, education, psychology, and more. She’s been a vocal advocate for girls and women in STEM since the 2010s, having written for Huffington Post, International Mathematical Olympiad 2016, and Ada Lovelace Day, and she’s honored to join StationX. You can find Cassandra on LinkedIn and Linktree.

Home » KB » SysAdmin » Windows CMD Commands: Mastering the Command Prompt

The Windows operating system includes over 280 CMD (Command Prompt) commands. These commands enable users to interact directly with the OS and perform various troubleshooting and IT automation tasks.

Many CMD commands work on specific Windows desktop versions, while others are only available for Windows Server editions.

This extensive guide lists all Windows CMD commands and provides hands-on examples of the most commonly used ones.

Windows CMD Commands: Mastering the Command Prompt

Prerequisites

  • Access to the command prompt (CMD).
  • Administrator privileges (for some commands).

Essential Command Prompt Commands

Commands are built-in programs that run through the Command Prompt program. The main use for commands is to automate various tasks, such as user provisioning and other routine actions.

Below is an overview of essential Windows CMD (Command Prompt) commands. Every command has a brief explanation and an example use case.

1. arp Command

The arp (Address Resolution Protocol) command shows and modifies entries in the ARP cache. The cache contains one or multiple tables that map IP addresses to physical (MAC) addresses for devices on the local network.

The syntax for the command is:

arp [options] [address]

Without any parameters, the arp command shows the help window.

To show the ARP cache table, run the following command:

arp -a
arp -a interface tables CMD output

The output lists all the current ARP entries grouped by network interface.

2. assoc Command

The assoc (association) command lists and modifies file extension associations on the system. The syntax for the command is:

assoc .[extension]=[filetype]

Without any parameters, the command prints the current file extension associations.

assoc CMD output list

Use the assoc command to view, change, or remove file associations. For example, to view the .log file associations, enter:

assoc .log
assoc .log CMD output

Change the file association with:

assoc .log=txtfile

Alternatively, to remove all file associations for files with the .log extension, use:

assoc .log= 

Add a space after the equals sign to remove the association.

3. attrib Command

The attrib (attribute) command displays or changes file attributes. The possible attributes are:

  • R — Read-only.
  • H — Hidden.
  • S — System file.

The syntax for the attrib command is:

attrib [+/-] [attribute] [file_or_directory]

Use the plus sign (+) to set an attribute or the minus sign (-) to remove an attribute from a file. Without any options, the command shows the file attributes in the current directory.

attrib CMD list output

To set a file to have the read-only (R) and hidden (H) attributes, use the following command:

attrib +R +H sample_file.txt
atrib +R +H change CMD output

To make a file visible, remove the hidden (H) attribute:

attrib -H sample_file.txt
attrib -H change CMD output

The minus (-) removes the attribute from the file and returns the file to the default visible state.

4. bcdboot Command

The bcdboot (Boot Configuration Data Boot) command sets up a system partition by copying BCD files into an empty partition.

The syntax for the command is:

bcdboot [path]

For example, to copy the BCD files into C:\Windows, use:

bcdboot C:\Windows
bcdboot CMD output

The message confirms the file has been created.

5. cd Command

The cd (change directory) command shows or changes the current location. The syntax for the command is:

cd [directory]

The directory parameter is optional, and without it, the command prints the current working directory.

For example, to change the location to a directory named Public, add the directory name after the command:

cd Public
cd Public CMD output

The prompt reflects the change and shows the new location.

To change the location to a different drive, add the /d option before the path. For example, to change to drive S:\ use:

cd /d S:
cd disk change CMD output

cd only displays the path without switching to the specified drive if the /d option is not used.

To change to the parent directory one level up, use the following shortcut:

cd ..
cd parent directory CMD output

The current directory changes to the parent of the previous location.

6. chkdsk Command

The chkdsk command scans the local file system and metadata for errors. The syntax for checking a disk is:

chkdsk [volume] [options]

Without additional parameters, chkdsk displays the current disk state without fixing any errors.

chkdsk CMD output

Additional parameters allow you to fix errors on a disk, for example, the /f option:

chkdsk [volume] /f
chkdsk /f CMD output

The command attempts to fix errors on the disk. If the disk is in use, run the check on the next system restart. Interrupting chkdsk while it’s running is generally safe, but it’s recommended to complete the scan later to address potential data corruption.

7. choice Command

The choice command prompts a user to choose an answer from a list of options. Without any parameters, the command prompts the user to choose between Y and N options.

Additional options control the number of choices and the prompt text. For example, to add a third choice, use the /c parameter and list the three option names:

choice /c ync
choice /c ync CMD output

Insert additional text to explain the available options with the /m parameter. For example:

choice /c ync /m "Yes, No, Continue"
choice /m message CMD output

In all cases, the command returns the choice index and exits.

8. cipher Command

The cipher command shows and modifies the encryption status of files or directories on NTFS file systems. The command syntax is:

cipher [options] [file_or_directory]

Without any options, cipher shows the encryption state for all files and directories in the current location. The U represents «unencrypted,» whereas E is «encrypted.»

cipher CMD output

To encrypt a file in the current directory, use the /e parameter:

cipher /e [file name]

The file’s indicator changes from U to E to mark the file as encrypted.

9. clip Command

The clip command copies a command output or file contents to the Windows clipboard. The syntax for copying a command’s output in CMD is:

[command] | clip

For example, to copy the current directory path, pipe the cd command to clip:

cd | clip

Paste the contents anywhere in the window using CTRL+V (or right-click in CMD).

To copy the contents of a file, use redirection:

clip < [filename]

For example, to copy the contents of a sample.txt file to the clipboard, run:

clip < sample.txt

The file’s contents are saved to the clipboard, so you can paste them anywhere.

10. cls Command

The cls command clears the text in a command prompt window and returns a blank surface. Use the command to clear the screen contents.

Note that the previous contents and output cannot be restored.

11. cmd Command

The cmd command starts a new instance of the command interpreter. Use the following syntax to run the command:

cmd [options] [command]

Without additional parameters, the cmd command shows the current cmd.exe program version.

Use cmd to run commands without affecting the current session. For example, to test a command and return to the current command interpreter session, use the /c parameter:

cmd /c cd ..

The new interpreter changes the directory. However, the /c tag ensures the interpreter returns to the original session, and the directory stays unchanged.

To run a command and stay in the new session, use the /k parameter:

cmd /k cd ..
cmd command examples output

The /k parameter switches to the new session and runs the cd command to switch to the parent directory.

12. color Command

The color command changes the default console background and text colors. The command syntax is:

color [background][font]

The color attributes are hexadecimal numbers from 0 to f. The help window displays all the possible color options:

help color
color codes list CMD output

For example, to change the background to blue (1) and the font to light aqua (b), run:

color 1b
color 1b CMD color change

To return to the default console colors, run the color command without options.

13. comp Command

The comp command compares the contents of two files. The program inspects file bytes and outputs characters where the two files differ.

The syntax for the command is:

comp [file 1] [file 2] [options]

Without any options, the comp command starts an interactive prompt to enter file names and additional options.

To demonstrate how the command works, compare two text files with the following contents:

  • sample_file_1.txt contains test
  • sample_file_2.txt contains text

Run the comp command and provide the two file names:

comp sample_file_1.txt sample_file_2.txt
comp files CMD output

The output prints the comparison error as characters in hexadecimal format and asks to compare more files (enter N to exit).

To print the comp results in human-readable format, use the /a option:

comp /a sample_file_1.txt sample_file_2.txt
comp /a CMD output

The comparison fails at character s in the first file and character x in the second file.

14. compact Command

The compact command is a built-in feature for compressing files and folders. The syntax for the command is:

compact [options] [file_or_directory]

Without any options or parameters, compact displays the compression state in the current directory.

compact CMD output

To compress a file, use the /c parameter and provide the file name:

compact /c sample_file.txt
compact /C CMD output

To uncompress a file, use the /u parameter:

compact /u sample_file_1.txt
compact /u CMD output

The sample_file_1.txt file is returned to its previous, uncompressed state. Use the compact command to save disk space and compress large files and directories.

15. copy Command

The copy command copies one or multiple files from one location to another. The command syntax is:

copy [options] [source] [destination]

For example, to copy a file’s contents into a new file in the same location, use:

copy sample_file.txt sample_file_copy.txt

The command creates the new file and copies all the contents from the source file.

16. date Command

The date command shows and modifies the current date on the system. Without any parameters, the command prints the current date and requests to enter a new date:

date
date command CMD output

Enter the date as mm-dd-yyyy to change the current date on the system or exit with CTRL+C.

Use the /t parameter to avoid modifying the system state and only print the current date:

date /t
date /t CMD output

The command shows the day of the week and the current date.

17. defrag Command

The defrag (defragmentation) command finds and aggregates fragmented files on the system. The command reduces unnecessary empty data blocks and improves system performance.

The syntax for the defrag command is:

defrag [volumes] [options]

For example, to defragment the C:\ drive, run:

defrag C:\ /u /v
defrag CMD output

The /u parameter displays progress updates, while /v provides a verbose output. These parameters are optional.

18. del and erase Commands

The del and erase commands delete one or more files. The syntax for the commands is:

del [options] [file(s)]
erase [options] [files(s)]

Both commands permanently delete the specified file or files from a disk and are irretrievable.

For example, to delete a file with the name sample.txt, run:

del sample.txt

Or alternatively:

erase sample.txt

To avoid accidental deletion, use the /p parameter:

del /p sample.txt
del /p CMD output

The output shows a prompt with the file name and requires confirmation before deleting the file.

19. dir Command

The dir (directory) command lists directory contents, including files and subdirectories. The syntax for the command is:

dir [drive][path][filename] [options]

The dir command without options shows information for the current directory.

To show the C:\ drive contents, run:

dir C:\
dir C:\ CMD output

The output shows the following information:

  • Volume label and drive letter.
  • Volume serial number.
  • Directory contents with modification time.
  • File and directory count with their combined size.

20. diskpart Command

The diskpart command is a disk partitioning tool used to create, delete, and format partitions.

Enter the following command to access the diskpart interface:

diskpart

Once in diskpart, use the following command to list all disks:

list disk
The diskpart command in the Windows CMD.

The interface displays all available disks on the system and allows you to use diskpart commands to manage partitions.

21. DISM Command

The Deployment Imaging Service and Management (DISM) command is used to service and manage Windows images. It required administrator privileges. The command is useful for repairing system files or preparing images for deployment.

The general syntax for the DISM command is:

DISM /[target_image] /[operation] /[option]

For example, to repair corrupted files on the current Windows instance, use the following command:

DISM /Online /Cleanup-Image /RestoreHealth
Using the DISM command in the Windows CMD.

DISM is often used alongside the sfc command to ensure system integrity.

22. doskey Command

The doskey command starts the Doskey.exe program for the previously entered commands. The command helps recall command history and create macros.

For example, to see the command history from the current command prompt session, run:

doskey /history
doskey /history CMD output

The output shows all the commands from the CMD session from oldest to newest.

23. driverquery Command

The driverquery command displays the installed device drivers and their information. The command works for both local and remote access machines.

The syntax for the command is:

driverquery [options]
driverquery CMD output

Without options, driverquery shows device drivers on the local machine. Additional options control the output format or allow users to query remote machine drivers.

24. echo Command

The echo command prints a message to the console and controls command echoing in scripts. The syntax for the command is:

echo [message]

Without parameters, the command shows the current settings.

To display a «Hello, world!» message, enter:

echo "Hello, world!"
echo "Hello, world!" CMD output

The echo command often appears in scripts to print useful information while the script runs.

25. exit Command

The exit command ends the current batch script or the command interpreter session. The syntax for the command is:

exit [/b]
  • Use the /b parameter to exit a batch script but keep the Command Prompt session open.
  • Without the /b option, the exit command closes the Command Prompt session entirely.

26. fc Command

The fc (file compare) command compares two or more files and displays their differences.

The syntax for fc is:

fc [options] [file1] [file2] 

For example, to compare two sample files, sample_file_1.txt and sample_file_2.txt, run:

fc sample_file_1.txt sample_file_2.txt
fc CMD output

The command prints the file contents, indicating a difference between the two files.

27. find Command

The find command searches for a string within a file and prints matching lines. The command syntax is:

find ["string"] [file]

For example, to search for the string «text» in a file, use:

find "text" [file]
find text CMD output

The command looks for an exact match and returns the file name along with the line of text that contains the string. If a file does not contain the text, the command returns the file name without the text.

28. findstr Command

The findstr (find string) command performs a similar task to the find command. The command returns the whole line where the text is located without the file name. This feature makes it more convenient for use in scripts.

The command syntax is:

findstr ["string"] [file]

For example, to find a string «text» in a file, run:

findstr "text" [file]
findstr CMD output

If the command does not return a result, the string is not in the file.

29. ftype Command

The ftype (file type) command shows and changes a file type and extension association. The command syntax is:

ftype [filetype]=[open_command]

The filetype parameter is the file to show or modify (such as txtfile), while the open_command option is a string that calls a program to read the file type. The open_command string substitutes the file name into the open command to run a file in the provided program.

Without any options, ftype prints all file types and extension associations.

ftype CMD output

To show the current file type and extension association for text files, enter:

ftype txtfile
ftype txtfile CMD output

To remove file type association, append an (=) sign:

ftype txtfile=

The command omits the program for opening files and removes the program association.

30. getmac Command

The getmac command retrieves MAC addresses for all network cards on the computer or in the network. Additionally, it displays the network transport protocols associated with each MAC address.

The syntax is:

getmac [options]

Adding options provide detailed information about a remote computer or control the output display. For example, to show the MAC addresses in the CSV format, use:

getmac /fo csv
getmac /fo csv CMDoutput

Use the command to parse the MAC address to a network monitoring tool or to check the protocols on network adapters.

31. help Command

The help command shows detailed information about a specific command. Without any parameters, help lists all available system commands.

The syntax for the command is:

help [command]

For example, to view the help menu for the cd command, run:

help cd
help cd CMD output

Use any key to go through the pages if the help page is larger than the command line window. Alternatively, press CTRL+C to exit.

Note: For non-system commands, use the following format to see the help window:

[command] /?

32. hostname Command

The hostname command displays a machine’s host name. Run the command to see the name of the current machine:

hostname
hostname CMD output

The command does not have options, and providing additional parameters results in an error. The hostname command is available for systems with TCP/IP installed on a network adapter.

33. ipconfig Command

The ipconfig (IP configuration) command is a networking tool that shows all current TCP/IP network configuration information. The command also refreshes DHCP and DNS settings.

The syntax for the command is:

ipconfig [options]

Omitting options shows the basic TCP/IP configuration for all adapters:

ipconfig
ipconfig adapter CMD output

To show the full TCP/IP configuration for all adapters, run:

ipconfig /all

Renew the DHCP IP address for the local area connection with:

ipconfig /renew Local Area Connection

To flush the DNS cache, use:

ipconfig /flushdns

Use the command when troubleshooting DNS and network connectivity issues.

34. label Command

The label command shows, changes, or removes the volume label (name) of a disk. The command requires administrator privileges to perform any changes.

Without any options, the label command shows the label for the C:\ drive and starts a prompt to change the name:

label
label CMD output

Press Enter to remove the label, or enter a new name to change the current label name. Confirm the change with Y or press N to keep the existing name.

35. makecab Command

The makecab command creates a cabinet (.cab) file. Cabinet files are an archive format specific to Windows systems with support for lossless data compression and archive integrity.

Use the following syntax to create .cab files with the makecab command:

makecab [options] [source] [destination]

For example, to create a sample_cab.cab file in the current directory and add a sample_file.txt file to the archive, use:

makecab sample_file.txt sample_cab.cab
makecab CMD output

The output shows the compression progress and exits when done.

36. md and mkdir Commands

The md and mkdir (make directory) commands create a new directory or subdirectory. The command syntax is:

md [path]
mkdir [path]

For example, to make a new subdirectory called Subdir in the current location, run:

mkdir Subdir

The command extensions enable md and mkdir to create a directory tree:

md Subdir\Subsubdir
md tree CMD output

The command immediately creates all intermediate subdirectories in the specified path.

37. mklink Command

The mklink (make link) command creates a hard or symbolic link to a file or directory. The command requires administrator privileges to run and uses the following syntax:

mklink [options] [link] [target]

Without any additional options, the mlink command creates a symbolic link to a file. For example:

mklink my_link sample_file.txt
mklink CMD output

To create a hard link instead of a symbolic link, use the /h parameter:

mklink /h my_link sample_file.txt

Create a symbolic link to a directory with the /d parameter:

mklink /d \Docs \Users\user1\Documents

The dir command shows the links in the directory listing. To enter the directory, use the cd command and treat the link as a regular directory (cd Docs).

38. more Command

The more command is a Windows CMD utility for displaying long documents or outputs one screen at a time. To use more with a command, use the pipe (|) character:

[command] | more [options]

Alternatively, use the command to display long files page by page:

more [path]

For example, to view the output of the help cd command one screen at a time, use:

help cd | more
help cd | more CMD output

Press Enter to go to the following line and Space to go to the next page. To exit, press q.

39. mountvol Command

The mountvol command creates, removes, or shows a volume mount point. Mounting a volume makes data on a storage device available for local users through the file system.

The command syntax is:

mountvol [path] [volume_name]

The command does not require a drive letter to link a volume. Without any parameters, the mountvol command shows the help menu, mount points, and possible volume names.

For example, to list the volume name and current mount point for the C:\ drive, enter:

mountvol C:\ /l
mountvol C:\ /l CMD output

The output shows the Globally Unique Identifier (GUID) for the volume, which uniquely identifies the volume.

40. move Command

The move command transfers files or directories from one location to another. The syntax for the command is:

move [options] [source] [destination]

The source and destination are either a folder or a file. The move command renames a file if the source and destination locations are the same but have different file names.

For example, the following command renames a file named sample_file.txt to file.txt:

move sample_file.txt file.txt
move file rename CMD output

Provide the full path to move a file to another location:

move C:\Users\Public\Downloads\my_file.txt C:\Users\Public\Desktop\my_file.txt 

When overwriting an existing file, the command prompts for confirmation unless the command runs as part of a batch script.

41. msiexec Command

The msiexec program runs the Windows Installer program for installing, managing, and removing .msi software packages. The command syntax is:

msiexec [options] [path_to_package]

The program features various install, display, update, and repair options. Without any options, the msiexec command opens a window to show the command information.

msiexec CMD output help window

For example, to perform a normal installation of a .msi package, run:

msiexec /i "C:\example.msi"

The /i option indicates a normal installation of the .msi package located at the provided path.

42. msinfo32 Command

The msinfo32 command opens the System Information window, which displays detailed information about the system.

msinfo32 CMD output System Information window

The command syntax is:

msinfo32 [options]

Additional options filter the information or export data into specific file formats. For example, to export all system information into an .nfo file, use:

msinfo /nfo sysinfo.nfo

The command automatically appends the .nfo extension if omitted.

43. mstsc Command

The mstsc command launches the RDC (Remote Desktop Connection) program to connect to a remote machine. Use the command for remote connection or to alter an existing .rdp file.

The command syntax is:

mstsc [options] [file]

For example, to start an RDC session in full-screen mode, use this command:

mstsc /f
mstcs /f CMD Remote Desktop Connection window

To edit an existing connection, use the /edit parameter and provide the file name:

mstsc /edit example.rdp

User-created .rdp files are stored in the Documents folder by default.

44. net Commands

net commands are a set of tools for managing various network aspects, such as users and network services.

The command syntax is:

net [subcommand] [options]

Without additional parameters, the net command shows all available subcommands with a short description.

Use the net start command to list all running Windows services:

net start
net start CMD output

To stop a service, use the following command:

net stop [service]

View the login and password requirements for a user with the following:

net accounts
net accounts CMD output

Display additional help for a subcommand using the following syntax:

net help [subcommand]

The output shows a help window with detailed information for the provided subcommand.

45. netstat Command

The netstat (network statistics) command is an essential command for network administrators. The command lets you view connection details and various network statistics.

The basic syntax for the command is:

netstat [options]

The command displays active TCP connections when used without options. The output shows the protocol, local and foreign addresses, and the TCP connection state.

Add the -a option to display all active TCP connections and listening TCP and UDP ports:

netstat -a
netstat -a active all CMD output

Use the command to scan for open ports or to check the port protocol type.

46. nslookup Command

The nslookup command is a DNS diagnostic tool to query DNS records for web servers. The command features a non-interactive mode for looking up a single piece of information and an interactive mode for looking up additional data.

The syntax for nslookup is:

nslookup [host] [command] [options]

Without any options, nslookup enters interactive mode. To find DNS records for a specific domain name, use:

nslookup [domain]
nslookup phoenixnap CMD output

The output prints the A records for the provided domain.

47. path Command

The path command modifies the PATH environment variable. The variable contains a set of directories that point to executable files.

The command syntax looks like the following:

path [location]

Without any parameters, path shows the current state of the PATH variable.

path CMD output

To add multiple locations to PATH, separate each location with a semicolon (;) as in the following example:

path [location 1]; [location 2]

Both locations append to the variable.

48. ping Command

The ping command is an essential network troubleshooting tool used to test connectivity with another machine by sending ICMP request messages.

The syntax for the command is:

ping [options] [host]

For example, to check connectivity to the phoenixNAP website, use:

ping phoenixnap.com
ping CMD output

The output prints corresponding reply messages and round-trip times. Use the command to check for connectivity and name resolution issues.

49. powercfg Command

The powercfg (power configure) command runs the powercfg.exe program to manage system power plans. It also helps troubleshoot battery life and energy efficiency problems on a device.

The command syntax is:

powercfg [options] [arguments]

To list available power plans on a device, use:

powercfg /list
powercfg /list CMD output

The output lists all power schemes on the system. The active power scheme has an asterisk (*).

50. powershell Command

The powershell command opens a PowerShell session within the CMD to provide access to advanced scripting and management features.

Enter the following command to invoke PowerShell from CMD:

powershell

You can now run PowerShell commands. For example, the following PowerShell command lists running processes:

Get-Process
Using the PowerShell command within the Windows Command Prompt.

The output displays a list of active processes. To leave the PowerShell prompt and return to the CMD, type:

exit

Using PowerShell through CMD lets you quickly switch to a more robust scripting environment without leaving the session window.

51. prompt Command

The prompt command customizes the CMD prompt display to a specified string. By default, the prompt shows the current location and the greater-than sign (>).

The command syntax is:

prompt [string_and_variables]

The prompt command supports various variables to add special characters or features. For example, to change the prompt to an arrow, use:

prompt --$g
promt CMD output

The $g variable represents the greater-than sign (>). The prompt custom stays active during the command-line session.

52. rd and rmdir Commands

The rd and rmdir commands remove an empty directory from the system. The syntax for the commands is:

rd [path]
rmdir [path]

Attempting to delete a directory with files results in an error message. Add the /s parameter to delete a directory with subdirectories and files:

rd /s [path]

The command deletes the complete subdirectory tree and all files.

53. ren and rename Commands

The ren and rename commands rename files or directories. The syntax for the two commands is:

ren [path][old_name] [new_name]
rename [path][old_name] [new_name]

The commands do not allow moving the files to a different location. Wildcard characters work for multiple files. For example, to change all .txt files to .c files, use:

ren *.txt *.c
ren CMD output

The asterisk (*) wildcard matches all .txt files in the current directory and renames the files to have the .c extension.

54. robocopy Command

The robocopy command is a powerful tool for copying files and directories. The syntax for the command is:

robocopy [source] [destination] [file] [options]

The main benefit when using robocopy is the /mt parameter for higher-performance multithreading. Additionally, the /z parameter lets you restart a transfer in case of interruptions.

An example transfer looks like the following:

robocopy C:\Users\user\Downloads C:\Users\user\Documents database.db /mt /z
robocopy CMD output

Use the command for large file transfers that are sensitive to interruptions.

55. route Command

The route command shows and alters entries in the local routing table. The command syntax is:

route [options] [command] [value]

Available commands include:

  • add — Adds a route entry to the table.
  • change — Modifies an entry in the table.
  • delete — Removes a route from the table.
  • print — Displays a route or routes.

For example, to print all routes from the table, use:

route print 
route print CMD output

The output shows the interface list, as well as the IPv4 and IPv6 routing tables.

56. sc Command

The sc (service control) command allows users to manage Windows services without opening the Services Manager. Users can start, stop, query, and configure services from the command line.

The syntax for the sc command is:

sc query [service_name]

For example, to check the status of the Windows Update service, run:

sc query wuauserv
Using the sc command in the Windows CMD.

The output shows details about the service, including its status.

57. schtasks Commands

The schtasks command schedules commands or programs to run on the system at specified times or periodically and is often used to set up cron jobs. The syntax for the commands is:

schtasks /[subcommand]

The following subcommands are available:

  • change — Modifies existing properties of a task.
  • create — Creates a new task.
  • delete — Removes a task.
  • end — Stops a program started by a task.
  • query — Prints scheduled tasks on the machine.
  • run — Starts a scheduled task.

For example, to show currently scheduled tasks on the system, use:

schtasks /query
schtasks /query CMD output

The output displays task names, next run times, and task statuses.

58. set Command

The set command shows, sets, and removes environment variables in the CMD. The syntax for the command is:

set [variable]=[value]

Without additional parameters, the set command shows all environment variables.

set CMD output

The variables are available to use with any command. For example, to create a new CMD variable called message, use:

set message="Hello, world!"

Reference the variable using the following syntax:

echo %message%
set env variable message CMD output

Encasing the variable in the percent signs (%) reads the value and outputs it to the screen.

Note: The variables do not persist and are only valid for the current command-prompt session.

59. sfc Command

The sfc (System File Checker) is an administrator command for checking protected file version integrity. It also replaces incorrect overwritten protected files with the correct file version.

The syntax for the command is:

sfc [options] [file_or_directory]

For example, to scan the system and repair all files, use:

sfc /scannow
sfc /scannow CMD output

The command scans all protected system files and repairs problematic files when possible.

60. shutdown Command

The shutdown command restarts or shuts down a local or remote computer. The command syntax is:

shutdown [options]

Without any arguments, the shutdown command opens the help menu. To restart the computer, use the /r option:

shutdown /r
shutdown /r CMD output

To shut down without restarting, use the /s argument:

shutdown /s

In both cases, the shutdown is not immediate. To cancel the action, use the /a option:

shutdown /a

The option ensures that a previously executed shutdown command is aborted.

61. sort Command

The sort command allows sorting provided data from a file or user input. Additional options control the sorting mechanism and from which point to start sorting.

To use the command interactively, do the following:

1. Run sort without any options.

2. Enter a new word in each line.

3. Press CTRL+Z and Enter at the end of the list to sort the input values alphabetically.

sort CMD output

Alternatively, use the sort command on files:

sort sample_file.txt
sort file CMD output

The command sorts the file contents and prints the result to the console.

62. start Command

The start command opens a new Command Prompt window according to the specified options. The command syntax is:

start [title] [options]

For example, to open a new Command Prompt session with the title «Hello, world!» and set the path to C:\. enter the following command:

start "Hello, world!" /d C:\
start command CMD prompt output

A new CMD window opens with the starting path on the C:\ drive and a custom title.

63. systeminfo Command

The systeminfo command displays detailed system information about the OS and computer, including hardware properties. The command works on both local and remote machines.

Use the command without options to show the local system information:

systeminfo
systeminfo CMD output

Additional options allow you to retrieve system information for remote computers or control the output format. For example, show the output in CSV format with:

systeminfo /fo csv

Different formats enable you to effectively parse the information through scripts.

64. takeown Command

The takeown (take ownership) command allows an administrator account to take ownership of a file. It provides access to a file for an administrator and makes the administrator the owner.

Add the /f option and specify the file name:

takeown /f [file]
takeown CMD output

The administrator now has full permissions over the file.

65. taskkill Command

The taskkill command terminates a running process or task on the Windows system through the command line. It is useful for forcefully ending unresponsive processes.

The syntax for the command is:

taskkill [options] [task_or_process]

A common way to end a task is to find the process ID (PID) with the tasklist command and end the process with:

taskkill /pid [Process ID]
taskkill PID CMD output

The command finds the process by ID and forcibly stops it.

66. tasklist Command

The tasklist command shows all running processes on a local or remote computer and their memory usage. It helps identify and reference specific processes.

The syntax for tasklist is:

tasklist [options]

Without additional options, the command shows all currently running processes.

tasklist CMD output

The image name and PID are unique identifiers for a process. The final column shows the memory usage for a process. This is a good indicator for identifying processes that slow down the system.

67. telnet Command

The telnet command is a Windows tool for bidirectional CLI communication. The tool uses the Telnet protocol to send messages and enable an interactive communication channel with remote devices.

The syntax for the command is:

telnet [command] [option]

See our detailed guide for using Telnet on Windows.

68. time Command

The time command manages and displays the current system time. Without any options, the command prints the current time and prompts to enter a new time:

time
time CMD output

Enter a new time to change the system time or exit the prompt using CTRL+C. Use the /t option to avoid making modifications:

time /t
time t cmd output

The command prints the current time and returns to the command line.

69. timeout Command

The timeout command pauses the command line for a specified number of seconds. The syntax for the command is:

timeout /t [seconds]

For example, to pause the interpreter for ten seconds, run:

timeout /t 10
timeout /t 10 cmd output

The output counts down and returns to the command line. Press any key to interrupt the timeout earlier. Use the command in scripts to wait for execution between two commands.

70. title Command

The title command is a simple utility for changing the title of the Command Prompt window. The syntax is:

title [string]

For example, to set the title to "Hello, world!", use:

title "Hello, world!"
title command prompt change CMD

The CMD window title changes to the provided string. Use the command when running multiple batch scripts to distinguish between different command prompts.

71. tracert Command

The tracert (traceroute) command is a networking tool that maps the path from a local computer to a destination. It sends ICMP messages with increasing TTL values to map routers along the path.

The syntax for tracert is:

tracert [option] [destination]

For example, to trace the path to phoenixnap.com, use:

tracert phoenixnap.com

Alternatively, use the IP address of the destination.

Output of tracert on Windows

The output shows the hops between the source and destination, providing an IP address and name resolution where applicable. Use the command to discover connectivity issues to a host.

72. tree Command

The tree command displays the contents inside a drive or directory in a tree-like structure. The syntax is:

tree [option] [path]
tree CMD output

Without options, the tree command displays the directory structure of the C:\ drive.

73. type Command

The type command displays the contents of a file directly in the Command Prompt without modifying it.

The syntax for the type command is:

type [file_path]

For example, to show the contents of the file called sample_file.txt, run:

type sample_file.txt
type file CMD output

The output prints the file’s contents to the command line. Use this command to preview files directly in the command prompt.

74. tzutil Command

The tzutil (time zone utility) command modifies and displays the system’s timezone settings.

Display the current time zone with:

tzutil /g
tzutil /g CMD output

The output shows the time zone ID. List all available time zone IDs with:

tzutil /l | more

The more command helps truncate long outputs. Use the /s parameter and provide the time zone ID to change the system timezone.

75. ver Command

The ver command is a simple utility to show the operating system version. To display the OS version, enter:

ver
ver CMD output

The output displays the OS version and returns to the command line.

76. vol Command

The vol command prints the disk volume label and serial number. The syntax for the command is:

vol [drive]:
vol C: CMD output

Without a specified drive, the vol command shows information for the currently selected drive.

77. where Command

The where command locates a file based on the search pattern and displays its path in the command line. The syntax for the command is:

where [options] [search_location] [filename]

Omitting the location searches for the file in the current directory without going through subdirectories. To perform a recursive search, add the /r parameter. For example:

where /r C:\ sample_file.txt
where CMD output

The command searches the C:\ drive and all subdirectories. If the file is found, the command returns the its full location path.

78. whoami Command

The whoami command shows the current user’s domain and username. The syntax for the command is:

whoami [option]

Without options, the command shows the domain and user name.

whoami CMD output

Add the /all parameter to show detailed information for the current user:

whoami /all
whoami /all CMD output

The user’s name, security ID, groups, and privileges are displayed.

79. wmic Command

The wmic (Windows Management Instrumentation Command-line) is used to query hardware details, software configurations, and access other system information and settings.

The syntax for the wmic command is:

wmic [alias] [where_clause] [get/set/call] [property]
  • alias — Specifies the area of the system to query (e.g., cpu, os, product).
  • where clause — Adds conditions to narrow down the query.
  • operation — Defines the action, typically get (retrieve), set (modify), or call (execute an action).
  • property — Lists specific properties to display, retrieve, or modify.

For example, to get a list of all installed applications, enter:

wmic product get name
Using the wmic command in the Windows Command Prompt.

The output shows a list of installed programs.

80. xcopy Command

The xcopy command copies files, directories, and subdirectories from one location to another. The syntax for the command is:

xcopy [source] [destination] [options]

For example, use the following command to copy contents from one location to another, including subdirectories (even if empty):

xcopy [source] [destination] /s /e
xcopy CMD output

The /s parameter copies subdirectories, while /e includes empty directories. If any files with the same name exist in the destination, the command prompts before overwriting.

Windows CMD Commands Cheat Sheet

The essential commands are available in a single-page cheat sheet in PDF format. Save the cheat sheet for future use and reference by clicking the Download Windows CMD Commands Cheat Sheet button below.

Windows CMD Commands Cheat Sheet PDF preview

Other Command Prompt Commands

The commands listed in the table are used less frequently by regular Windows users. IT professionals rely on these commands to manage Windows Servers, troubleshoot system processes, configure network settings, and perform other specialized tasks in a business environment:

Command Description Compatibility
accept Allow the server to accept files or services from the network. Windows XP, Windows Server 2003
addusers List or add users in a batch. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
adprep Prepare a server for Active Directory installation. Server versions only Windows Server 2003 and later
auditpol Set and display audit policies on a system. Windows 7, Windows 8, Windows 10, Windows 11
autoconv Configure automatic file-system conversion during a system restart. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
autofmt Format media for an automatic conversion. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
bcdedit Manage boot configuration data (BCD). Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
bdehdcfg Configure and prepare a hard drive for BitLocker Drive Encryption. Windows 7, Windows 8, Windows 10, Windows 11
bootsect Update the master boot code for hard disk partitions to switch between bootloaders. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
call Call a batch file from another batch file. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
certmgr Manage certificates for a computer, service, or user. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
certreq Manage certificate requests. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
certutil Manage certificates and certificate stores. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
change Adjust Terminal Server settings, logons, and COM port mappings. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
chcp Set or display the active code page number. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
chdir Change the current directory or display its name. MS-DOS, Windows 95, Windows 98, Windows XP, Windows NT, Windows 10, Windows 11
checknetisolation Set up network isolation testing for Microsoft Store apps. Windows 8, Windows 10, Windows 11
chglogon Enable or disable logons on a terminal server. Windows XP, Windows Server 2003
chgport Display or change COM port mappings for DOS applications. Windows XP, Windows Server 2003
chgusr Modify the install mode for the terminal server. Windows XP, Windows Server 2003
chkntfs Modify settings or display the disk check at startup. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
cmdkey List, create, and delete stored passwords and usernames. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
convert Convert FAT volumes to NTFS. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
cscript Run scripts from the command line. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
dcpromo Promote or demote a domain controller. Server versions only Windows Server 2000, 2003, 2008
diantz Compress files for distribution. Windows XP, Windows Vista, Windows 7
diskperf Enable or disable disk performance counters. Windows XP, Windows Server 2003
diskraid Configure and manage RAID arrays. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
dism Manage Windows images. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
diskshadow Create and manage shadow copies of disks. Windows Server 2008, Windows 7, Windows 8, Windows 10, Windows 11
dispdiag Dump the contents of the Windows display log. Windows 7, Windows 8, Windows 10, Windows 11
djoin Provision a computer account in the Windows Active Directory (AD) and join the computer to a domain. Windows 7, Windows 8, Windows 10, Windows 11
dsadd Add objects to the Windows Active Directory (AD). Server versions only Windows Server 2003 and later
dsget Display object properties in the Windows Active Directory (AD). Server versions only Windows Server 2003 and later
dsquery Find objects in the Active Directory. Server versions only Windows Server 2003 and later
endlocal End localization of environment changes in a batch file. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
erase Delete one or more files. MS-DOS, Windows 95, Windows 98, Windows XP, Windows 10, Windows 11
esentutil Utility for managing Extensible Storage Engine (ESE) databases. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
eventcreate Create a custom event in the event log. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
expand Expand one or more compressed files. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
finger Display information about a user on a specified remote computer. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
fltmc Manage system filter drivers. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
fondue Install optional Windows features. Windows 8, Windows 10, Windows 11
for Run a specified command for each file in a set or directory. MS-DOS, Windows 95, Windows 98, Windows XP, Windows 10, Windows 11
forfiles Select a file or set of files and execute a command on that file. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
format Format a disk for use with Windows. MS-DOS, Windows 95, Windows 98, Windows XP, Windows 10, Windows 11
fsutil Perform tasks related to file systems, such as managing file system quotas. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
ftp Transfer files to and from a remote network using FTP. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
goto Instruct a batch program to jump to a labeled line. MS-DOS, Windows 95, Windows 98, Windows XP, Windows 10, Windows 11
gpresult Show Group Policy settings and RSoP for a user or device. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
gpupdate Update Group Policy settings. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
hwrcomp Compile handwriting recognition data. Windows XP, Windows Vista, Windows 7
hwrreg Register handwriting recognizer. Windows Vista, Windows 7
icacls Show or modify access control lists for files and directories. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
if Perform conditional processing in batch files. MS-DOS, Windows 95, Windows 98, Windows XP, Windows 10, Windows 11
inuse Replace files used by the operating system. Windows XP
irftp Send files over an infrared connection. Windows XP, Windows Vista
iscsicli Manage iSCSI sessions and devices. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
klist List Kerberos tickets for the current logon session. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
ksetup Configure Kerberos settings and realm information. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
ktmutil Control Kernel Transaction Manager (KTM) resource managers. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
licensingdiag Generate a licensing diagnostics report. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
lodctr Use to update Performance Monitor counter names and to explain text for an extensible counter. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
logman Schedule performance counters and event trace sessions. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
logoff Log off a user from a session. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
lpr Send a file to a computer or printer-sharing device. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
lpq Show the status of a printer queue for a computer or printer. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
manage-bde Configure BitLocker Drive Encryption. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
mode Configure a system device, like a port or printer. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
mofcomp Compile Managed Object Format (MOF) files. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
mount Mount a network file system. Requires additional tools to run, such as the Windows Subsystem for Linux (WSL). Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
mrinfo Display information about a multicast router. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
msg Send a message to a user or session. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
muiunattend Manage unattended installs for Multilingual User Interface (MUI) packages. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
nbtstat Display protocol statistics and current TCP/IP connections using NetBIOS over TCP/IP. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
net1 A legacy version of the net command. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
netcfg Install various network components. Windows 8, Windows 10, Windows 11
netsh Configure and manage network settings and components. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
netdom Join a computer to a domain or manage domain trusts. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
nfsadmin Manage Network File System (NFS) server and client services. Windows Server 2003, Windows Server 2008
nltest Perform network administrative tasks and verify trust relationships. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
ocsetup Install, list, or uninstall optional components in Windows. Windows Vista, Windows 7
openfiles View and disconnect files and folders opened by network users. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
pagefileconfig Set up or display pagefile settings. Windows XP, Windows Vista
pathping Combine the ping and traceroute commands for network path information. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
pause Pause the execution of a batch file until you press a key. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
perfmon Open the Performance Monitor utility. GUI only Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
pkgmgr Install, configure, or uninstall Windows packages. Windows Vista, Windows 7
pnpunattend Install device drivers automatically. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
pnputil Manage various device drivers. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
popd Restore the previous value of the current directory saved by pushd. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
print Print a text file. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
pushd Save the current directory and then change it. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
pwlauncher Turn on Windows To Go startup options. Windows 8, Windows 10
qappsrv Display all Remote Desktop Session Host servers on the network. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
qprocess Show information about processes on a system. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
query Display information about servers, sessions, or processes. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
quser Display information about user sessions on a Remote Desktop Session Host server. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
qwinsta Display information about sessions on a Remote Desktop Session Host server. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
rasautou Manage automatic dialing for RAS connections. Windows XP, Windows Vista, Windows 7
rasdial Connect to a remote network. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
rdpsign Digitally sign Remote Desktop Protocol (RDP) files. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
reagentc Set up the Windows Recovery Environment (WinRE). Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
recover Recover readable information from a damaged disk. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
reg Manage the Windows Registry. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
regedit Access the Windows Registry Editor. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
regini Modify the Windows Registry. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
register-cimprovider Register a Common Information Model (CIM) provider with Windows Management Instrumentation (WMI). Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
regsvr32 Register OLE controls and DLLs. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
relog Extract performance counter data from a log file. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
rem Add comments within batch files or scripts. MS-DOS, Windows 95, Windows 98, Windows XP, Windows 10, Windows 11
repair-bde Recover data from a damaged BitLocker-encrypted drive. Windows 7, Windows 8, Windows 10, Windows 11
replace Replace files. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
reset Reset a session in a Remote Desktop environment. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
rmdir Remove a directory. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
rmtshare Manage shared resources remotely. Windows 2000, Windows XP
rpcinfo Show RPC information. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
rpcping Test remote procedure call (RPC) connectivity. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
runas Run a program as another user. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
rwinsta Reset the session subsystem hardware and software to default. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
sc Manage services from the command line. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
scconfig Configure service startup types and service recovery options. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
sdbinst Install and uninstall application compatibility databases. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
secedit Analyze and configure system security settings. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
setlocal Begin localization of environment changes in a batch file. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
setspn Manage Service Principal Names (SPN) for Active Directory. Windows 2000, Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
setx Create or modify environment variables in the user or system environment. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
shadow Monitor and control a Remote Desktop session. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
shift Reposition replaceable parameters in a batch file. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
showmount Display mounted remote NFS file systems. Windows Server 2003, Windows Server 2008
sigverif Verify the integrity of system files. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
subst Associate a path with a drive letter. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
sxstrace Trace issues with side-by-side assemblies. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
tcmsetup Set up Telephony Application Programming Interface (TAPI) clients. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
tpmvscmgr Manage Trusted Platform Module (TPM) virtual smart cards. Windows 8, Windows 10, Windows 11
tracerpt Process logs or real-time trace data. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
tscon Connect a user to a session on a Remote Desktop Session Host server. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
tsdiscon Disconnect a Remote Desktop Services session. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
tskill Terminate a process by its process ID or name. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
typeperf Write performance data to the command window or a log file. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
tzutil Display or set the system time zone. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
umount Unmount network file systems. Windows Server 2003, Windows Server 2008
unlodctr Unload Performance Monitor counter names and explain text for an extensible counter. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
vaultcmd Manage credentials in the Windows Vault. Windows 7, Windows 8, Windows 10, Windows 11
verify Check if files are written correctly to a disk. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
vssadmin Set up Volume Shadow Copy services. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
w32tm Configure Windows Time service settings. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
waitfor Send or wait for a signal on a system. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
wbadmin Manage backup and restore operations. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
wecutil Manage subscriptions to Windows Event Collector (WEC). Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
wevtutil Manage Windows Event Log. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
winmgmt Manage the Windows Management Instrumentation (WMI) service. Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
winrm Manage Windows Remote Management. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
winrs Initiate remote commands on a remote computer. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
wmic Command-line interface for Windows Management Instrumentation (WMI). Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
wsmanhttpconfig Configure Windows Remote Management (WinRM) and HTTP settings. Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
xwizard Access the Windows Experience Wizard for performance and reliability testing. Windows Vista, Windows 7, Windows 8

Deprecated and Obsolete CMD Commands

Over the years, many CMD commands have been replaced with modern alternatives, and some do not work in the latest Windows releases. However, older industrial machines, medical devices, ATMs, or even gaming enthusiasts may still operate machines that run on MS-DOS, Windows 95, and other obsolete systems.

The following table lists deprecated and obsolete CMD commands:

Command Description Status Compatibility
append Control the path used to search for files in MS-DOS applications. Deprecated MS-DOS, Windows 95, Windows 98
at Schedule commands and programs to run on a computer at a specified time. Deprecated and replaced by schtasks in later Windows versions. Windows XP, Windows Vista, Windows 7
atmadm Display information about asynchronous transfer mode (ATM) connections. Deprecated Windows 2000, Windows XP
bitsadmin Manage Background Intelligent Transfer Service (BITS) jobs. Deprecated and replaced by PowerShell cmdlets like Start-BitsTransfer. Windows XP, Windows Vista, Windows 7
bootcfg Configure boot file settings (boot.ini). Deprecated and replaced by bcedit in modern systems. Windows XP, Windows Server 2003
break Enable or disable the CTRL+C feature to interrupt running scripts or commands. Deprecated but retained for backward compatibility. MS-DOS, Windows 95, Windows 98, Windows XP, Windows Vista, Windows 7, Windows 8, Windows 10, Windows 11
cacls Modify access control lists (ACLs) of files. Deprecated in favor of icacls. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
cmdstp Stop a command processor started with the /k option. Deprecated Windows XP
command Start a new command interpreter instance in MS-DOS. Obsolete. Replaced by cmd. MS-DOS, Windows 95, Windows 98
ctty Change the terminal device used to control MS-DOS. Obsolete and no longer supported due to modern terminal management. MS-DOS, Windows 95, Windows 98
dblspace Compress drives to increase disk space. Obsolete MS-DOS, Windows 95
debug Start the Debug tool to test and edit programs. Deprecated MS-DOS, Windows 95, Windows 98, Windows XP
deltree Delete an entire directory, including subdirectories. Deprecated MS-DOS, Windows 95, Windows 98
diskcomp Compare the contents of two floppy disks. Obsolete MS-DOS, Windows 95, Windows 98
diskcopy Copy the contents of one floppy disk to another. Obsolete MS-DOS, Windows 95, Windows 98
dosshell Open the DOS Shell graphical interface. Obsolete MS-DOS, Windows 95
dosx Load the DOS Protected Mode Interface. Obsolete MS-DOS
drvspace Compress drive to increase disk space. Obsolete MS-DOS, Windows 95
edit Start the MS-DOS text Editor. Deprecated MS-DOS, Windows 95, Windows 98, Windows XP
edlin Create and edit text files in MS-DOS. Obsolete MS-DOS, Windows 95
emm386 Enable or disable EMM386 expanded memory support in MS-DOS. Obsolete MS-DOS, Windows 95
eventtriggers Configure event triggers to send notifications. Deprecated and replaced by Task Scheduler. Windows XP, Windows Vista
exe2bin Convert .exe files to binary format. Obsolete MS-DOS
extrac32 Extract CAB files (Windows Cabinet files). Deprecated Windows XP, Windows Vista
extract Extract files from a compressed file. Obsolete Windows 95, Windows 98
fasthelp Help for MS-DOS commands. Obsolete. The help command offers similar functionality. MS-DOS, Windows 95
fastopen Improve the performance of frequently used applications. Obsolete MS-DOS, Windows 95
fdisk Partition and configure hard drives. Deprecated and replaced by diskpart. MS-DOS, Windows 95, Windows 98
forcedos Start a program in MS-DOS compatibility mode. Obsolete Windows 95, Windows 98
graphics Load a program that prints graphics screens. Obsolete MS-DOS, Windows 95
graftabl Display extended character sets in graphics mode. Obsolete MS-DOS, Windows 95, Windows 98
interlnk Connect two computers via serial or parallel ports. Obsolete MS-DOS
intersvr Start the Interlnk server to share files over serial or parallel ports. Obsolete MS-DOS
ipxroute Manage IPX routing tables for Novell networks. Obsolete Windows 95, Windows 98, Windows NT
kb16 Use a specific keyboard layout for MS-DOS. Deprecated MS-DOS, Windows 95, Windows 98
keyb Configure the keyboard layout for MS-DOS. Obsolete MS-DOS, Windows 95, Windows 98
lh Load a program into upper memory. Obsolete MS-DOS, Windows 95
loadfix Load a program above the first 64K of memory to avoid conflicts. Obsolete MS-DOS, Windows 95
loadhigh Load a program into upper memory. Obsolete MS-DOS, Windows 95, Windows 98
lock Lock a drive to allow direct disk access. Deprecated MS-DOS, Windows 95, Windows 98
mem Display memory usage statistics. Obsolete MS-DOS, Windows 95
memmaker Optimize memory usage. Obsolete due to modern automatic memory management. MS-DOS
msav Start Microsoft AntiVirus. Obsolete MS-DOS
msbackup Create or restore backups in MS-DOS. Obsolete MS-DOS, Windows 95
mscdex CD-ROM access in MS-DOS. Obsolete MS-DOS, Windows 95
msd Start Microsoft Diagnostics. Obsolete MS-DOS, Windows 95
nlsfunc Load country-specific information for the MS-DOS program. Obsolete MS-DOS, Windows 95
ntbackup Back up and restore files. Deprecated and replaced by Windows Backup and Restore. Windows NT, Windows 2000, Windows XP
ntsd Start the NT Symbolic Debugger. Obsolete Windows XP, Windows Server 2003
pentnt Detect floating-point division errors in Intel Pentium chips. Obsolete Windows 95, Windows 98, Windows NT
power Turn power management on or off in MS-DOS. Obsolete and replaced by the powercfg command on modern systems. MS-DOS, Windows 95
qbasic Start the QBasic programming environment. Obsolete MS-DOS, Windows 95, Windows 98
rcp Copy files to and from devices using the rshd daemon. Obsolete and deprecated as it does not encrypt connections. Windows XP, Windows 7, Windows 8
recimg Create a custom recovery image for Windows. Deprecated Windows 8
restore Restore files backed up with the backup command. Obsolete MS-DOS, Windows 95, Windows 98
rexec Execute commands on remote computers using the Rexec service. Obsolete due to security concerns. Windows XP, Windows 7, Windows 8
rsh Run commands on remote computers running the RSH (Remote Shell) service. Obsolete due to security concerns. Windows XP, Windows 7, Windows 8
rsm Manage removable storage media from the command line. Deprecated Windows XP, Windows Server 2003
scandisk Check and repair file system errors on a disk. Deprecated and replaced with the chkdsk command. MS-DOS, Windows 95, Windows 98
scanreg Scan and back up the Windows Registry. Obsolete Windows 95, Windows 98, Windows Me
setever Set the version number that MS-DOS reports to a program. Obsolete MS-DOS, Windows 95, Windows 98
share Install file-sharing and locking capabilities in MS-DOS. Obsolete MS-DOS, Windows 95
smartdrv Enable disk caching to improve performance in MS-DOS. Obsolete MS-DOS, Windows 95, Windows 98
sys Copy system files to a disk and make it bootable. Obsolete MS-DOS, Windows 95, Windows 98
tftp Transfer files to and from a remote computer using TFTP. Deprecated due to security concerns. Windows XP, Windows 7, Windows 8, Windows 10, Windows 11
tlntadmn Manage a Telnet server. Deprecated Windows 2000, Windows XP, Windows Server 2003
tsshutdn Restart or shut down a Terminal Services server. Depreacted Windows 2000, Windows Server 2003
undelete Recover deleted files in MS-DOS. Obsolete MS-DOS, Windows 95
unformat Recover a disk that was accidentally formatted. Obsolete MS-DOS, Windows 95
unlock Unlock a drive to allow direct disk access. Deprecated MS-DOS, Windows 95, Windows 98
vsafe Enable antivirus protection in MS-DOS. Obsolete MS-DOS
winstat Display system statistics in MS-DOS. Obsolete MS-DOS

Conclusion

After reading this comprehensive guide, you have a solid overview of nearly 300 Windows CMD commands and can perform a wide range of system tasks.

You can use CMD commands to set up cron jobs in Windows and automate repetitive everyday tasks.

Was this article helpful?

YesNo

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows xp critical stop mp3
  • Alt tab windows 11 настройка
  • Закрепить приложение поверх всех окон windows 10
  • Как сделать папку пользователи на английском windows 10
  • Служба установщик windows можно ли отключить