Table of contents
TOC
Collapse the table of content
Expand the table of content

Windows Commands

Corey Plett|Last Updated: 11/22/2016
|
1 Contributor

Applies To: Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

Use this topic to find the documentation resources and other technical information that you need to learn about the command shell, and to automate command-line tasks by using scripts or scripting tools.

To read introductory information about the command shell and command-line tools, see Feature description.

To find information about a specific command, in the following A-Z menu, click the letter that the command starts with, and then click the command name.

A | B | C | D | E | F | G | H | I | J| K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Prerequisites

The information that is contained in this overview applies to:

  • Windows Server 2012
  • Windows Server 2008 R2
  • Windows Server 2008
  • Windows Server 2003 R2
  • Windows Server 2003
  • Windows 8
  • Windows 7
  • Windows Vista
  • Windows XP

Feature description

Command shell overview

The command shell is a software program that provides direct communication between the user and the operating system. The non-graphical, command shell user interface provides the environment in which you run character-based applications and utilities. The command shell executes programs and displays their output on the screen by using individual characters similar to the MS-DOS command interpreter, Command.com. The command shell in the Windows Server operating system uses the command interpreter, Cmd.exe. Cmd.exe loads applications, directs the flow of information between applications, and translates user input into a form that the operating system understands.

You can use the command shell to create and edit scripts to automate routine tasks. For example, you can create simple scripts in batch (.bat) files to automate the management of user accounts or nightly backups. You can also use the command-line version of Windows Script Host to run more sophisticated scripts in the command shell. For more information, see cscript or wscript. You can perform operations more efficiently by using scripts than you can by using the user interface. Scripts accept all commands that are available at the command line.

Customize the Command prompt window

You can change the properties for the Command prompt window.

To configure the Command prompt window
  1. Open a Command prompt window, click the upper-left corner of the Command prompt window, and then click Properties. (Or to open Command prompt Properties from the keyboard, press ALT+SPACEBAR+P.)
  2. Click the Options tab.
  3. In Command History, type or select 999 in Buffer Size, and then type or select 5 in Number of Buffers. By increasing the screen buffer size to 999, you enable scrolling through the Command prompt window. By increasing the number of buffers to five, you increase the number of lines in the Command prompt window to 5000.
  4. In edit Options, select the Quick edit mode and Insert mode check boxes.
  5. Click the Layout tab.
  6. In Screen Buffer Size, type or select 2500 in Height.
  7. To further customize your Command prompt window settings, perform any of the following optional tasks:
    • In Screen Buffer Size, increase Width.
    • In Window Size, increase Height.
    • In Window Size, increase Width.
    • Clear the Let system position window check box, and then, in Window Position, change the values in Left and Top.
  8. In the Apply Properties dialog box, click Save properties for future windows with same title.
Note

To enable or disable file and directory name completion on a computer or user logon session, run regedit.exe and set the following reg_DWOrd value:

HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\completionChar\reg_DWOrd

To set the reg_DWOrd value, use the hexadecimal value of a control character for a particular function (for example, 0 9 is Tab and 0 08 is Backspace). User-specified settings take precedence over computer settings, and command-line options take precedence over registry settings.

Caution

Incorrectly editing the registry may severely damage your system. Before making changes to the registry, you should back up any valued data on the computer.

Command-line reference A-Z

To find information about a specific command, in the following A-Z menu, click the letter that the command starts with, and then click the command name. A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Note

Each command-line tool topic displays the version of Windows that is supported by the command-line tool.

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Command-line reference A-Z

Z

Command-line reference A-Z

© 2017 Microsoft