The following is a (hopefully) comprehensive list of command line commands and utilities for Windows 7. Click the links for further details and examples of each command.
The arp command is used to display or change entries in the ARP cache.
The assoc command is used to display or change the file type associated with a particular file extension.
The at command is used to schedule commands and other programs to run at a specific date and time.
The attrib command is used to change the attributes of a single file or a directory.
The auditpol command is used to display or change audit policies.
The bcdedit command is used to view or make changes to Boot Configuration Data.
The bitsadmin command is used to create, manage, and monitor download and upload jobs.
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 break command sets or clears extended CTRL+C checking on DOS systems.
The cacls command is used to display or change access control lists of files.
The call command is used to run a script or batch program from within another script or batch program.
The certreq command is used to perform various certification authority (CA) certificate functions.
The certutil command is used to dump and display certification authority (CA) configuration information in addition to other CA functions.
The change command changes various terminal server settings like install modes, COM port mappings, and logons.
The chcp command displays or configures the active code page number.
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 chglogon command enables, disables, or drains terminal server session logins.
The chgport command can be used to display or change COM port mappings for DOS compatibility.
The chgusr command is used to change the install mode for the terminal server.
The chkdsk command, often referred to as check disk, is used to identify and correct certain hard drive errors.
The chkntfs command is used to configure or display the checking of the disk drive during the Windows boot process.
The choice command is used within a script or batch program to provide a list of choices and return of the value of that choice to the program.
The cipher command shows or changes the encryption status of files and folders on NTFS partitions.
The clip command is used to redirect the output from any command to the clipboard in Windows.
The cls command clears the screen of all previously entered commands and other text.
The cmd command starts a new instance of the command interpreter.
The cmdkey command is used to show, create, and remove stored user names and passwords.
The cmstp command installs or uninstalls a Connection Manager service profile.
The color command is used to change the colors of the text and background within the Command Prompt window.
The comp command is used to compare the contents of two files or sets of files.
The compact command is used to show or change the compression state of files and directories on NTFS partitions.
The convert command is used to convert FAT or FAT32 formatted volumes to the NTFS format.
The copy command does simply that – it copies one or more files from one location to another.
The date command is used to show or change the current date.
The debug command starts Debug, a command line application used to test and edit programs.
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 del command is used to delete one or more files. The del command is the same as the erase command.
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 diskcomp command is used to compare the contents of two floppy disks.
The diskcopy command is used to copy the entire contents of one floppy disk to another.
The diskpart command is used to create, manage, and delete hard drive partitions.
The diskraid command starts the DiskRAID tool which is used to manage and configure RAID arrays.
The dism command starts the Deployment Image Servicing and Management tool (DISM). The DISM tool is used to manage features in Windows images.
The dispdiag command is used to output a log of information about the display system.
The doskey command is used to edit command lines, create macros, and recall previously entered commands.
The driverquery command is used to show a list of all installed drivers.
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 edit command starts the MS-DOS Editor tool which is used to create and modify text files.
The edlin command starts the Edlin tool which is used to create and modify text files from the command line.
The endlocal command is used to end the localization of environment changes inside a batch or script file.
The erase command is used to delete one or more files. The erase command is the same as the del command.
The eventcreate command is used to create a custom event in an event log.
The exe2bin command is used to convert a file of the EXE file type (executable file) to a binary file.
The exit command is used to end the Command Prompt session that you’re currently working in.
The expand command is used to extract a single file or a group of files from a compressed file.
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 fc command is used to compare two individual or sets of files and then show the differences between them.
The find command is used to search for a specified text string in one or more files.
The findstr command is used to find text string patterns in one or more files.
The finger command is used to return information about one or more users on a remote computer that’s running the Finger service.
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 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 format command is used to format a drive in the file system that you specify.
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 ftp command can used to transfer files to and from another computer. The remote computer must be operating as an FTP server.
The ftype command is used to define a default program to open a specified file type.
The getmac command is used to display the media access control (MAC) address of all the network controllers on a system.
The goto command is used in a batch or script file to direct the command process to a labeled line in the script.
The gpresult command is used to display Group Policy settings.
The gpupdate command is used to update Group Policy settings.
The graftabl command is used to enable the ability of Windows to display an extended character set in graphics mode.
The graphics command is used to load a program that can print graphics.
The help command provides more detailed information on any of the other Command Prompt commands.
The hostname command displays the name of the current host.
The icacls command is used to display or change access control lists of files. The icacls command is an updated version of the cacls command.
The if command is used to perform conditional functions in a batch file.
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 irftp command is used to transmit files over an infrared link.
The iscsicli command starts the Microsoft iSCSI Initiator, used to manage iSCSI.
The label command is used to manage the volume label of a disk.
The loadfix command is used to load the specified program in the first 64K of memory and then runs the program.
The lodctr command is used to update registry values related to performance counters.
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 logoff command is used to terminate a session.
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 mkdir command is used to create a new folder.
The mklink command is used to create a symbolic link.
The mmc command can be used to open Microsoft Management Console in author mode or to a specific snap-in console, all from the Command Prompt.
The mode command is used to configure system devices, most often COM and LPT ports.
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 command.
The mountvol command is used to display, create, or remove volume mount points.
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 msg command is used to send a message to a user.
The msiexec command is used to start Windows Installer, a tool used to install and configure software.
The mstsc command starts the Remote Desktop Connection tool from the Command Prompt.
The muiunattend command starts the Multilanguage User Interface unattended setup process.
The nbtstat command is used to show TCP/IP information and other statistical information about a remote computer.
The net command is used to display, configure, and correct a wide variety of network settings.
The netcfg command is used to install the Windows Preinstallation Environment (WinPE), a lightweight version of Windows used to deploy workstations.
The netstat command is most commonly used to display all open network connections and listening ports.
The nlsfunc command is used to load information specific to a particular country or region.
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 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 ocsetup command starts the Windows Optional Component Setup tool, used to install additional Windows features.
The openfiles command is used to display and disconnect open files and folders on a system.
The path command is used to display or set a specific path available to executable files.
The pathping command functions much like the tracert command but will also report information about network latency and loss at each hop.
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 ping command sends an Internet Control Message Protocol (ICMP) Echo Request message to a specified remote computer to verify IP-level connectivity.
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 pnpunattend command is used to automate the installation of hardware device drivers.
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 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 print command is used to print a specified text file to a specified printing device.
The prompt command is used to customize the appearance of the prompt text in Command Prompt.
The Psr command starts Problem Step Recorder, a screen capture and logging program for use in troubleshooting problems.
The pushd command is used to store a directory for use, most commonly from within a batch or script program.
The qappsrv command is used to display all Remote Desktop Session Host servers available on the network.
The qprocess command is used to display information about running processes.
The query command is used to display the status of a specified service.
The quser command is used to display information about users currently logged on to the system.
The qwinsta command is used to display information about open Remote Desktop Sessions.
The rasdial command is used to start or end a network connection for a Microsoft client.
The recover command is used to recover readable data from a bad or defective disk.
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 regsvr32 command is used to register a DLL file as a command component in the Windows Registry.
The relog command is used to create new performance logs from data in existing performance logs.
The rem command is used to record comments or remarks in a batch or script file.
The rename command is used to change the name of the individual file that you specify.
The replace command is used to replace one or more files with one or more other files.
reset session (rwinsta)
The reset session command is used to reset the session subsystem software and hardware to known initial values.
The rmdir command is used to delete an existing and completely empty folder.
The robocopy command is used to copy files and directories from one location to another. The robocopy command is superior to the more simple copy command because robocopy supports many more options. This command is also called Robust File Copy.
The route command is used to manipulate network routing tables.
The rpcping command is used to ping a server using RPC.
The runas command is used to execute a program using another user’s credentials.
The sc command is used to configure information about services. The sc command communicates with the Service Control Manager.
The schtasks command is used to schedule specified programs or commands to run a certain times. The schtasks command can be used to create, delete, query, change, run, and end scheduled tasks.
The secedit command is used to configure and analyze system security by comparing the current security configuration to a template.
The set command is used to enable or disable certain options in Command Prompt.
The setlocal command is used to start the localization of environment changes inside a batch or script file.
The setver command is used to set the MS-DOS version number that MS-DOS reports to a program.
The setx command is used to create or change environment variables in the user environment or the system environment.
The sfc command is used to verify and replace important Windows system files. The sfc command is also referred to as System File Checker and Windows Resource Checker.
The shadow command Is used to monitor another Remote Desktop Services session.
The share command is used to install file locking and file sharing functions in MS-DOS.
The shift command is used to change the position of replaceable parameters in a batch or script file.
The shutdown command can be used to shut down, restart, or log off the current system or a remote computer.
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 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 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 sxstrace command is used to start the WinSxs Tracing Utility, a programming diagnostic tool.
The systeminfo command is used to display basic Windows configuration information for the local or a remote computer.
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 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.
“Displays a list of applications, services, and the Process ID (PID) currently running on either a local or a remote computer.
The tcmsetup command is used to setup or disable the Telephony Application Programming Interface (TAPI) client.
The time command is used to show or change the current time.
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 title command is used to set the Command Prompt window title.
The tracerpt command is used to process event trace logs or real-time data from instrumented event trace providers.
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 tree command is used to graphically display the folder structure of a specified drive or path.
The tsdiscon command is used to disconnect a Remote Desktop session.
The tskill command is used to end the specified process.
The type command is used to display the information contained in a text file.
The typerperf command displays performance data in the Command Prompt window or writes the data to specified log file.
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 automatic Daylight Saving Time adjustments.
The unlodctr command removes Explain text and Performance counter names for a service or device driver from the Windows Registry.
The ver command is used to display the current Windows version.
The verify command is used to enable or disable the ability of Command Prompt to verify that files are written correctly to a disk.
The vol command shows the volume label and serial number of a specified disk, assuming this information exists.
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 w32tm command is used to diagnose issues with Windows Time.
The waitform command is used to send or wait for a signal on a system.
The wbadmin command is used 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 wevtutil command starts the Windows Events Command Line Utility which is used to manage event logs and publishers.
The where command is used to search for files that match a specified pattern.
The whoami command is used to retrieve user name and group information on a network.
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 winrs command is used to open a secure command window with a remote host.
The winsat command starts the Windows System Assessment Tool, a program that assesses various features, attributes, and capabilities of a computer running Windows.
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 xcopy command can copy one or more files or directory trees from one location to another.