Udostępnij za pośrednictwem


Command-Line Reference

 

Applies To: Windows Server 2003, Windows Vista, Windows XP, Windows Server 2008, Windows 7, Windows Server 2003 R2, Windows Server 2008 R2, Windows Server 2000, Windows Server 2012, Windows 8

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 see a listing of new and deprecated command-line tools see New and deprecated functionality.

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

New and deprecated functionality

Feature/functionality

New or Deprecated?

Description

Cluster

Deprecated

Create a new cluster or configure an existing cluster.

Dfscmd

Deprecated

Configure DFS folders and folder targets in a DFS namespace.

Dirquota

Deprecated

Creates and manages File Server Resource Manager quotas.

Filescrn

Deprecated

Create and manage file groups, file screens, file screen exceptions, and file screen templates that are used to configure general administrative options for screening files.

Fondue

New

Enable optional features in Windows by downloading required files from Windows Update or a source that Group Policy specifies.

PowerShell_Ise

New

Read, write, run, debug, and test Windows PowerShell scripts and modules in a friendly, graphic-assisted environment.

Servermanagercmd

Deprecated

Install or remove roles, role services, and features.

Shadow

Deprecated

Monitor an RD Session Host session.

Storrept

Deprecated

Create and manage storage reports and storage report tasks, and configure general administrative options for File Server Resource Manager.

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.

Warning

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

Command-line reference A-Z

B

Command-line reference A-Z

C

Command-line reference A-Z

D

Command-line reference A-Z

E

Command-line reference A-Z

F

Command-line reference A-Z

G

Command-line reference A-Z

H

Command-line reference A-Z

I

Command-line reference A-Z

J

Command-line reference A-Z

K

Command-line reference A-Z

L

Command-line reference A-Z

M

Command-line reference A-Z

N

Command-line reference A-Z

O

Command-line reference A-Z

P

Command-line reference A-Z

Q

Command-line reference A-Z

R

Command-line reference A-Z

S

Command-line reference A-Z

T

Command-line reference A-Z

U

Command-line reference A-Z

V

Command-line reference A-Z

W

Command-line reference A-Z

X

Command-line reference A-Z

Y

Command-line reference A-Z

Z

Command-line reference A-Z