List command in windows command prompt

A complete list of the over 280 Command Prompt commands across Windows 11, 10, 8, 7, Vista, and XP, including full descriptions of each CMD command.
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 for use by Internet Explorer but can be used to 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 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:Windowswinsxs 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.

Command Prompt on Windows is a powerful tool with nearly 300 commands to perform various functions. Some are now depreciated. You can perform various system tasks using the commands on Command Prompt. In this post, we have compiled the complete list of Command Prompt commands that are currently in use, from various documents on Microsoft.com and its subdomains. This list is long to follow but will certainly be a guide for you with all the working commands in a single location.

The following is the complete list of 293 Command Prompt commands you can use to do various tasks on the system.

Command Prompt Command Function or Usage addusers Addusers command is used to add or list users to and from a CSV file append Allows programs to open data files in specified directories as if they were in the current directory. If used without parameters, the append displays the appended directory list. arp This command is used to display or modify entries in the Address Resolution Protocol Cache.  assoc The Assoc command is used to display or modify the file type associated with a particular file extension.  at This command is used to schedule commands and programs to run at a particular date and time.  attrib This command is used to change the attributes of a file or a directory.  auditpol Auditpol command is used to display or change audit policies on the System.  bcdboot Bcdboot command enables you to set up system partition quickly, or to repair the boot environment on the system partition. The system partition is set up by copying a simple set of Boot Configuration Data (BCD) files to an existing empty partition bcdedit Bcdedit is used to manage BCD stores. It can be used in different instances like creating new stores, modifying existing ones, adding boot menu parameters, etc.  bdehdcfg This command prepares a hard drive with the partitions for BitLocker Drive Encryption.  bitsadmin Bitsadmin command-line tool is used to create, download or upload jobs and to monitor their progress. bootcfg Bootcfg command is used to configure, make queries, or change Boot.ini file settings.  break Break command sets or clears extended CTRL+C checking on MS-DOS systems. If used without parameters, break displays the existing setting value. cacls Cacls command is used to display or modify discretionary access control lists (DACL) on specified files call Call command is used to Calls one batch program from another without stopping the parent batch program. The call command accepts labels as the target of the call. It has no effect at the Command Prompt when used outside of a script or batch file.  cd Cd command is used to display the name of the current directory or change the current directory. If you use cd without parameters, it displays the current drive and directory. It is the same as chdir command.  certreq The Certreq command is used to request certificates from the Certification Authority. You can also retrieve a response to a previous request from a CA,  to create a new request from a .inf file, accept and install a response to a request, to construct a cross-certification or qualified subordination request from an existing CA certificate or request, and to sign a cross-certification or qualified subordination request. certutil Certutil is a command-line tool available as a part of Certificate Services. You can use this command to dump and display certification authority configuration information, configure Certificate service, backup and restore CA components, and verify certificates, key pairs, and certificate chains. If certutil is run on a certification authority without additional parameters, it displays the current certification authority configuration.  change Change command is used to change Remote Desktop Session Host server settings for logons, COM port mappings, and install mode.  chcp Chcp command-line tool is used to change the active console code page. If you use it without any parameter, it displays the number of the active console code page.  chdir Chdir command is used to display the name of the current directory or change the current directory. If you use cd without parameters, it displays the current drive and directory. chglogon Chglogon command is used to enable or disable logons from client sessions on an Remote Desktop Session Host server or is used to display the current login status.  chgport Chgport command lists or changes the COM port mappings to be compatible with MS-DOS applications.  chgusr Chgusr changes the install mode for the Remote Desktop Session Host Server.  chkdsk Chkdsk command is used to check the file system and file system metadata of a volume for logical and physical errors. If used without parameters, chkdsk displays only the status of the volume and does not fix any errors. If used with the /f, /r, /x, or /b parameters, it fixes errors on the volume. chkntfs Chkntfs command Displays or modifies automatic disk checking when the computer is started. If used without options, chkntfs displays the file system of the specified volume. If automatic file checking is scheduled to run, chkntfs displays whether the specified volume is dirty or is scheduled to be checked the next time the computer is started. choice Choice command prompts the user to select one item from a list of single-character choices in a batch program and then returns the index of the selected choice. If used without parameters, choice displays the default choices Y and N. cipher Displays or alters the encryption of directories and files on NTFS volumes. If used without parameters, cipher displays the encryption state of the current directory and any files it contains. cleanmgr Cleanmgr command clears unnecessary files from your computer’s hard disk. You can use command-line options to specify that Cleanmgr cleans up Temp files, Internet files, downloaded files, and Recycle Bin files. You can then schedule the task to run at a specific time by using the Scheduled Tasks tool. clip Clip command redirects the command output from the command line to the Windows clipboard. You can use this command to copy data directly into any application that can receive a text from the Clipboard. You can also paste this text output into other programs. cls Cls command is used to clear the command prompt window.  cmd Cmd command starts a new instance of Cmd.exe. If used without parameters, cmd displays the version and copyright information of the operating system. cmdkey Cmdkey creates, lists, and deletes stored user names and passwords or credentials. cmstp Cmstp command installs or removes a Connection Manager service profile. Used without optional parameters, cmstp installs a service profile with default settings appropriate to the operating system and to the user’s permissions. color Color command changes the foreground and background colors in the Command Prompt window for the current session. If used without parameters, color restores the default Command Prompt window foreground and background colors. comp Compares the contents of two files or sets of files byte-by-byte. These files can be stored on the same drive or on different drives, and in the same directory or in different directories. When this command compares files, it displays their location and file names. If used without parameters, comp prompts you to enter the files to compare. compact Compact displays or alters the compression of files or directories on NTFS partitions. If used without parameters, compact displays the compression state of the current directory and any files it contains. convert Converts a disk from one disk type to another copy Copies one or more files from one location to another. cscript Cscript command starts a script to run in a command-line environment. date Date command displays or sets the system date. If used without parameters, date displays the current system date setting and prompts you to enter a new date. defrag Defrag command locates and consolidates fragmented files on local volumes to improve system performance. del Del command Deletes one or more files. This command performs the same actions as the erase command.

The del command can also run from the Windows Recovery Console, using different parameters.

delete Deletes a partition or a volume. It also deletes a dynamic disk from the list of disks. dir Displays a list of a directory’s files and subdirectories. If used without parameters, this command displays the disk’s volume label and serial number, followed by a list of directories and files on the disk (including their names and the date and time each was last modified). For files, this command displays the name extension and the size in bytes. This command also displays the total number of files and directories listed, their cumulative size, and the free space (in bytes) remaining on the disk. diskcomp Compares the contents of two floppy disks. If used without parameters, diskcomp uses the current drive to compare both disks. diskcopy Copies the contents of the floppy disk in the source drive to a formatted or unformatted floppy disk in the destination drive. If used without parameters, diskcopy uses the current drive for the source disk and the destination disk. diskpart The diskpart command interpreter helps you manage your computer’s drives (disks, partitions, volumes, or virtual hard disks). diskperf The diskperf command remotely enables or disables physical or logical disk performance counters on computers running Windows. diskraid Diskraid is a command-line tool that enables you to configure and manage a redundant array of independent (or inexpensive) disks (RAID) storage subsystems. dism Dism command starts the Deployment Image Servicing and Management tool (DISM) dispdiag Logs display information in a file. dnscmd A command-line interface for managing DNS servers. This utility is useful in scripting batch files to help automate routine DNS management tasks or to perform simple unattended setup and configuration of new DNS servers on your network. doskey Calls Doskey.exe, which recalls previously entered command-line commands, edits command lines, and creates macros. driverquery Enables an administrator to display a list of installed device drivers and their properties. If used without parameters, driverquery runs on the local computer. echo Displays messages or turns on or off the command echoing feature. If used without parameters, echo displays the current echo setting. edit Starts the MS-DOS Editor, which creates and changes ASCII text files. endlocal Ends localization of environment changes in a batch file and restores environment variables to their values before the corresponding setlocal command was run. erase Deletes one or more files. If you use erase to delete a file from your disk, you can’t retrieve it. eventcreate Enables an administrator to create a custom event in a specified event log. eventcmd Configures the translation of events to traps, trap destinations, or both based on information in a configuration file. exec Runs a script file on the local computer. This command also duplicates or restores data as part of a backup or restore sequence. If the script fails, an error is returned and DiskShadow quits. exit Exits the command interpreter or the current batch script. expand Expands one or more compressed files. You can also use this command to retrieve compressed files from distribution disks. expose Exposes a persistent shadow copy as a drive letter, share, or mount point. extend Extends the volume or partition with focus and its file system into free (unallocated) space on a disk. extract / extrac32 Extracts files from a cabinet or source. fc Compares two files or sets of files and displays the differences between them. filesystems Displays information about the current file system of the volume with focus and lists the file systems that are supported for formatting the volume. A volume must be selected for this operation to succeed.  find Searches for a string of text in a file or files, and displays lines of text that contain the specified string. findstr Searches for patterns of text in files. flattemp Enables or disables flat temporary folders. You must have administrative credentials to run this command. fondue Enables Windows optional features by downloading required files from Windows Update or another source specified by Group Policy. The manifest file for the feature must already be installed in your Windows image. for Runs a specified command for each file, within a set of files. forfiles Selects and runs a command on a file or set of files. This command is most commonly used in batch files. format Formats a disk to accept Windows files. You must be a member of the Administrators group to format a hard drive. freedisk Checks to see if the specified amount of disk space is available before continuing with the installation process. fsutil Performs tasks that are related to file allocation table (FAT) and NTFS file systems, such as managing to reparse points, managing sparse files, or dismounting a volume. If it’s used without parameters, fsutil displays a list of supported subcommands. ftp Transfers files to and from a computer running a File Transfer Protocol (ftp) server service. This command can be used interactively or in batch mode by processing ASCII text files. ftype Displays or modifies file types that are used in file name extension associations. If used without an assignment operator (=), this command displays the current open command string for the specified file type. If used without parameters, this command displays the file types that have open command strings defined. fveupdate FveUpdate is an internal tool, used by the setup program when a computer is upgraded. It updates the metadata associated with BitLocker to the latest version. This tool cannot be run independently. getmac Returns the media access control (MAC) address and list of network protocols associated with each address for all network cards in each computer, either locally or across a network. This command is particularly useful either when you want to enter the MAC address into a network analyzer, or when you need to know what protocols are currently in use on each network adapter on a computer. goto Directs cmd.exe to a labeled line in a batch program. Within a batch program, this command directs command processing to a line that is identified by a label. When the label is found, processing continues starting with the commands that begin on the next line. gpfixup Fixes domain name dependencies in Group Policy Objects and Group Policy links after a domain rename operation. To use this command, you must install Group Policy Management as a feature through Server Manager. gpresult Displays the Resultant Set of Policy (RSoP) information for a remote user and computer. To use RSoP reporting for remotely targeted computers through the firewall, you must have firewall rules that enable inbound network traffic on the ports. gpt On basic GUID partition table (gpt) disks, this command assigns the gpt attribute(s) to the partition with focus. Gpt partition attributes give additional information about the use of the partition. Some attributes are specific to the partition type GUID. You must choose a basic gpt partition for this operation to succeed.  gpupdate Updates Group Policy settings. graftabl Enables Windows operating systems to display an extended character set in graphics mode. If used without parameters, graftabl displays the previous and the current code page. help Displays a list of the available commands or detailed help information on a specified command. If used without parameters, help lists and briefly describes every system command. hostname Displays the host name portion of the full computer name of the computer. icacls Displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories. if Performs conditional processing in batch programs. Import (diskshadow) Imports a transportable shadow copy from a loaded metadata file into the system. Import (diskpart) Imports a foreign disk group into the disk group of the local computer. This command imports every disk that is in the same group as the disk with focus. inactive Marks the system partition or boot partition with focus as inactive on basic master boot record (MBR) disks. inuse The inuse command has been deprecated and isn’t guaranteed to be supported in future releases of Windows. ipconfig Displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. Used without parameters, ipconfig displays Internet Protocol version 4 (IPv4) and IPv6 addresses, subnet mask, and default gateway for all adapters. ipxroute Displays and modifies information about the routing tables used by the IPX protocol. Used without parameters, ipxroute displays the default settings for packets that are sent to unknown, broadcast, and multicast addresses. irftp Sends files over an infrared link. jetpack Compacts a Windows Internet Name Service (WINS) or Dynamic Host Configuration Protocol (DHCP) database. We recommend you compact the WINS database whenever it approaches 30 MB.

Jetpack.exe compacts the database by:

  1. Copying the database information to a temporary database file.
  2. Deleting the original database file, either WINS or DHCP.
  3. Renames the temporary database files to the original filename.
klist Displays a list of currently cached Kerberos tickets. ksetup Performs tasks related to setting up and maintaining Kerberos protocol and the Key Distribution Center (KDC) to support Kerberos realms. Specifically, this command is used to:

  • Change the computer settings for locating Kerberos realms. In non-Microsoft, Kerberos–based implementations, this information is usually kept in the Krb5.conf file. In Windows Server operating systems, it’s kept in the registry. You can use this tool to modify these settings. These settings are used by workstations to locate Kerberos realms and by domain controllers to locate Kerberos realms for cross-realm trust relationships.
  • Initialize registry keys that the Kerberos Security Support Provider (SSP) uses to locate a KDC for the Kerberos realm if the computer isn’t a member of a Windows domain. After configuration, the user of a client computer running the Windows operating system can log on to accounts in the Kerberos realm.
  • Search the registry for the domain name of the user’s realm and then resolves the name to an IP address by querying a DNS server. The Kerberos protocol can use DNS to locate KDCs by using only the realm name, but it must be specially configured to do so.
ktmutil Starts the Kernel Transaction Manager utility. If used without parameters, ktmutil displays available subcommands. ktpass Configures the server principal name for the host or service in Active Directory Domain Services (AD DS) and generates a .keytab file that contains the shared secret key of the service. The .keytab file is based on the Massachusetts Institute of Technology (MIT) implementation of the Kerberos authentication protocol. The ktpass command-line tool allows non-Windows services that support Kerberos authentication to use the interoperability features provided by the Kerberos Key Distribution Center (KDC) service. label Creates, changes, or deletes the volume label (that is, the name) of a disk. If used without parameters, the label command changes the current volume label or deletes the existing label. list Displays a list of disks, of partitions in a disk, of volumes in a disk, or of virtual hard disks (VHDs). Load metadata Loads a metadata .cab file prior to importing a transportable shadow copy or loads the writer metadata in the case of a restore. If used without parameters, load metadata displays help at the command prompt. lodctr Allows you to register or save performance counter name and registry settings in a file and designate trusted services. logman Creates and manages Event Trace Session and Performance logs and supports many functions of Performance Monitor from the command line. logoff Logs off a user from a session on a Remote Desktop Session Host server and deletes the session. lpq Displays the status of a print queue on a computer running Line printer Daemon (LPD). lpr Sends a file to a computer or printer-sharing device running the Line printer Daemon (LPD) service in preparation for printing. macfile Manages File Server for Macintosh servers, volumes, directories, and files. You can automate administrative tasks by including a series of commands in batch files and starting them manually or at predetermined times. makecab Package existing files into a cabinet (.cab) file. manage-bde Turns on or turns off BitLocker, specifies unlock mechanisms, updates recovery methods, and unlocks BitLocker-protected data drives. mapadmin The mapadmin command-line utility administers User Name Mapping on the local or remote computer running Microsoft Services for Network File System. If you are logged on with an account that does not have administrative credentials, you can specify a username and password for an account that does. md Creates a directory or subdirectory. Command extensions, which are enabled by default, allow you to use a single md command to create intermediate directories in a specified path. Merge vdisk Merges a differencing virtual hard disk (VHD) with its corresponding parent VHD. The parent VHD will be modified to include the modifications from the differencing VHD. This command modifies the parent VHD. As a result, other differencing VHDs that are dependent on the parent will no longer be valid. mkdir Creates a directory or subdirectory. Command extensions, which are enabled by default, allow you to use a single mkdir command to create intermediate directories in a specified path. mklink Creates a directory or file symbolic or hard link. mmc Using mmc command-line options, you can open a specific mmc console, open mmc in author mode, or specify that the 32-bit or 64-bit version of mmc is opened. mode Displays system status, changes system settings or reconfigures ports or devices. If used without parameters, mode displays all the controllable attributes of the console and the available COM devices. more Displays one screen of output at a time. mount A command-line utility that mounts Network File System (NFS) network shares. When used without options or arguments, mount displays information about all mounted NFS file systems. mountvol Creates, deletes, or lists a volume mount point. You can also link volumes without requiring a drive letter. move Creates, deletes, or lists a volume mount point. You can also link volumes without requiring a drive letter. mqbkup Backs up MSMQ message files and registry settings to a storage device and restores previously-stored messages and settings.

Both the backup and the restore operations stop the local MSMQ service. If the MSMQ service was started beforehand, the utility will attempt to restart the MSMQ service at the end of the backup or the restore operation. If the service was already stopped before running the utility, no attempt to restart the service is made.

Before using the MSMQ Message Backup/Restore utility you must close all local applications that are using MSMQ.

mqsvc Message Queuing technology enables apps running at different times to communicate across heterogeneous networks and systems that may be temporarily offline. Message Queuing provides guaranteed message delivery, efficient routing, security, and priority-based messaging. It can be used to implement solutions for both asynchronous and synchronous messaging scenarios. mqtgsvc Monitors a queue for incoming messages and performs an action, in the form of an executable file or COM component, when the rules of a trigger are evaluated as true. msdt Invokes a troubleshooting pack at the command line or as part of an automated script, and enables additional options without user input. msg Sends a message to a user on a Remote Desktop Session Host server. msiexec Provides the means to install, modify, and perform operations on Windows Installer from the command line. msinfo32 Opens the System Information tool to display a comprehensive view of the hardware, system components, and software environment on the local computer. mstsc Creates connections to Remote Desktop Session Host servers or other remote computers and edits an existing Remote Desktop Connection (.rdp) configuration file. nbtstat Displays NetBIOS over TCP/IP (NetBT) protocol statistics, NetBIOS name tables for both the local computer and remote computers, and the NetBIOS name cache. This command also allows a refresh of the NetBIOS name cache and the names registered with Windows Internet Name Service (WINS). Used without parameters, this command displays Help information.

This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections.

netcfg Installs the Windows Preinstallation Environment (WinPE), a lightweight version of Windows used to deploy workstations. netdom Enables administrators to manage Active Directory domains and trust relationships from the command prompt.

Netdom is a command-line tool that is built into Windows Server 2008 and Windows Server 2008 R2. It is available if you have the Active Directory Domain Services (AD DS) server role installed. It is also available if you install the Active Directory Domain Services Tools that are part of the Remote Server Administration Tools (RSAT).

netprint Displays information about a specified printer queue or a specified print job, or controls a specified print job. netsh The Network Shell command-line scripting utility allows you to, either locally or remotely, display or modify the network configuration of a currently running computer. You can start this utility at the command prompt or in Windows PowerShell. netstat Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols). Used without parameters, this command displays active TCP connections. nfsadmin A command-line utility that administers Server for NFS or Client for NFS on the local or remote computer running Microsoft Services for Network File System (NFS). Used without parameters, nfsadmin server displays the current Server for NFS configuration settings and nfsadmin client displays the current Client for NFS configuration settings. nfsshare Controls Network File System (NFS) shares. Used without parameters, this command displays all Network File System (NFS) shares exported by Server for NFS. nfsstat A command-line utility that displays statistical info about the Network File System (NFS) and Remote Procedure Call (RPC) calls. Used without parameters, this command displays all of the statistical data without resetting anything. nlbmgr Configure and manage your Network Load Balancing clusters and all cluster hosts from a single computer, using the Network Load Balancing Manager. You can also use this command to replicate the cluster configuration to other hosts.

You can start the Network Load Balancing Manager from the command line using the command nlbmgr.exe, which is installed in the systemrootSystem32 folder.

nltest Performs network administrative tasks. Nltest is a command-line tool that is built into Windows Server 2008 and Windows Server 2008 R2. It is available if you have the AD DS or the AD LDS server role installed. It is also available if you install the Active Directory Domain Services Tools that are part of the Remote Server Administration Tools (RSAT). nslookup Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. Before using this tool, you should be familiar with how DNS works. The nslookup command-line tool is available only if you have installed the TCP/IP protocol.

The nslookup command-line tool has two modes: interactive and noninteractive.

If you need to look up only a single piece of data, we recommend using the non-interactive mode. For the first parameter, type the name or IP address of the computer that you want to look up. For the second parameter, type the name or IP address of a DNS name server. If you omit the second argument, nslookup uses the default DNS name server.

If you need to look up more than one piece of data, you can use interactive mode. Type a hyphen (-) for the first parameter and the name or IP address of a DNS name server for the second parameter. If you omit both parameters, the tool uses the default DNS name server. While using the interactive mode, you can:

  • Interrupt interactive commands at any time, by pressing CTRL+B.
  • Exit, by typing exit.
  • Treat a built-in command as a computer name, by preceding it with the escape character (). An unrecognized command is interpreted as a computer name.
ntcmdprompt Runs the command interpreter Cmd.exe, rather than Command.com, after running a Terminate and Stay Resident (TSR) or after starting the command prompt from within an MS-DOS application. ntfrsutl Dumps the internal tables, thread, and memory information for the NT File Replication Service (NTFRS) from both the local and remote servers. The recovery setting for NTFRS in Service Control Manager (SCM) can be critical to locating and keeping important log events on the computer. This tool provides a convenient method of reviewing those settings. offline Takes an online disk or volume to the offline state. online Takes an offline disk or volume to the online state. openfiles Enables an administrator to query, display, or disconnect files and directories that have been opened on a system. This command also enables or disables the system Maintain Objects List global flag. pagefileconfig Enables an administrator to display and configure a system’s paging file Virtual Memory settings. path Sets the command path in the PATH environment variable, specifying the set of directories used to search for executable (.exe) files. If used without parameters, this command displays the current command path. pathping Provides information about network latency and network loss at intermediate hops between a source and destination. This command sends multiple echo Request messages to each router between a source and destination, over a period of time, and then computes results based on the packets returned from each router. Because this command displays the degree of packet loss at any given router or link, you can determine which routers or subnets might be having network problems. Used without parameters, this command displays help. pause Suspends the processing of a batch program, displaying the prompt, Press any key to continue . . . pbadmin Administers phone books. Used without parameters, pbadmin starts Phone Book Administrator perfmon Start Windows Reliability and Performance Monitor in a specific standalone mode. ping Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) echo Request messages. The receipt of corresponding echo Reply messages are displayed, along with round-trip times. ping is the primary TCP/IP command used to troubleshoot connectivity, reachability, and name resolution. Used without parameters, this command displays Help content.

You can also use this command to test both the computer name and the IP address of the computer. If pinging the IP address is successful, but pinging the computer name isn’t, you might have a name resolution problem. In this case, make sure the computer name you are specifying can be resolved through the local Hosts file, by using Domain Name System (DNS) queries, or through NetBIOS name resolution techniques.

pktmon Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) echo Request messages. The receipt of corresponding echo Reply messages are displayed, along with round-trip times. ping is the primary TCP/IP command used to troubleshoot connectivity, reachability, and name resolution. Used without parameters, this command displays Help content.

You can also use this command to test both the computer name and the IP address of the computer. If pinging the IP address is successful, but pinging the computer name isn’t, you might have a name resolution problem. In this case, make sure the computer name you are specifying can be resolved through the local Hosts file, by using Domain Name System (DNS) queries, or through NetBIOS name resolution techniques.

pnpunattend Audits a computer for device drivers, performs unattended driver installations, or searches for drivers without installing and, optionally, reports the results to the command line. Use this command to specify the installation of specific drivers for specific hardware devices. pnputil Pnputil.exe is a command line utility that you can use to manage the driver store. You can use this command to add driver packages, remove driver packages, and list driver packages that are in the store. popd The popd command changes the current directory to the directory that was most recently stored by the pushd command.

Every time you use the pushd command, a single directory is stored for your use. However, you can store multiple directories by using the pushd command multiple times. The directories are stored sequentially in a virtual stack, so if you use the pushd command once, the directory in which you use the command is placed at the bottom of the stack. If you use the command again, the second directory is placed on top of the first one. The process repeats every time you use the pushd command.

If you use the popd command, the directory on the top of the stack is removed and the current directory is changed to that directory. If you use the popd command again, the next directory on the stack is removed. If command extensions are enabled, the popd command removes any drive-letter assignments created by the pushd command.

powershell Windows PowerShell is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows. powershell_ise Windows PowerShell Integrated Scripting Environment (ISE) is a graphical host application that enables you to read, write, run, debug, and test scripts and modules in a graphic-assisted environment. Key features such as IntelliSense, Show-Command, snippets, tab completion, syntax-coloring, visual debugging, and context-sensitive Help provide a rich scripting experience. print Sends a text file to a printer. A file can print in the background if you send it to a printer connected to a serial or parallel port on the local computer. prncnfg Configures or displays configuration information about a printer. This command is a Visual Basic script located in the %WINdir%System32printing_Admin_Scripts<language> directory. To use this command at a command prompt, type cscript followed by the full path to the prncnfg file, or change directories to the appropriate folder. For example: cscript %WINdir%System32printing_Admin_Scriptsen-USprncnfg. prndrvr Adds, deletes, and lists printer drivers. This command is a Visual Basic script located in the %WINdir%System32printing_Admin_Scripts<language> directory. To use this command at a command prompt, type cscript followed by the full path to the prndrvr file, or change directories to the appropriate folder. For example: cscript %WINdir%System32printing_Admin_Scriptsen-USprndrvr.

Used without parameters, prndrvr displays command-line help.

prnjobs Pauses, resumes, cancels, and lists print jobs. This command is a Visual Basic script located in the %WINdir%System32printing_Admin_Scripts<language&gt; directory. To use this command at a command prompt, type cscript followed by the full path to the prnjobs file, or change directories to the appropriate folder. For example: cscript %WINdir%System32printing_Admin_Scriptsen-USprnjobs.vbs. prnmngr Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer. This command is a Visual Basic script located in the %WINdir%System32printing_Admin_Scripts<language> directory. To use this command at a command prompt, type cscript followed by the full path to the prnmngr file, or change directories to the appropriate folder. For example: cscript %WINdir%System32printing_Admin_Scriptsen-USprnmngr. prnport Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration. This command is a Visual Basic script located in the %WINdir%System32printing_Admin_Scripts<language> directory. To use this command at a command prompt, type cscript followed by the full path to the prnport file, or change directories to the appropriate folder. For example: cscript %WINdir%System32printing_Admin_Scriptsen-USprnport. prnqctl Prints a test page, pauses or resumes a printer, and clears a printer queue. This command is a Visual Basic script located in the %WINdir%System32printing_Admin_Scripts<language> directory. To use this command at a command prompt, type cscript followed by the full path to the prnqctl file, or change directories to the appropriate folder. For example: cscript %WINdir%System32printing_Admin_Scriptsen-USprnqctl. prompt Changes the Cmd.exe command prompt, including displaying any text you want, such as the name of the current directory, the time and date, or the Microsoft Windows version number. If used without parameters, this command resets the command prompt to the default setting, which is the current drive letter and directory followed by the greater than symbol (>). pubprn Publishes a printer to the Active Directory Domain Services. This command is a Visual Basic script located in the %WINdir%System32printing_Admin_Scripts<language> directory. To use this command at a command prompt, type cscript followed by the full path to the pubprn file, or change directories to the appropriate folder. For example: cscript %WINdir%System32printing_Admin_Scriptsen-USpubprn. pushd Stores the current directory for use by the popd command, and then changes to the specified directory.

Every time you use the pushd command, a single directory is stored for your use. However, you can store multiple directories by using the pushd command multiple times. The directories are stored sequentially in a virtual stack, so if you use the pushd command once, the directory in which you use the command is placed at the bottom of the stack. If you use the command again, the second directory is placed on top of the first one. The process repeats every time you use the pushd command.

If you use the popd command, the directory on the top of the stack is removed and the current directory is changed to that directory. If you use the popd command again, the next directory on the stack is removed. If command extensions are enabled, the popd command removes any drive-letter assignment created by the pushd command.

pushprinterconnections Reads Deployed Printer Connection settings from Group Policy and deploys or removes printer connections as needed. pwlauncher Enables or disables the Windows To Go Startup Options (pwlauncher). The pwlauncher command-line tool allows you to configure the computer to boot into a Windows To Go workspace automatically (assuming one is present), without requiring you to enter your firmware or change your startup options.

Windows To Go Startup Options allow a user to configure their computer to boot from USB from within Windows-without ever entering their firmware, as long as their firmware supports booting from USB. Enabling a system to always boot from USB first has implications that you should consider. For example, a USB device that includes malware could be booted inadvertently to compromise the system, or multiple USB drives could be plugged in to cause a boot conflict. For this reason, the default configuration has the Windows To Go Startup Options disabled by default. In addition, administrator privileges are required to configure Windows To Go Startup Options. If you enable the Windows To Go startup options using the pwlauncher command-line tool or the Change Windows To Go Startup Options app the computer will attempt to boot from any USB device that is inserted into the computer before it is started.

about_Pwsh Explains how to use the pwsh command-line interface. Displays the command-line parameters and describes the syntax. qappsrv Displays a list of all Remote Desktop Session Host servers on the network. qprocess Displays information about processes that are running on a Remote Desktop Session Host server. Query commands Displays information about processes, sessions, and Remote Desktop Session Host servers. quser Displays information about user sessions on a Remote Desktop Session Host server. You can use this command to find out if a specific user is logged on to a specific Remote Desktop Session Host server. This command returns the following information:

  • Name of the user
  • Name of the session on the Remote Desktop Session Host server
  • Session ID
  • State of the session (active or disconnected)
  • Idle time (the number of minutes since the last keystroke or mouse movement at the session)
  • Date and time the user logged on
qwinsta Displays information about sessions on a Remote Desktop Session Host server. The list includes information not only about active sessions but also about other sessions that the server runs. Rd or rmdir Deletes a directory. rdpsign Enables you to digitally sign a Remote Desktop Protocol (.rdp) file. recover Recovers readable information from a bad or defective disk. This command reads a file, sector-by-sector, and recovers data from the good sectors. Data in bad sectors is lost. Because all data in bad sectors is lost when you recover a file, you should recover only one file at a time.

Bad sectors reported by the chkdsk command were marked as bad when your disk was prepared for operation. They pose no danger, and recovery does not affect them.

Recover (Diskpart) Refreshes the state of all disks in a disk group, attempts to recover disks in an invalid disk group, and resynchronizes mirrored volumes and RAID-5 volumes that have stale data. This command operates on disks that are failing or already failed. It also operates on volumes that are failed, failing, or in failed redundancy state.

This command operates on groups of dynamic disks. If this command is used on a group with a basic disk, it won’t return an error, but no action will be taken.

ReFSUtil ReFSUtil is a tool included in Windows and Windows Server that attempts to diagnose heavily damaged ReFS volumes, identify remaining files, and copy those files to another volume. This tool comes in the %SystemRoot%WindowsSystem32 folder.

ReFS salvage is the primary function of ReFSUtil, and is useful for recovering data from volumes that show as RAW in Disk Management. ReFS Salvage has two phases: Scan Phase and a Copy Phase. In automatic mode, the Scan Phase and Copy Phase will run sequentially. In manual mode, each phase can be run separately. Progress and logs are saved in a working directory to allow phases to be run separately as well as Scan Phase to be paused and resumed. You shouldn’t need to use the ReFSutil tool unless the volume is RAW. If read-only, then data is still accessible.

Reg commands Performs operations on registry subkey information and values in registry entries.

Some operations enable you to view or configure registry entries on local or remote computers, while others allow you to configure only local computers. Using reg to configure the registry of remote computers limits the parameters that you can use in some operations. Check the syntax and parameters for each operation to verify that they can be used on remote computers.

regini Modifies the registry from the command line or a script, and applies changes that were preset in one or more text files. You can create, modify, or delete registry keys, in addition to modifying the permissions on the registry keys. regsvr32 Registers .dll files as command components in the registry. relog Extracts performance counters from performance counter logs into other formats, such as text-TSV (for tab-delimited text), text-CSV (for comma-delimited text), binary-BIN, or SQL. rem Records comments in a script, batch, or config.sys file. If no comment is specified, rem adds vertical spacing. remove Removes a drive letter or mount point from the volume with focus. If all parameter is used, all current drive letters and mount points are removed. If no drive letter or mount point is specified, then DiskPart removes the first drive letter or mount point it encounters.

The remove command can also be used to change the drive letter associated with a removable drive. You can’t remove the drive letters on the system, boot, or paging volumes. In addition, you can’t remove the drive letter for an OEM partition, any GPT partition with an unrecognized GUID, or any of the special, non-data, GPT partitions such as the EFI system partition.

Rename or ren Renames files or directories. repadmin Repadmin.exe helps administrators diagnose Active Directory replication problems between domain controllers running Microsoft Windows operating systems. repair Repairs the RAID-5 volume with focus by replacing the failed disk region with the specified dynamic disk.

A volume in a RAID-5 array must be selected for this operation to succeed. Use the select volume command to select a volume and shift the focus to it.

replace Replace existing files in a directory. If used with the /a option, this command adds new files to a directory instead of replacing existing files. rescan Using the diskpart command interpreter, you can locate new disks added to your computer. reset Resets DiskShadow.exe to the default state. This command is especially useful in separating compound DiskShadow operations, such as create, import, backup, or restore. retain Prepares an existing simple dynamic volume for use as a boot or system volume. If you use a master boot record (MBR) dynamic disk, this command creates a partition entry in the master boot record. If you use a GUID partition table (GPT) dynamic disk, this command creates a partition entry in the GUID partition table. revert Reverts a volume back to a specified shadow copy. This is supported only for shadow copies in the CLIENTACCESSIBLE context. These shadow copies are persistent and can only be made by the system provider. If used without parameters, revert displays help at the command prompt. robocopy Copies file data from one location to another. route Displays and modifies the entries in the local IP routing table. If used without parameters, route displays help at the command prompt. rpcinfo Lists programs on remote computers. The rpcinfo command-line utility makes a remote procedure call (RPC) to an RPC server and reports what it finds. rpcping Confirms the RPC connectivity between the computer running Microsoft Exchange Server and any of the supported Microsoft Exchange Client workstations on the network. This utility can be used to check if the Microsoft Exchange Server services are responding to RPC requests from the client workstations via the network. rundll32 Loads and runs 32-bit dynamic-link libraries (DLLs). There are no configurable settings for Rundll32. Help information is provided for a specific DLL you run with the rundll32 command.

You must run the rundll32 command from an elevated command prompt. To open an elevated command prompt, click Start, right-click Command Prompt, and then click Run as administrator.

rundll32 printui.dll,PrintUIEntry Automates many printer configuration tasks. printui.dll is the executable file that contains the functions used by the printer configuration dialog boxes. These functions can also be called from within a script or a command-line batch file, or they can be run interactively from the command prompt. san Displays or sets the storage area network (san) policy for the operating system. If used without parameters, the current san policy is displayed. Sc.exe config Displays or sets the storage area network (san) policy for the operating system. If used without parameters, the current san policy is displayed. Sc.exe create Creates a subkey and entries for service in the registry and in the Service Control Manager database. Sc.exe delete Deletes a service subkey from the registry. If the service is running or if another process has an open handle to the service, the service is marked for deletion. Sc.exe query Obtains and displays information about the specified service, driver, type of service, or type of driver. Schtasks commands Schedules commands and programs to run periodically or at a specific time adds and removes tasks from the schedule, starts and stops tasks on demand, and displays and changes scheduled tasks. scwcmd The Scwcmd.exe command-line tool included with the Security Configuration Wizard (SCW) can be used to perform the following tasks:

  • Analyze one or many servers with an SCW-generated policy.
  • Configure one or many servers with an SCW-generated policy.
  • Register a Security Configuration Database extension with SCW.
  • Rollback SCW policies.
  • Transform an SCW-generated policy into native files that are supported by Group Policy.
  • View analysis results in HTML format.
Secedit commands Configures and analyzes system security by comparing your current security configuration against specified security templates. Select commands Shifts the focus to a disk, partition, volume, or virtual hard disk (VHD). serverceipoptin Allows you to participate in the Customer Experience Improvement Program (CEIP). serverweroptin Allows you to turn on error reporting. Set (environment variable) Displays, sets, or removes cmd.exe environment variables. If used without parameters, set displays the current environment variable settings. Set commands Sets the context, options, verbose mode, and metadata file for shadow copy creation. If used without parameters, set lists all current settings. setx Creates or modifies environment variables in the user or system environment, without requiring programming or scripting. The Setx command also retrieves the values of registry keys and writes them to text files. sfc Scans and verifies the integrity of all protected system files and replaces incorrect versions with correct versions. If this command discovers that a protected file has been overwritten, it retrieves the correct version of the file from the systemroot folder, and then replaces the incorrect file. shadow Enables you to remotely control an active session of another user on a Remote Desktop Session Host server. shift Changes the position of batch parameters in a batch file. showmount You can use showmount to display information about mounted file systems exported by Server for NFS on a specified computer. If you don’t specify a server, this command displays information about the computer on which the showmount command is run. shrink The Diskpart shrink command reduces the size of the selected volume by the amount you specify. This command makes free disk space available from the unused space at the end of the volume.

A volume must be selected for this operation to succeed. Use the select volume command to select a volume and shift the focus to it.

shutdown Enables you to shut down or restart local or remote computers, one at a time. Simulate restore Tests whether writer involvement in restore sessions will be successful on the computer without issuing PreRestore or PostRestore events to writers. sort Reads input sorts data, and writes the results to the screen, to a file, or to another device. start Starts a separate Command Prompt window to run a specified program or command. Wdsutil set-device Changes the attributes of a pre-staged computer. A pre-staged computer is a computer that has been linked to a computer account object in active directory Domain Servers (AD DS). Prestaged clients are also called known computers. You can configure properties on the computer account to control the installation for the client. For example, you can configure the network boot program and the unattended file that the client should receive, as well as the server from which the client should download the network boot program. Subcommand: set-DriverGroup Sets the properties of an existing driver group on a server. Subcommand: set-DriverGroupfilter Adds or removes an existing driver group filter from a driver group. Subcommand: set-DriverPackage Renames and/or enables or disables a driver package on a server. wdsutil set-image Changes the attributes of an image. wdsutil set-imagegroup Changes the attributes of an image group. wdsutil set-server Configures the settings for a Windows Deployment Services server. wdsutil set-transportserver Sets configuration settings for a Transport Server. wdsutil start-multicasttransmission Starts a Scheduled-Cast transmission of an image. wdsutil start-server Starts all services for a Windows Deployment Services server. wdsutil start-namespace Starts a Scheduled-Cast namespace. wdsutil stop-server Stops all services on a Windows Deployment Services server. wdsutil stop-transportserver Stops all services on a Transport Server. subst Associates a path with a drive letter. If used without parameters, subst displays the names of the virtual drives in effect. sxstrace Diagnoses side-by-side problems. systeminfo Displays detailed configuration information about a computer and its operating system, including operating system configuration, security information, product ID, and hardware properties (such as RAM, disk space, and network cards). takeown Enables an administrator to recover access to a file that previously was denied, by making the administrator the owner of the file. This command is typically used on batch files. tapicfg Creates, removes, or displays a TAPI application directory partition, or sets a default TAPI application directory partition. TAPI 3.1 clients can use the information in this application directory partition with the directory service locator service to find and communicate with TAPI directories. You can also use tapicfg to create or remove service connection points, which enable TAPI clients to efficiently locate TAPI application directory partitions in a domain.

This command-line tool can be run on any computer that is a member of the domain.

taskkill Ends one or more tasks or processes. Processes can be ended by process ID or image name. You can use the tasklist command to determine the process ID (PID) for the process to be ended. tasklist Displays a list of currently running processes on the local computer or on a remote computer. Tasklist replaces the tlist tool. tcmsetup Sets up or disables the TAPI client. For TAPI to function correctly, you must run this command to specify the remote servers that will be used by TAPI clients. telnet Communicates with a computer running the telnet server service. Running this command without any parameters, lets you enter the telnet context, as indicated by the telnet prompt (Microsoft telnet>). From the telnet prompt, you can use telnet commands to manage the computer running the telnet client. tftp Transfers files to and from a remote computer, typically a computer running UNIX, that is running the Trivial File Transfer Protocol (tftp) service or daemon. tftp is typically used by embedded devices or systems that retrieve firmware, configuration information, or a system image during the boot process from a tftp server. time Displays or sets the system time. If used without parameters, time displays the current system time and prompts you to enter a new time. timeout Pauses the command processor for the specified number of seconds. This command is typically used in batch files. title Creates a title for the Command Prompt window. tlntadmn Administers a local or remote computer that is running the telnet Server Service. If used without parameters, tlntadmn displays the current server settings.

This command requires you to log on to the local computer with administrative credentials. To administer a remote computer, you must also provide administrative credentials for the remote computer. You can do so by logging on to the local computer with an account that has administrative credentials for both the local computer and the remote computer. If you can’t use this method, you can use the -u and -p parameters to provide administrative credentials for the remote computer.

tpmtool This utility can be used to get information about the Trusted Platform Module (TPM) tpmvscmgr The tpmvscmgr command-line tool allows users with Administrative credentials to create and delete TPM virtual smart cards on a computer. tracerpt The tracerpt command parses Event Trace Logs, log files generated by Performance Monitor, and real-time Event Trace providers. It also generates dump files, report files, and report schemas. tracert This diagnostic tool determines the path taken to a destination by sending Internet Control Message Protocol (ICMP) echo Request or ICMPv6 messages to the destination with incrementally increasing time to live (TTL) field values. Each router along the path is required to decrement the TTL in an IP packet by at least 1 before forwarding it. Effectively, the TTL is a maximum link counter. When the TTL on a packet reaches 0, the router is expected to return an ICMP Time Exceeded message to the source computer.

This command determines the path by sending the first echo Request message with a TTL of 1 and incrementing the TTL by 1 on each subsequent transmission until the target responds or the maximum number of hops is reached. The maximum number of hops is 30 by default and can be specified using the /h parameter.

The path is determined by examining the ICMP Time Exceeded messages returned by intermediate routers and the echo Reply message returned by the destination. However, some routers do not return time Exceeded messages for packets with expired TTL values and are invisible to the tracert command. In this case, a row of asterisks (*) is displayed for that hop. The path displayed is the list of near/side router interfaces of the routers in the path between a source host and a destination. The near/side interface is the interface of the router that is closest to the sending host in the path.

tree Displays the directory structure of a path or of the disk in a drive graphically. The structure displayed by this command depends upon the parameters that you specify at the command prompt. If you don’t specify a drive or path, this command displays the tree structure beginning with the current directory of the current drive. tscon Connects to another session on a Remote Desktop Session Host server. tsdiscon Disconnects a session from a Remote Desktop Session Host server. If you don’t specify a session ID or session name, this command disconnects the current session. tsecimp Imports assignment information from an Extensible Markup Language (XML) file into the TAPI server security file (Tsec.ini). You can also use this command to display the list of TAPI providers and the lines devices associated with each of them, validate the structure of the XML file without importing the contents, and check domain membership. tskill Ends a process running in a session on a Remote Desktop Session Host server. tsprof Copies the Remote Desktop Services user configuration information from one user to another. The Remote Desktop Services user configuration information appears in the Remote Desktop Services extensions to Local Users and Groups and active directory Users and computers. type In the Windows Command shell, type is a built-in command which displays the contents of a text file. Use the type command to view a text file without modifying it.

In PowerShell, type is a built-in alias to the Get-Content cmdlet, which also displays the contents of a file, but using a different syntax.

typeperf The typeperf command writes performance data to the command window or to a log file. To stop typeperf, press CTRL+C. tzutil Displays the Windows Time Zone utility. unexpose Unexposes a shadow copy that was exposed by using the expose command. The exposed shadow copy can be specified by its Shadow ID, drive letter, share, or mount point. uniqueid Displays or sets the GUID partition table (GPT) identifier or master boot record (MBR) signature for the basic or dynamic disk with focus. A basic or dynamic disk must be selected for this operation to succeed. Use the select disk command to select a disk and shift the focus to it. unlodctr Removes Performance counter names and Explain text for a service or device driver from the system registry. ver Displays the operating system version number. This command is supported in the Windows Command prompt (Cmd.exe), but not in any version of PowerShell. verifier Driver Verifier monitors Windows kernel-mode drivers and graphics drivers to detect illegal function calls or actions that might corrupt the system. Driver Verifier can subject Windows drivers to a variety of stresses and tests to find improper behavior. You can configure which tests to run, which allows you to put a driver through heavy stress loads or through more streamlined testing. You can also run Driver Verifier on multiple drivers simultaneously, or on one driver at a time. verify Tells the Command Prompt tool (cmd.exe) whether to verify your files are written correctly to a disk. vol Displays the disk volume label and serial number, if they exist. If used without parameters, vol displays information for the current drive. vssadmin Displays current volume shadow copy backups and all installed shadow copy writers and providers.  waitfor Sends or waits for a signal on a system. This command is used to synchronize computers across a network. wbadmin Enables you to back up and restore your operating system, volumes, files, folders, and applications from a command prompt.

To configure a regularly scheduled backup using this command, you must be a member of the Administrators group. To perform all other tasks with this command, you must be a member of the Backup Operators group or the Administrators group, or you must have been delegated the appropriate permissions.

You must run wbadmin from an elevated command prompt, by right-clicking Command Prompt, and then select Run as administrator.

wdsutil Wdsutil is a command-line utility used for managing your Windows Deployment Services server. To run these commands, click Start, right-click Command prompt, and click Run as administrator. wecutil Enables you to create and manage subscriptions to events that are forwarded from remote computers. The remote computer must support the WS-Management protocol. wevtutil Enables you to retrieve information about event logs and publishers. You can also use this command to install and uninstall event manifests, run queries, and export, archive, and clear logs. where Displays the location of files that match the given search pattern. whoami Displays user, group, and privileges information for the user who is currently logged on to the local system. If used without parameters, whoami displays the current domain and user name. winnt32 Performs an installation of or upgrade to a product in Windows Server 2003. You can run winnt32 at the command prompt on a computer running Windows 95, Windows 98, Windows Millennium Edition, Windows NT, Windows 2000, Windows XP, or a product in the Windows Server 2003. If you run winnt32 on a computer running Windows NT version 4.0, you must first apply Service Pack 5 or later. winrs Windows remote Management allows you to manage and execute programs remotely. Winstat mem Tests system memory bandwidth in a manner reflective of large memory to memory buffer copies, as are used in multimedia processing. Winsat mfmedia Measures the performance of video decoding (playback) using the Media Foundation framework. wmic Displays WMI information inside an interactive command shell. writer Verifies that a writer or component is included or excluded a writer or component from the backup or restore procedure. If used without parameters, writer displays help at the command prompt. wscript Windows Script Host provides an environment in which users can execute scripts in a variety of languages that use a variety of object models to perform tasks. xcopy Copies files and directories, including subdirectories.

To get a list of commands that are useful to you in Command Prompt, open Command Prompt as an administrator and type help, and press Enter. You will see a list of commands you can use on your PC to do various tasks easily using the Command-line tools.

There are more than 300 Command Prompt commands with many more subcommands. The list is too big to count. The above list is a compilation of 293 commands that you can use on various Windows environments to carry out different tasks. Whether you use Windows 11 or Windows 10, you can use all of these commands in the standalone Command Prompt or Windows Terminal.

Command Line Commands – CLI Tutorial

The Windows command line is one of the most powerful utilities on a Windows PC. With it, you can interact with the OS directly and do a lot of things not available in the graphical user interface (GUI).

In this article, I’ll show you 40 commands you can use on the Windows command line that can boost your confidence as a Windows user.

N.B.: You have to be careful while using the commands I’ll show you. This is because some commands can have a lasting negative or positive effect on your Windows PC until you reset it.

In addition, some of these commands require you to open the command prompt as an admin.
ss5-1

powershell start cmd -v runAs – Run the Command Prompt as an Administrator

Entering this command opens another command prompt window as an administrator:
ss1-1

driverquery – Lists All Installed Drivers

It is important to have access to all drivers because they often cause problems.

That’s what this command does – it shows you even the drivers you won’t find in the device manager.
ss2-1

chdir or cd – Changes the Current Working Directory to the Specified Directory

ss3-1

systeminfo – Shows Your PC’s Details

If you want to see more detailed information about your system you won’t see in the GUI, this is the command for you.
ss4-1

set – Shows your PC’s Environment Variables

ss5-2

prompt – Changes the Default Text Shown before Entering Commands

By default, the command prompt shows the C drive path to your user account.

You can use the prompt command to change that default text with the syntax prompt prompt_name $G:
ss6-1

N.B: If you don’t append $G to the command, you won’t get the greater than symbol in front of the text.

clip – Copies an Item to the Clipboard

For example, dir | clip copies all the content of the present working directory to the clipboard.
ss7

You can type clip /? and hit ENTER to see how to use it.

assoc – Lists Programs and the Extensions They are Associated With

ss8

title – Changes the Command Prompt Window Title Using the Format title window-title-name

ss9

fc – Compares Two Similar Files

If you are a programmer or writer and you want to quickly see what differs between two files, you can enter this command and then the full path to the two files. For example fc “file-1-path” “file-2-path”.
ss10

cipher – Wipes Free Space and Encrypts Data

On a PC, deleted files remain accessible to you and other users. So, technically, they are not deleted under the hood.

You can use the cipher command to wipe the drive clean and encrypt such files.
ss11

netstat -an – Shows Open Ports, their IP Addresses and States

ss12

ping – Shows a Website IP Address, Lets you Know How Long it Takes to Transmit Data and a Get Response

ss13

color – Changes the Text Color of the Command Prompt

Enter color attr to see the colors you can change to:
ss14

Entering color 2 changes the color of the terminal to green:
ss15

for /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do @echo %j | findstr -i -v echo | netsh wlan show profiles %j key=clear – Shows All Wi-Fi Passwords

ss16

ipconfig – Shows Information about PC IP Addresses and Connections

ss17

This command also has extensions such as ipconfig /release, ipconfig /renew, and ipconfig /flushdns which you can use to troubleshoot issues with internet connections.

sfc – System File Checker

This command scans your computer for corrupt files and repairs them. The extension of the command you can use to run a scan is /scannow.
ss18

powercfg – Controls Configurable Power Settings

You can use this command with its several extensions to show information about the power state of your PC.

You can enter powercfg help to show those extensions.
ss19

For example, you can use powercfg /energy to generate a battery health report.
ss20

The powercfg /energy command will generate an HTML file containing the report. You can find the HTML file in C:Windowssystem32energy-report.html.

dir – Lists Items in a Directory

ss21

del – Deletes a File

ss22

attrib +h +s +r folder_name – Hides a Folder

You can hide a folder right from the command line by typing in attrib +h +s +r folder_name and then pressing ENTER.

To show the folder again, execute the command – attrib -h -s -r folder_name.
ss23

start website-address – Logs on to a Website from the Command Line

ss24
ss25

tree – Shows the Tree of the Current Directory or Specified Drive

ss26

ver – Shows the Version of the OS

ss27

tasklist – Shows Open Programs

You can do the same thing you do with the task manager with this command:
ss28
The next command shows you how to close an open task.

taskkill – Terminates a Running Task

To kill a task, run taskkill /IM "task.exe" /F. For example, taskkill /IM "chrome.exe" /F:
ss29

date – Shows and Changes the Current Date

ss30

time – Shows and Changes the Current Time

ss31

vol – Shows the Serial Number and Label Info of the Current Drive

ss32

dism – Runs the Deployment Image Service Management Tool

ss33

CTRL + C – Stops the Execution of a Command

-help – Provides a Guide to other Commands

For example, powercfg -help shows how to use the powercfg command
ss34

echo – Shows Custom Messages or Messages from a Script or File

ss35

You can also use the echo command to create a file with this syntax echo file-content > filename.extension.
ss36

mkdir – Creates a Folder

ss37

rmdir – Deletes a Folder

ss38

N.B.: The folder must be empty for this command to work.

more – Shows More Information or the Content of a File

ss39

move – Moves a File or Folder to a Specified Folder

ss40

ren – Renames a File with the Syntax ren filename.extension new-name.extension

ss41-1

cls – Clears the Command Line

In case you enter several commands and the command line gets clogged up, you can use cls to clear all entries and their outputs.
cls

exit – Closes the Command Line

shutdown – Shuts down, Restarts, Hibernates, Sleeps the Computer

You can shut down, restart, hibernate, and sleep your PC from the command line.

Enter shutdown in the command line so you can see the extensions you can use to perform the actions. For example, shutdown /r will restart your computer.
ss42

Conclusion

This article showed you several “unknown-to-many” commands you can use to get access to hidden functionalities on your Windows PC.

Again, you should be careful while working with these commands because they can have a lasting effect on your OS.

If you find the commands helpful, share the article with your friends and family.

In case you know another useful command I did not list, tell me about it on Twitter. I will add it and mention you as the source.



Learn to code for free. freeCodeCamp’s open source curriculum has helped more than 40,000 people get jobs as developers. Get started

The Windows command prompt is a feature that’s been a core
part of the Windows operating system for a long time. There are some CMD
commands that are so useful and easy to use that even regular users see the
Windows command prompt as a key part of the operating system.

There are always rumors that it will be phased out at some
point, but that’s unlikely to happen any time soon.

The following are 21 of the best CMD commands you should know if you want to have more control over your Windows PC.

Also, be sure to check out our YouTube video where we go over the commands listed in this article:

21 CMD Prompt Commands You Should Know

1. ASSOC: Fix File Associations

One of the most powerful tools in the CMD command library is
the ASSOC command.

Your computer associates certain file extensions with
certain programs. This is how your computer knows to open Adobe when you double
click a PDF file, or Microsoft Word when you double click a DOC file.

You can view all the file associations your computer knows
about by typing ASSOC in the command
window. You’ll see the file extension and the program it’s associated with.

You can set the association by typing something like assoc .doc=Word.Document.8.

2. FC: File Compare

Sometimes when files are changed over time, it’s hard to
remember what the differences were between versions. You may not know that a
CMD command offers the ability to compare files and see all differences, but
it’s true.

The FC command
performs either an ascii or a binary file comparison and will list all of the
differences that it finds.

Fc /a File1.txt
File2.txt
will compare two ascii files.

Fc /b Picture1.jpg
Picture2.jpg
will do a binary compare on two images.

3. IPCONFIG: IP Configuration

Network troubleshooting is never simple, but one command
that makes it much easier is IPCONFIG.

Using this command in the CMD command prompt returns detailed
information about your current network adapter connection including:

  • Current IP Address
  • Subnet Mask
  • Default Gateway IP
  • Current domain

This information can help you troubleshoot router issues and
other connection issues you could be having with your network adapter.

4. NETSTAT: Network Statistics

Concerned that you could have malware running on your
computer that’s connecting to internet locations without you knowing about it?

If you run a NETSTAT
command in the command prompt, you can get a list of all active TCP connections
from your computer.

5. PING: Send Test Packets

An IT Analyst’s best friend is the PING command.  Running this
command sends test packets over the network to the target system.

You can use the PING command to test whether your computer
can access another computer, a server, or even a website. It can help with
revealing network disconnections. It also provides transit time for the packets
in milliseconds, so it also reveals a bad network connection as well.

6. TRACERT: Trace Route

TRACERT is a
fascinating Windows Command to use. If you’re ever curious to see the path your
internet traffic takes to get from your browser to a remote system like Google
servers, you can use TRACERT to see it.

The command stands for “Trace Route”, which sends packets
out to a remote destination (server or website), and provides you with all of
the following information:

  • Number of hops (intermediate servers) before
    getting to the destination
  • Time it takes to get to each hop
  • The IP and sometimes the name of each hop

TRACERT can reveal how the routes of your internet requests
change depending where you’re accessing the web. It also helps with
troubleshooting a router or switch on a local network that may be problematic.

7. POWERCFG: Power Configuration

Are you frustrated with how quickly your laptop seems to run
out of power? It could be that your power settings are configured as
efficiently as possible. There’s a windows CMD command called POWERCFG (power configuration) that can
help. Run the command prompt as an administrator and type powercfg – energy to get a full power efficiency report.

The process can take up to about a minute, but when it’s done,
you’ll see whether there are any warnings or errors that might help you improve
the power efficiency of your system.

View the energy-report.html file to see the details of those
errors and warnings.

8. SHUTDOWN: Turn Off Computer

The SHUTDOWN
command is a pretty versatile command that lets you shutdown the computer but
control the behavior of that shutdown. It’s commonly used as a scheduled task
or part of an IT batch job after patches have been applied to a computer
system.

Typing shutdown /i
from the command prompt will initiate a shutdown, but it’ll upon a GUI to give
the user an option on whether to restart or do a full shutdown. If you don’t
want to have any GUI pop up, you can just issue a shutdown /s command.

There is a long list of other parameters you can use to do a
log off, hibernate, restart, and more. Just type shutdown without any arguments to see them all.

9. SYSTEMINFO: System Information

If you need to know what brand of network card you have,
processor details, or the exact version of your Windows OS, the SYSTEMINFO command can help.

This command polls your system and pulls the most important
information about your system. It lists the information in a clean format
that’s easy to read.

10. SFC: System File Checker

If you’re ever concerned that a virus or some other software
might have corrupted your core system files, there’s a Windows command that can
scan those files and ensure their integrity.

You need to launch CMD as administrator (right click and
choose Run as Administrator). Typing
SFC /SCANNOW will check the integrity of all protected system files. If a
problem is found, the files will be repaired with backed-up system files.

The SFC command also lets you:

  • /VERIFYONLY:
    Check the integrity but don’t repair the files.
  • /SCANFILE:
    Scan the integrity of specific files and fix if corrupted.
  • /VERIFYFILE:
    Verify the integrity of specific files but don’t repair them.
  • /OFFBOOTDIR:
    Use this to do repairs on an offline boot directory.
  • /OFFWINDIR:
    Use this to do repairs on an offline Windows directory.
  • /OFFLOGFILE:
    Specify a path to save a log file with scan results.

The scan can take up to 10 or 15 minutes, so give it time.

11. NET USE: Map drives

If you want to map a new drive, you could always open File
Explorer, right click on This PC, and go through the Map Network Drive wizard.
However, using the NET USE command,
you can do the same thing with one command string.

For example, if you have a share folder on a computer on
your network called \OTHER-COMPUTERSHARE, you can
map this as your own Z: drive by typing the command:

Net use Z: “\OTHER-COMPUTERSHARE”
/persistent:yes

The persistent
switch tells your computer that you want this drive remapped every time you log
back into your computer.

12. CHKDSK: Check Disk

While the SFC command only checks the integrity of core
system files, you can use the CHKDSK
command to scan an entire drive.

The command to check the C: drive and repair any problems,
launch the command window as an administrator and type CHKDSK /f C:.

This command checks for things like:

  • File fragmentation
  • Disk errors
  • Bad sectors

The command can fix any disk errors (if possible). When the
command is finished, you’ll see a status of the scan and what actions were
taken.

13. SCHTASKS: Schedule Tasks

Windows comes with a wizard for creating scheduled tasks.
For example, maybe you have a BAT file stored on C:temp that you want to run
every day at noon.

You’d have to click through the Scheduled Task wizard to
configure this. Or you can type a single SCHTASKS
command to set it up.

SCHTASKS /Create /SC
HOURLY /MO 12 /TR Example /TN c:tempFile1.bat

The scheduled switch accepts arguments like minute, hourly,
daily, and monthly. Then you specify the frequency with the /MO command.

If you typed the command correctly, you’ll see the response,
SUCCESS: The scheduled task “Example”
has successfully been created
.

14. ATTRIB: Change File Attributes

In Windows, you can change file attributes by right clicking
on a file and finding the right property to change. However, instead of hunting
around for the file attribute, you can use the ATTRIB command to set the file attributes.

For example, if you type: ATTRIB +R +H C:tempFile1.bat, it’ll set File1.bat as a hidden,
read-only file.

There is no response when it’s successful, so unless you see
an error message, the command worked.

As you can see, there are some powerful and useful things
you can do with the Windows command prompt, if you know the right commands.

Believe it or not, there are even more commands that will
give you the ability to do some things you probably never realized just by
typing a simple command.

  • BITSADMIN:
    Initiate upload or download jobs over the network or internet and monitor the
    current state of those file transfers.
  • COLOR:
    Change the background color of the command prompt window.
  • COMP:
    Compare the contents of any two files to see the differences.
  • FIND/FINDSTR:
    Search for strings inside of any ASCII files.
  • PROMPT:
    Change the command prompt from C:> to something else.
  • TITLE:
    Change the title of the command prompt window.
  • REGEDIT:
    Edit keys in the Windows registry (use with caution).
  • ROBOCOPY:
    A powerful file copy utility built right into Windows.

If you’re interested in learning more, Microsoft offers a full list of all of the Windows CMD commands included in the latest version of the Windows OS.

arp Displays and modifies the Internet-to-adapter address translation tables used by the Address in Networks and communication management assoc Displays or modifies file name extension associations attrib Displays, sets, or removes attributes assigned to files or directories. bcdboot Enables you to quickly set up a system partition, or to repair the boot environment located on the system partition bcdedit Used to manage boot configuration data bitsadmin Used to manage the Background intelligent Transfer Service break Enable/Disable break copability CTRL+C in CMD cacls Used to change permissions of files call Used one batch program to call another certreq Used to request certificates from a certification authority certutil Manage Certification Authority files and Services cd Used to change directory or go to a specific one chcp Displays the number of active console code page chdir Same as cd command chkdsk Used to check and repair issues in the disk chkntfs Used to check the NTFS file system choice Prompts the user to select one item from a list of single-character choices in a batch program, and then returns the index of the selected choice. If used without parameters, choice displays the default choices Y and N. cipher Used to encrypt/decrypt file and folder cleanmgr Used to clean temp files and recycle bin automatically clip Copy result of any command to windows clipboard cls Clear CMD screen cmd Used to start a new CMD shell cmdkey Creates, lists, and deletes stored user names and passwords or credentials. cmstp Used to install or remove a connection manage service profile color Change the color of the CMD shell using options comp Compare contents of two files or two sets of files compact Displays or alters the compression of files or directories on NTFS partitions covert Converts a disk from one disk type to another. copy Copy one or more files to another location date Displays or sets the system date. defrag Locates and consolidates fragmented files on local volumes to improve system performance. del Deletes one or more files. dir Used to display files and folder list diskpart helps you manage your computer’s drives (disks, partitions, volumes, or virtual hard disks) dispdiag Logs display information to a file. doskey Recalls previously entered command-line commands, edits command lines, and creates macros. driverquery Display a list of installed device drivers and their properties echo Displays messages or turns on or off the command echoing feature endlocal Ends localization of environment changes in a batch file erase Used to delete one or more file eventcreate Enables an administrator to create a custom event in a specified event log exit Exits the command interpreter or the current batch script. expand Expands one or more compressed files extrac32 Extracts files from a cabinet or source. fc Compares two files or sets of files and displays the differences between them. find Searches for a string of text in a file or files, and displays lines of text that contain the specified string findstr Searches for patterns of text in files finger Displays information about users on a specified remote computer fondue Enables Windows optional features by downloading required files from Windows Update or another source specified by Group Policy for Runs a specified command for each file, within a set of files forfiles Selects and runs a command on a file or set of files. This command is most commonly used in batch files format Format a disk to accept Windows files. You must be a member of the Administrators group to format a hard drive fsutil File System utility to manage file and drive properties ftp Use FTP service to transfer files from one PC to another ftype Display/Modify file extensions type associations getmac Used to display the MAC address of your network adapter goto Used to direct a batch program to a line identified by a label gpresult Display Group Policy Settings and Resultant Set of Policy for a user gpupdate Updates Group Policy settings help Displays a list of the available commands or detailed help information on a specified command hostname Displays the hostname portion of the full computer name of the computer icacls Displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories if Performs conditional processing in batch programs ipconfig Display and change windows IP Configuration klist Displays a list of currently cached Kerberos tickets ktmutil Starts the Kernel Transaction Manager utility label Used to change the name of a disk lodctr Allows you to register or save performance counter name and registry settings in a file and designate trusted services logman Used to manage performance monitor logs logoff Log a use off makecab Package existing files into a cabinet (.cab) file md Creates a directory or subdirectory mkdir Creates a directory or subdirectory mklink Creates a directory or file symbolic or hard link mmc Access Microsoft Management Console mode Displays system status, changes system settings, or reconfigures ports or device more Displays one screen of output at a time mountvol Creates, deletes, or lists a volume mount point. You can also link volumes without requiring a drive letter move Moves one or more files from one directory to another directory msdt Invokes a troubleshooting pack at the command line or as part of an automated script, and enables additional options without user input msiexec Provides the means to install, modify, and perform operations on Windows Installer from the command line msinfo32 Display system information mstsc Create a remote Desktop connection nbtstat Displays NetBIOS over TCP/IP (NetBT) protocol statistics netcfg Installs the Windows Preinstallation Environment (WinPE), a lightweight version of Windows used to deploy workstations net print Displays information about a specified printer queue or a specified print job, or controls a specified print job netsh Display or modify network configuration net Used to manage network resources and services netstat Display active TCP/IP connections nslookup Displays information that you can use to diagnose Domain Name System (DNS) infrastructure openfiles Queries or display open files path Set PATH environment variable for executable files pathping Latency and packet loss info for each node in the network path pause Used to stop processing of a batch file perfmon Access Performance monitor in CMD ping Test network connection to a computer pktmon Used for advanced packet capture and event collection, drop detection, filtering, and counting pnpunattend Audits a computer for device drivers, and performs unattended driver installations, or searches for drivers without installing and, optionally, report the results to the command line pnputil Used to manage the driver store popd Go to the latest path/folder stored by the PUSHD command powerShell Access Powershell powerShell_ise Windows PowerShell Integrated Scripting Environment (ISE) is a graphical host application that enables you to read, write, run, debug, and test scripts print Used to print a text file from CMD powercfg Used to configure power settings and know battery health prompt Displaying any text you want, such as the name of the current directory, the time and date, etc. pushd Stores the current directory for use by the popd command, and then changes to the specified directory pwlauncher Enables or disables the Windows To Go Startup Options rd Deletes a directory recover Recovers readable information from a bad or defective disk ReFSUtil ReFSUtil is a tool included in Windows and Windows Server that attempts to diagnose heavily damaged ReFS volumes reg Performs operations on registry subkey information and values in registry entries regini Modifies the registry from the command line or a script, and applies changes that were present in one or more text files regsvr32 Registers .dll files as command components in the registry relog Extracts performance counters from performance counter logs into other formats, such as text-TSV (for tab-delimited text), text-CSV (for comma-delimited text), binary-BIN, or SQL rem Records comments in a script, batch, or config.sys file. If no comment is specified, rem adds vertical spacing ren Renames files or directories rename Renames files or directories replace Replace existing files in a directory. If used with the /a option, this command adds new files to a directory instead of replacing existing files rmdir Deletes a directory robocopy Copies file data from one location to another route Displays and modifies the entries in the local IP routing table rpcping Confirms the RPC connectivity between the computer running Microsoft Exchange Server and any of the supported Microsoft Exchange Client workstations on the network rundll32 Loads and runs 32-bit dynamic-link libraries (DLLs) rasdial Display Remote Access Service Status runas Run a program as different user sc Use Service Controller to manage Windows services schtasks Schedules commands and programs to run at a specific time secedit Configures and analyzes system security set Displays, sets, or removes cmd.exe environment variables setx Creates or modifies environment variables in the user or system environment, without requiring programming or scripting sfc Scans and verifies the integrity of all protected system files and replaces incorrect versions with correct versions shift Changes the position of batch parameters in a batch file shutdown Enables you to shut down or restart local or remote computers, one at a time. sort Reads input, sorts data, and writes the results to the screen, to a file, or another device start Starts a separate Command Prompt window to run a specified program or command subst Associates a path with a drive letter sxstrace Diagnoses side-by-side problems systeminfo Displays detailed configuration information about a computer and its operating system strings Find ANSI and UNICODE strings in binary files takeown Used to take the ownership of a file taskkill Ends one or more tasks or processes tasklist Displays a list of currently running processes on the local computer or a remote computer tcmsetup Enable/Disable the TAPI client telnet Communicates with a computer running the telnet server service time Displays or sets the system time timeout Pauses the command processor for the specified number of seconds title Creates a title for the Command Prompt window tpmtool This utility can be used to get information about the Trusted Platform Module (TPM). tpmvscmgr The tpmvscmgr command-line tool allows users with Administrative credentials to create and delete TPM virtual smart cards on a computer tracerpt The tracerpt command parses Event Trace Logs, log files generated by Performance Monitor, and real-time Event Trace providers tracert Trace route to a remote host by sending ICMP request messages tree Displays the directory structure of a path or of the disk in a drive graphically type Displays the contents of a text file typeperf writes performance data to the command window or to a log file tzutil Displays the Windows Time Zone utility unlodctr Removes Performance counter names and Explains text for a service or device driver from the system registry ver Displays the operating system version number verifier Driver Verifier monitors Windows kernel-mode drivers and graphics drivers to detect illegal function calls or actions that might corrupt the system verify Verify whether files are saved correctly on the disk vol Displays the disk volume label and serial number vssadmin Show shadow copy backups, installed shadow copy writers and providers wbadmin Enables you to back up and restore your operating system, volumes, files, folders, and applications from a command prompt waitfor Sends or waits for a signal on a system wecutil Enables you to create and manage subscriptions to events that are forwarded from remote computers wevtutil Enables you to retrieve information about event logs and publishers where Displays the location of files that match the given search pattern whoami Displays user, group, and privileges information for the user who is currently logged on to the local system winrs Windows Remote Management allows you to manage and execute programs remotely winrm Windows Remote Management wmic Displays WMI information inside an interactive command shell. wscript Windows Script Host provides an environment in which users can execute scripts in a variety of languages that use a variety of object models to perform tasks xcopy Copies files and directories, including subdirectories :: Comment

Понравилась статья? Поделить с друзьями:
  • List 850 плоттер драйвер windows 10
  • List 850 драйвер windows 7 64 bit
  • Linux connect to windows remote desktop
  • Linphone скачать для windows на русском
  • List 720 entry драйвера windows 7