Windows CMD Commands

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

 

DisplaySwitch Specify which display to use and how to use it


SS64 CMD How-to Search   DNSCMD Manage DNS servers
  DOSKEY Edit command line, recall commands, and create macros
An A-Z Index of Windows CMD commands.   DriverQuery Display installed device drivers
  DSACLs Active Directory ACLs
A    
  DSAdd Add items to Active Directory (user group computer)
  ADDUSERS Add or list users to/from a CSV file
  DSGet View items in Active Directory (user group computer)
  ADmodcmd Active Directory Bulk Modify
  DSQuery Search Active Directory (user group computer)
  ARP Address Resolution Protocol
  DSMod Modify items in Active Directory (user group computer)
  ASSOC Change file extension associations •
  DSMove Move an Active Directory Object
  ATTRIB Change file attributes
  DSRM Remove items from Active Directory
B    
  Dsmgmt Directory Service Management
  BCDBOOT Create or repair a system partition
  DU Display directory sizes/usage
  BCDEDIT Manage Boot Configuration Data
E    
  BITSADMIN Background Intelligent Transfer Service
  ECHO Display message on screen •
  BOOTREC Repair or replace a partition boot sector
  ENDLOCAL End localisation of the environment in a batch file •
  BREAK Do nothing, successfully •
  ERASE Delete one or more files •
  BROWSTAT Get domain, browser and PDC info
  EVENTCREATE  Add a message to the Windows event log
C    
  EXIT Quit the current script/routine and set an errorlevel •
  CACLS Change file permissions
  EXPAND Uncompress CAB files
  CALL Call one batch program from another •
  EXPLORER Open Windows Explorer
  CERTREQ Request certificate from a certification authority
  EXTRACT Uncompress CAB files
  CERTUTIL Manage certification authority (CA) files and services
F    
  CD Change Directory - move to a specific Folder •
  FC Compare two files
  CHANGE Change Terminal Server Session properties
  FIND Search for a text string in a file
  CHANGEPK Upgrade device Edition/Product Key
  FINDSTR Search for strings in files
  CHCP Change the active console Code Page
  FLTMC Manage MiniFilter drivers
  CHDIR Change Directory - move to a specific Folder •
  FOR /F Loop command: against a set of files •
  CHKDSK Check Disk - check and repair disk problems
  FOR /F Loop command: against the results of another command •
  CHKNTFS Check the NTFS file system
  FOR Loop command: all options Files, Directory, List •
  CHOICE Accept keyboard input to a batch file
  FORFILES Batch process multiple files
  CIPHER Encrypt or Decrypt files/folders
  FORMAT Format a disk
  CleanMgr Automated cleanup of Temp files, recycle bin
  FREEDISK Check free disk space
  CLIP Copy STDIN to the Windows clipboard
  FSUTIL File and Volume utilities
  CLS Clear the screen •
  FTP File Transfer Protocol
  CMD Start a new CMD shell
  FTYPE File extension file type associations •
  CMDKEY Manage stored usernames/passwords
G    
  COLOR Change colors of the CMD window •
  GETMAC Display the Media Access Control (MAC) address
  COMP Compare the contents of two files or sets of files
  GOTO Direct a batch program to jump to a labelled line •
  COMPACT Compress files or folders on an NTFS partition
  GPRESULT Display Resultant Set of Policy information
  COMPRESS Compress one or more files
  GPUPDATE Update Group Policy settings
  CON Console input
H    
  CONVERT Convert a FAT drive to NTFS
  HELP Online Help
  COPY Copy one or more files to another location •
  HOSTNAME Display the host name of the computer
  Coreinfo Show the mapping between logical & physical processors
I    
  CSCcmd Client-side caching (Offline Files)
  iCACLS Change file and folder permissions
  CSVDE Import or Export Active Directory data
  IEXPRESS Create a self extracting ZIP file archive
  CURL Transfer data from or to a server
  IF Conditionally perform a command •
D    
  IFMEMBER Is the current user a member of a group
  DATE Display or set the date •
  IPCONFIG Configure IP
  DEFRAG Defragment hard drive
  INUSE Replace files that are in use by the OS
  DEL Delete one or more files •
K    
  DELPROF Delete user profiles
  KLIST Display currently cached Kerberos tickets
  DELTREE Delete a folder and all subfolders
L    
  DevCon Device Manager Command Line Utility
  LABEL Edit a disk label
  DIR Display a list of files and folders •
  LGPO Local Group Policy Object utility
  DIRQUOTA File Server Resource Manager Disk quotas
  LODCTR Load PerfMon performance counters
  DIRUSE Display directory sizes/usage
  LOGMAN Manage Performance Monitor logs
  DISKPART Disk Administration
  LOGOFF Log a user off
  DISKSHADOW Volume Shadow Copy Service
  LOGTIME Log the date and time in a file
  DISKUSE Show the space used in folders
M   
  DISM Deployment Image Servicing and Management
  MAKECAB Create .CAB files   PsPing Measure network performance
  MAPISEND Send email from the command line   PsService View and control services
  Manage-BDE BitLocker Drive Encryption   PsShutdown Shutdown or reboot a computer
  MBSAcli Baseline Security Analyzer   PsSuspend Suspend processes
  MD Create a new Directory •   PUSHD Save and then change the current directory •
  MKLINK Create a symbolic link (linkd) • Q   
  MODE Configure a system device COM/LPT/CON   QPROCESS Query Process Display processes
  MORE Display output, one screen at a time   QWinsta Query Session Display all sessions (TS/Remote Desktop)
  MOUNTVOL Manage a volume mount point   QAppSrv Query TermServer List all servers (TS/Remote Desktop)
  MOVE Move files from one folder to another •   QUSER Query User Display user sessions (TS/Remote Desktop)
  MOVEUSER Move a user from one domain to another R    
  MSG Send a message   RASDIAL Manage RAS connections
  MSIEXEC Microsoft Windows Installer   RASPHONE Manage RAS connections
  MSINFO32 System Information   RD Delete a Directory •
  MSTSC Terminal Server Connection/Remote Desktop Protocol(RDP)   RECOVER Recover a damaged file from a defective disk
N       REG Registry: Read, Set, Export, Delete keys and values
  NET Manage network resources   REGEDIT Import or export registry settings
  NETDOM Domain Manager   REGSVR32 Register or unregister a DLL
  NETSH Configure Network Interfaces, Firewall & Remote access   REGINI Change Registry Permissions
  NBTSTAT Display networking statistics (NetBIOS over TCP/IP)   REM Record comments (remarks) in a batch file •
  NETSTAT Display networking statistics (TCP/IP)   REN Rename a file or files •
  NLSINFO Display locale information (reskit)   REPLACE Replace or update one file with another
  NLTEST Network Location Test (AD)   Reset Session Delete a Remote Desktop Session
  NMBIND Manage Hyper-V network bindings   RMDIR Delete a Directory •
  NOW Display the current Date and Time   RMTSHARE Share a folder or a printer
  NSLOOKUP Name server lookup   ROBOCOPY Robust File and Folder Copy
  NTBACKUP Windows Backup folders to tape   ROUTE Manipulate network routing tables
  NTDSUtil Active Directory Domain Services management   RUN Start | RUN commands
  NTRIGHTS Edit user account rights   RUNAS Execute a program under a different user account
  NVSPBIND Modify network bindings   RUNDLL32 Run a DLL command (add/remove print connections)
O    S    
  OPENFILES Query or display open files   SC Service Control
P       SCHTASKS Schedule a command to run at a specific time
  PATH Display or set a search path for executable files •   ScriptRunner Run one or more scripts
  PATHPING Trace route plus network latency and packet loss   SET Display, set, or remove session environment variables •
  PAUSE Suspend processing of a batch file •   SETLOCAL Control the visibility of environment variables •
  PERMS Show permissions for a user   SetSPN Edit Service Principal Names
  PING Test a network connection   SETX Set environment variables
  PKTMON Monitor internal packet propagation and packet drop reports   SFC System File Checker
  POPD Return to a previous directory saved by PUSHD •   SHARE List or edit a file share or print share
  PORTQRY Display the status of ports and services   ShellRunAs Run a command under a different user account
  POWERCFG Configure power settings   SHIFT Shift the position of batch file parameters •
  PRINT Print a text file   SHORTCUT Create a windows shortcut (.LNK file)
  PRINTBRM Print queue Backup/Recovery   SHUTDOWN Shutdown the computer
  PRNCNFG Configure a printer   SIGCHECK Display file version no. VirusTotal status & timestamp
  PRNDRVR Add, delete or list print drivers.   SLEEP Wait for x seconds
  PRNJOBS Pause, resume, cancel, or list print jobs.   SLMGR Software Licensing Management
  PRNMNGR Add, delete, or list printer connections.   SORT Sort input
  PRNPORT Manage Printer Ports, change port configuration.   SSH OpenSSH remote login client
  PRNQCTL Manage Print Queues, print a test page.   START Start a program, command or batch file •
  ProcDump Monitor an application for CPU spikes   STRINGS Search for ANSI and UNICODE strings in binary files
  PROMPT Change the command prompt •   SUBINACL Edit file and folder Permissions, Ownership and Domain
  PsExec Execute process remotely   SUBST Associate a path with a drive letter
  PsFile Show files opened remotely   SXSTRACE Diagnose side-by-side problems
  PsGetSid Display the SID of a computer or a user   SYSMON Monitor and log system activity to the Windows event log
  PsInfo List information about a system   SYSTEMINFO List system configuration
  PsKill Kill processes by name or process ID T    
  PsList List detailed information about processes   TAKEOWN Take ownership of a file
  PsLoggedOn Who's logged on (locally or via resource sharing)   TAR Store, list or extract files in an archive
  PsLogList Event log records   TASKLIST List running applications and services
  PsPasswd Change account password   TASKKILL End a running process
  TELNET Communicate with another host using the TELNET protocol
  TIME Display or set the system time •
  TIMEOUT Delay processing of a batch file/command
  TITLE Set the window title for a CMD.EXE session •
  TLIST Task list with full path
  TOUCH Change file timestamps
  TRACERT Trace route to a remote host
  TREE Graphical display of folder structure
  TSDISCON Disconnect a Remote Desktop Session
  TSKILL End a running process
  TYPE Display the contents of a text file •
  TypePerf Write Performance Monitor data to a log file
  TZUTIL Time Zone Utility
V    
  VBC Visual Basic compiler
  VER Display version information •
  VERIFY Verify that files have been saved •
  VMConnect Connect to a Hyper-V Virtual Machine
  VOL Display a disk label •
  VSSADMIN Display volume shadow copy backups + writers/providers
W   
  W32TM Time Service
  WAITFOR Wait for or send a signal
  WBADMIN Windows Backup Admin
  WECUTIL Windows Event Collector Utility
  WEVTUTIL Clear event logs, enable/disable/query logs
  WHERE Locate and display files in a directory tree
  WHOAMI Output the current UserName and domain
  WHOIS Lookup the registration record for a domain
  WINDIFF Compare the contents of two files or sets of files
  WINGET Windows Package Manager (coming May 2021)
  WINMGMT Manage the WMI service/WMI repository
  WINRM Windows Remote Management
  WINRS Windows Remote Shell
  WMIC WMI Commands
  WPEUTIL Run Preinstallation Environment (WinPE) commands
  WPR Windows Performance Recorder
  WT Windows Terminal
  WUSA Windows Update Standalone Installer
  WUAUCLT Windows Update
X    
  XCACLS Change file and folder permissions
  XCOPY Copy files and folders
  :: Comment / Remark •

To scroll this page, press [ a – z ] on the keyboard, [\] = Search.

Commands marked • are Internal commands only available within the CMD shell.

All other commands (not marked with •) are external commands.

External commands may be used under the CMD shell, PowerShell, or directly from START-RUN.

A categorized list of Windows CMD commands.

Microsoft Help pages: Windows Commands 8.1-10 / Windows Server 2012-2019 - [PDF]
SS64 Forum

Websites, Books and Utilities for Microsoft Windows.

  Copyright © 1999-2022 SS64.com


Some rights reserved

You might also like