Windows CMD Commands
Windows CMD Commands
Windows CMD Commands
Search
FIND FINDSTR FOR /F FOR /F FOR FORFILES FORMAT FREEDISK FSUTIL FTP FTYPE g
Search for a text string in a file Search for strings in files Loop command: against a set of files Loop command: against the results of another command Loop command: all options Files, Directory, List Batch process multiple files Format a disk Check free disk space (in bytes) File and Volume utilities File Transfer Protocol Display or modify file types used in file extension associations
GLOBAL Display membership of global groups GOTO Direct a batch program to jump to a labelled line GPUPDATE Update Group Policy settings h HELP i iCACLS IF IFMEMBER IPCONFIG k KILL l LABEL LOCAL LOGEVENT LOGMAN LOGOFF LOGTIME m MAPISEND MBSAcli MEM MD MKLINK MODE MORE MOUNTVOL MOVE MOVEUSER MSG MSIEXEC MSINFO MSTSC MV n NET NETDOM NETSH NETSVC NBTSTAT NETSTAT NOW NSLOOKUP NTBACKUP NTRIGHTS o OPENFILES Query or display open files p PATH PATHPING PAUSE PERMS PERFMON PING POPD PORTQRY POWERCFG PRINT Display or set a search path for executable files Trace route plus network latency and packet loss Suspend processing of a batch file and display a message Show permissions for a user Performance Monitor Test a network connection Restore the previous value of the current directory saved by PUSHD Display the status of ports and services Configure power settings Print a text file Manage network resources Domain Manager Configure Network Interfaces, Windows Firewall & Remote access Command-line Service Controller Display networking statistics (NetBIOS over TCP/IP) Display networking statistics (TCP/IP) Display the current Date and Time Name server lookup Backup folders to tape Edit user account rights Send email from the command line Baseline Security Analyzer. Display memory usage Create new folders Create a symbolic link (linkd) Configure a system device Display output, one screen at a time Manage a volume mount point Move files from one folder to another Move a user from one domain to another Send a message Microsoft Windows Installer Windows NT diagnostics Terminal Server Connection (Remote Desktop Protocol) Copy in-use files Edit a disk label Display membership of local groups Write text to the NT event viewer Manage Performance Monitor Log a user off Log the date and time in a file Remove a program from memory Change file and folder permissions Conditionally perform a command Is the current user in an NT Workgroup Configure IP Online Help
PRINTBRM Print queue Backup/Recovery PRNCNFG Display, configure or rename a printer PRNMNGR Add, delete, list printers set the default printer PROMPT Change the command prompt PsExec Execute process remotely PsFile Show files opened remotely PsGetSid Display the SID of a computer or a user PsInfo List information about a system PsKill Kill processes by name or process ID PsList List detailed information about processes PsLoggedOn Who's logged on (locally or via resource sharing) PsLogList Event log records PsPasswd Change account password PsService View and control services PsShutdown Shutdown or reboot a computer PsSuspend Suspend processes PUSHD Save and then change the current directory q QGREP r RASDIAL RASPHONE RECOVER REG REGEDIT REGSVR32 REGINI REM REN REPLACE RD RMTSHARE ROBOCOPY ROUTE RUN RUNAS RUNDLL32 s SC Service Control SCHTASKS Schedule a command to run at a specific time SCLIST Display NT Services SET Display, set, or remove environment variables SETLOCAL Control the visibility of environment variables SETX Set environment variables permanently SFC System File Checker SHARE List or edit a file share or print share SHIFT Shift the position of replaceable parameters in a batch file SHORTCUT Create a windows shortcut (.LNK file) SHOWGRPS List the NT Workgroups a user has joined SHOWMBRS List the Users who are members of a Workgroup SHUTDOWN Shutdown the computer SLEEP Wait for x seconds SLMGR Software Licensing Management (Vista/2008) SOON Schedule a command to run in the near future SORT Sort input START Start a program or command in a separate window SU Switch User SUBINACL Edit file and folder Permissions, Ownership and Domain SUBST Associate a path with a drive letter SYSTEMINFO List system configuration t TASKLIST TASKKILL TIME TIMEOUT TITLE TLIST TOUCH TRACERT TREE TSSHUTDN List running applications and services Remove a running process from memory Display or set the system time Delay processing of a batch file Set the window title for a CMD.EXE session Task list with full path Change file timestamps Trace route to a remote host Graphical display of folder structure Remotely shut down or reboot a terminal server Manage RAS connections Manage RAS connections Recover a damaged file from a defective disk. Registry: Read, Set, Export, Delete keys and values Import or export registry settings Register or unregister a DLL Change Registry Permissions Record comments (remarks) in a batch file Rename a file or files Replace or update one file with another Delete folder(s) Share a folder or a printer Robust File and Folder Copy Manipulate network routing tables Start | RUN commands Execute a program under a different user account Run a DLL command (add/remove print connections) Search file(s) for lines that match a given pattern.
TYPE Display the contents of a text file TypePerf Write performance data to a log file u USRSTAT v VER VERIFY VOL w WHERE WHOAMI WINDIFF WINMSD WINMSDP WINRM WINRS WMIC WUAUCLT x XCACLS XCOPY :: Change file and folder permissions Copy files and folders Comment / Remark Locate and display files in a directory tree Output the current UserName and domain Compare the contents of two files or sets of files Windows system diagnostics Windows system diagnostics II Windows Remote Management Windows Remote Shell WMI Commands Windows Update Display version information Verify that files have been saved Display a disk label List domain usernames and last login
Commands marked are Internal commands only available within the CMD shell. All other commands (not marked with ) are external commands which may be used under the CMD shell, PowerShell, or directly from START-RUN. Windows RUN Commands, Microsoft Help pages: Windows XP - 2003 Server - 2008 Server Discussion forum Links to other Sites, books etc...
Copyright SS64.com 1999-2011 Some rights reserved