Windows Command Line Reference For Windows 7, Windows Server 2003, Windows 2003 R2, Windows Server 2008, Windows Server 2008 R2 and Windows Vista Created by CSArchive.Net
Windows Command Line Reference Created by CSArchive.Net ŠAll Rights Reserved
These commands apply to Windows 7, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2 and Windows Vista. To see more detailed information about each command, click on Details. A B C D E F G H I K L M N O P Q R S T U V W X Additional References Windows Command Line Reference Command Description A Top of the Document Adprep Extends the Active Directory schema. Allows programs to open data files in specified directories as if they Append were in the current directory. Displays and modifies the IP-to-Physical address translation tables used Arp by address resolution protocol. Assoc Displays or modifies extension associations. Schedules commands and programs to run on a computer at a specified At time and date. Attrib Displays or changes file attributes. Displays information about and performs functions to manipulate audit Auditpol policies. Runs when the computer is started and prior to Windows Autochk Server 2008 R2 starting to verify the logical integrity of a file system. Converts file allocation table (FAT) and FAT32 volumes to the NTFS file Autoconv system. Formats a drive or partition when called from the Windows Recovery Autofmt Console. B Top of the Document Boot Configuration Data (BCD) files provide a store that is used to Bcdedit describe boot applications and boot application settings. BITSAdmin is a command-line tool that you can use to create download Bitsadmin or upload jobs and monitor their progress. Can be used to configure, query, change or delete the boot entry Bootcfg settings in the BOOT.INI file. Break Sets or clears extended CTRL+C checking on MS-DOS systems. C Top of the Document Calls one batch program from another without stopping the parent Call batch program.
Details Details Details Details Details Details Details Details Details Details Details
Details Details Details Details Details
Cd Certreq Certutil Change Chcp Chdir Chglogon Chgport Chgusr Chkdsk Chkntfs Choice Cipher Clip Cls Cluster Cmd Cmdkey Color Comp Compact Convert Copy Csvde D Date Dcdiag Dcpromo Defrag Del Dfscmd Dir Dirquota
Displays the name of or changes the current directory. Can be used to request certificates from a certification authority (CA). Dumps and displays certification authority (CA) configuration information. Changes Remote Desktop Session Host (RD Session Host) server settings for logons, COM port mappings, and install mode. Displays or sets the active console code page, or changes the console’s active console code page. Displays the name or changes the current directory. Enable, disable, or drain session logins. Lists or changes the COM port mappings to be compatible with MS-DOS applications. Changes the install mode for the Remote Desktop Session Host (RD Session Host) server. Checks the file system and file system metadata of a volume for logical and physical errors. Displays or modifies the checking of disk at boot time. Allows users to select one item from a list of choices and returns the index of the selected choice. Displays or alters the encryption of directories or files on NTFS partitions. Redirects command output from the command line to the Windows clipboard. Clears the Command Prompt window. Creates a new cluster or configures an existing cluster. Starts a new instance of the windows command interpreter. Creates, lists, and deletes stored user names and passwords or credentials. Sets the default console foreground and background colors. Compares the contents of two files or sets of files byte by byte. Displays or alters the compression of files on NTFS partitions. Converts FAT and FAT32 volumes to NTFS. Copies one or more files to another location. Imports and exports data from Active Directory Domain Services (AD DS). Top of the Document Displays or sets the date. Encapsulates detailed knowledge of how to identify abnormal behavior in the system. Installs and removes Active Directory Domain Services (AD DS). Locates and consolidates fragmented files on local volume to improve system performance. Deletes specified files. Configures DFS folders and folder targets in a DFS namespace. Displays a list of files and subdirectories in a directory. Includes subcommands for creating and managing quotas.
Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details
Diskcomp Diskcopy
Compares the contents of two floppy disks. Copies the contents of one floppy disk to another. Enables you to manage objects (disks, partitions, or volumes) by using DiskPart scripts or direct input from a command prompt. Enables you to configure and manage redundant array of independent DiskRAID (or inexpensive) disks (RAID) storage subsystems. Exposes the functionality offered by the Volume Shadow Copy Service Diskshadow (VSS). Useful in scripting batch files to help automate routine DNS Dnscmd management tasks. Doskey Edits command lines, recalls Windows commands, and create macros. Driverquery Displays a lists of all installed device drivers and their properties. Displays and changes permissions (access control entries) in the access Dsacls control list (ACL) of objects in Active Directory Domain Services (AD DS). Dsadd Adds specific types of objects to the directory. Exposes Active Directory data that is stored in a snapshot or backup as a Dsamain Lightweight Directory Access Protocol (LDAP) server. Performs database maintenance of the Active Directory Domain Services Dsdbutil (AD DS) store. Dsget Displays the selected properties of a specific object in the directory. Dsmgmt Manages and controls flexible single master operations (FSMO). Dsmod Modifies an existing object of a specific type in the directory. Moves a single object, within a domain, from its current location in the Dsmove directory to a new location. Dsquery Queries the directory by using search criteria that you specify. Deletes an object of a specific type or any general object from the Dsrm directory. E Top of the Document Echo Turns the command-echoing feature on or off, or displays a message. Edit Starts MS-DOS Editor, which creates and changes ASCII text files. Ends localization of environment changes in a batch file, and restores Endlocal environment variables to their values. Erase Deletes one or more files. Enables an administrator to create a custom event ID and message in a Eventcreate specified event log. Quits the CMD.EXE program (command interpreter) or the current batch Exit script. Expand (Extract) Expands one or more compressed files. F Top of the Document Compares two files or sets of files and displays the differences between Fc them. Creates and manages file groups, file screens, file screen exceptions, and Filescrn file screen templates. Find Searches for a text string in a files or files. Findstr Searches for patterns of text in files using regular expressions. Flattemp Enables or disables flat temporary folders.
Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details
For Forfiles Format Freedisk Fsutil Ftp Ftype G Goto Gpresult Graftabl H Hashgen Help I Icacls If Ipconfig Irftp K Klist Ksetup Ktmutil Ktpass L Label Ldifde Ldp Logman Logoff Lpq Lpr
Runs a specified command for each file in a set of files. Selects a file (or set of files) and executes a command on that file. Formats the disk in the specified volume to accept Windows files. Checks to see if the specified amount of disk space is available before continuing with an installation process. You can use to perform many FAT and NTFS file system related tasks. Transfers files to and from a computer running a file transfer protocol (FTP) server service. Displays or modifies file types used in file extension associations. Top of the Document Directs cmd.exe to a labeled line in a batch program. Displays Group Policy settings and Resultant Set of Policy (RSOP) for a user or a computer. Enables Windows to display an extended character set in graphics mode. Top of the Document Creates or deletes BranchCache content information. Provides online information about system commands. Top of the Document Displays or modifies discretionary access control lists (DACLs) on specified files. Performs conditional processing in batch programs. Displays all current TCP/IP network configuration values and refreshes Dynamic Host configuration Protocol (DHCP) and Domain Name System (DNS) settings. Sends files over an infrared link. Top of the Document Displays a list of currently cached Kerberos tickets. Performs tasks that are related to setting up and maintaining Kerberos protocol and the Key Distribution Center (KDC). Starts the Kernel Transaction Manager utility. Configures the server principal name for the host or service in Active Directory Domain Services (AD DS). Top of the Document Create, changes, or deletes the volume label of a disk. Creates, modifies, and deletes directory objects. Performs operations such as connect, bind, search, modify, add, and delete against any Lightweight Directory Access Protocol (LDAP). Creates and manages Event Trace Session and Performance logs and supports many functions of Performance Monitor from the command line. Logs off a user from a session on a Remote Desktop Session Host (RD Session Host) server and deletes the session from the server. Displays the status of a print queue on a computer running Line Printer Daemon (LPD). Sends a file to a computer running Line Printer Daemon (LPD) in preparation for printing.
Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details
M
Top of the Document Manages User Name Mapping for Microsoft Services for Network File Mapadmin System. Md Creates a directory or subdirectory. Mkdir Creates a directory or subdirectory. Mklink Creates a symbolic link. Displays systems status, changes system settings, or reconfigures ports Mode or devices. More Displays one screen of output at a time. Mount Mounts Network File System (NFS) network shares. Mountvol Creates, deletes, or lists a volume mount point. Move Moves files and renames files and directories. Invokes a troubleshooting pack at the command line or as part of an Msdt automated script, and enables additional options without user input. Sends a message to a user on a Remote Desktop Session Host (RD Msg Session Host) server. Provides the means to install, modify, and perform operations on Msiexec Windows Installer from the Command Line. Displays a comprehensive view of your hardware, system components, Msinfo32 and software environment. Creates connections to Remote Desktop Session Host (RD Session Host) Mstsc servers or other remote computers. N Top of the Document Enables administrators to manage Active Directory domains and trust Netdom relationships from the command prompt. Allows you to, either locally or remotely, display or modify the network Netsh configuration of a currently running computer. Net computer Adds or deletes a computer from a domain database. Net group Adds, displays, or modifies global groups in domains. Net localgroup Adds, displays, or modifies local groups. Displays information about a specified printer queue or a specified print Net print job, or controls a specified print job. Net user Adds or modifies user accounts, or displays user account information. Nfsadmin Manages Server for NFS and Client for NFS. Nfsshare Controls Network File System (NFS) shares. Nfsstat Displays or resets counts of calls made to Server for NFS. Controls Network Load Balancing (NLB) operations and modifies Nlb parameter settings. Nltest Performs network administrative tasks. Displays information that you can use to diagnose Domain Name System Nslookup (DNS) infrastructure. Ntbackup Backups and restores your computer and files from a command prompt. Provides management facilities for Active Directory Domain Services Ntdsutil (AD DS) and Active Directory Lightweight Directory Services (AD LDS). O Top of the Document Openfiles Enables an administrator or list or disconnect files and folders that have
Details Details Details Details Details Details Details Details Details Details Details Details Details Details
Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details
P Path Pause Perfmon Popd Print Prncnfg Prndrvr Prnjobs Prnmngr Prnport Prnqctl Prompt Pubprn Pushd Q Qappsrv Qprocess Query Quser Qwinsta R Rasdial Rcp Rd Rdpsign Reagentc Recover Redircmp
been opened on a system. Top of the Document Displays or sets a search path for executable files. Suspends processing of a batch program and displays a message prompting the user to press any key to continue. Start Windows Reliability and Performance Monitor in a specific standalone mode. Changes to the directory stored by the PUSHD command. Prints a text file. Configures or displays configuration information about a printer. Adds, deletes, and lists printer drivers. Pauses, resumes, cancel, and lists print jobs. Adds, deletes, and lists printers or printer connections, in addition to setting and displaying the default printer. Creates, deletes, and lists standard TCP/IP printer ports, in addition to displaying and changing port configuration. Prints a test page, pauses or resumes a printer, and clears a printer queue. Changes the Cmd.exe command prompt. Publishes a printer to the Active Directory Domain Services. Stores the current directory for use by the popd command, and then changes to the specified directory. Top of the Document Displays a list of all Remote Desktop Session Host (RD Session Host) servers on the network. Displays information about processes that are running on a Remote Desktop Session Host (RD Session Host) server. Displays information about processes, sessions, and Remote Desktop Session Host (RD Session Host) servers. Displays information about user sessions on a Remote Desktop Session Host (RD Session Host) server. Displays information about sessions on a Remote Desktop Session Host (RD Session Host) server. Top of the Document Connects or disconnects a dial-up or virtual private network (VPN) connection. Copies files between computers. Removes (deletes) a directory. Enables you to digitally sign a Remote Desktop Protocol (.rdp) file. Configures the Windows Recovery Environment (Windows RE) and enables image recovery solutions. Recovers readable information from a bad or defective disk. Redirects the default container for newly created computers to a specified, target organizational unit (OU) so that newly created computer objects are created in the specific target OU instead of in CN=Computers.
Details Details Details Details Details Details Details Details Details Details Details Details Details Details
Details Details Details Details Details
Details Details Details Details Details Details Details
Redirects the default container for newly created users to a specified, Redirusr target organizational unit (OU) so that newly created user objects are created in the specific target OU instead of in CN=Users. Adds, changes, and displays registry subkey information and values in Reg registry entries. Regsvr32 Registers .dll files as command components in the registry. Creates new performance logs from data in existing performance logs by Relog changing the sampling rate and/or converting the files format. Rem Records comments in a batch file or CONFIG.SYS. Ren Renames files or directories. Rename Renames files or directories. Diagnoses Active Directory replication problems between domain Repadmin controllers running Microsoft Windows operating systems. Replace Replaces files. Reset the session subsystem hardware and software to know initial Reset session values. Rmdir Removes (deletes) a directory. Robocopy Copies file data. Rpcinfo Lists programs on remote computers. Runs commands on remote computers running the RSH service or Rsh daemon. Allows a user to run specific tools and programs with different Runas permissions than the user's current logon provides. Rundll32 Loads and runs 32-bit dynamic-link libraries (DLLs). Resets (deletes) a session on a Remote Desktop Session Host (RD Rwinsta Session Host) server. S Top of the Document SC Communicates with the Service Controller and installed services. Enables an administrator to create, delete, query, change, run and end Schtasks scheduled tasks on a local or remote system. Servermanagercmd Installs and removes roles, role services, and features. Set Displays, sets, or removes cmd.exe environment variables. Setlocal Starts localization of environment variables in a batch file. Reads, modifies, and deletes the Service Principal Names (SPN) directory Setspn property for an Active Directory service account. Creates or modifies environment variables in the user or system Setx environment, without requiring programming or scripting. Enables you to remotely control an active session of another user on a Shadow Remote Desktop Session Host (RD Session Host) server. Shift Changes the position of replaceable parameters in a batch file. Showmount Displays mounted directories. Shutdown Allows you to shut down or restart a local or remote computer. Reads input, sorts data, and writes the results to the screen, to a file, or Sort to another device. Starts a separate Command Prompt window to run a specified program Start or command.
Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details
Storrept Subst Systeminfo T Takeown Taskkill Tsklist Telnet Tftp Time Timeout Title Tlntadmn Tracerpt Tree Tscon Tsdiscon Tskill Tsprof Type Typeperf U Umount V Ver Verify Vol Vssadmin W Waitfor Wbadmin
Creates and manages storage reports and storage report tasks Associates a path with a drive letter. Displays detailed configuration information about a computer and its operating system Top of the Document Enables an administrator to recover access to a file that previously was denied, by making the administrator the owner of the file. Terminates tasks by process id or image name. Displays a list of currently running processes on either a local or remote machine. Allows you to communicate with a remote computer that is using the Telnet protocol. 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. Displays or sets the system time. Accepts a timeout parameter to wait for the specified time period or until any key is pressed. Creates a title for the command prompt window. Administers a local or remote computer that is running the Telnet Server Service. Parses Event Trace Logs, log files generated by Performance Monitor and real-time Event Trace providers. Graphically displays the folder structure of a drive or path. Connects to another session on a Remote Desktop Session Host (RD Session Host) server. Disconnects a session from a Remote Desktop Session Host (RD Session Host) server. Ends a process running in a session on a Remote Desktop Session Host (RD Session Host) server. Copies the Remote Desktop Services user configuration information from one user to another. Displays the contents of a text file or files. Writes performance data to the command window or to a log file. Top of the Document Removes Network File System (NFS)–mounted drives. Top of the Document Displays the Windows version. Tells cmd whether to verify that your files are written correctly to a disk. Displays the disk volume label and serial number, if they exist. Displays current volume shadow copy backups and all installed shadow copy writers and providers in the command window. Top of the Document Sends or waits for a signal on a system. Enables you to back up and restore your operating system, volumes, files, folders, and applications from a command prompt.
Details Details Details
Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details Details
Wdsutil Wecutil Wevtutil Where Whoami Winsat Wmic X Xcopy
Manages your Windows Deployment Services server. Enables you to create and manage subscriptions to events that are forwarded from remote computers. Enables you to retrieve information about event logs and publishers. Displays the location of files that match the given search pattern. Displays user, group and privileges information for the user who is currently logged on to the local system. Assesses various features, capabilities, and attributes of a computer running Windows Vista. Displays WMI information inside an interactive command shell. Top of the Document Copies files and directories, including subdirectories.
Details Details Details Details Details Details Details Details
Additional References Command Line Syntax Key
Details
Service for Network File System Command Reference
Details
Windows Server Backup Command Reference
Details
Print Command Reference
Details
Remote Desktop Services Command Reference
Details
Active Directory Domain Services Command Reference
Details
Performance and Reliability Command Reference
Details
Active Directory Certificate Services Command Reference
Details
Microsoft TechNet Library
Details
Scripts and Scripting Guidance
Details
Windows PowerShell
Details
Windows Networking and Messaging
Details
Windows Solution Accelerators
Details
Microsoft System Center
Details
Microsoft Windows 7
Details
Microsoft Windows Vista
Details
Microsoft Windows XP
Details
Microsoft Windows Server Top of the Document
Details
www.csarchive.net