Active Directory
ADmodcmd
Active Directory Bulk ModifyCSVDE
Import or Export Active Directory dataDSACLs
Active Directory ACLsDSAdd
Add items to active directory (user group computer)DSGet
View items in active directory (user group computer)DSQuery
Search for items in active directory (user group computer)DSMod
Modify items in active directory (user group computer)DSMove
Move an Active directory ObjectDSRM
Remove items from Active Directory
Batch Files
CALL
Call one batch program from another 内部命令CHOICE
Accept keyboard input to a batch fileCLIP
Copy STDIN to the Windows clipboardCLS
Clear the screen 内部命令CMD
Start a new CMD shellCOLOR
Change colors of the CMD window 内部命令DOSKEY
Edit command line, recall commands, and create macrosECHO
Display message on screen 内部命令ENDLOCAL
End localisation of environment changes in a batch file 内部命令EVENTCREATE
Add a message to the Windows event logEXIT
Quit the current script/routine and set an errorlevel 内部命令FOR /F
Loop command: against a set of files 内部命令FOR /F
Loop command: against the results of another command 内部命令FOR
Loop command: all options Files, Directory, List 内部命令GOTO
Direct a batch program to jump to a labelled line 内部命令IF
Conditionally perform a command 内部命令IFMEMBER
Is the current user a member of a WorkgroupLOGTIME
Log the date and time in a fileMAPISEND
Send email from the command lineMORE
Display output, one screen at a timePAUSE
Suspend processing of a batch file and display a message 内部命令PROMPT
Change the command prompt 内部命令REM
Record comments (remarks) in a batch file 内部命令RUN
Start | RUN commandsRUNAS
Execute a program under a different user accountSET
Display, set, or remove session environment variables 内部命令SETLOCAL
Control the visibility of environment variables 内部命令SETX
Set environment variablesSORT
Sort inputSHIFT
Shift the position of batch file parameters 内部命令SLEEP
Wait for x secondsSTART
Start a program, command or batch file 内部命令TIMEOUT
Delay processing of a batch fileTITLE
Set the window title for a CMD.EXE session 内部命令WAITFOR
Wait for or send a signalWMIC
WMI Commands::
Comment / Remark 内部命令
Disk Management
BCDBOOT
Create or repair a system partitionBCDEDIT
Manage Boot Configuration DataCONVERT
Convert a FAT drive to NTFSCHKDSK
Check Disk - check and repair disk problemsCHKNTFS
Check the NTFS file systemDEFRAG
Defragment hard driveDISKPART
Disk AdministrationDISKSHADOW
Volume Shadow Copy ServiceDriverQuery
Display installed device driversFORMAT
Format a diskFREEDISK
Check free disk space (in bytes)LABEL
Edit a disk labelMOUNTVOL
Manage a volume mount pointNTBACKUP
Backup folders to tapeSFC
System File CheckerVOL
Display a disk label 内部命令
Files and Folders
ASSOC
Change file extension associations 内部命令ASSOCIAT
One step file associationATTRIB
Change file attributesBITSADMIN
Background Intelligent Transfer ServiceCACLS
Change file permissionsCD
Change Directory - move to a specific Folder 内部命令CIPHER
Encrypt or Decrypt files/foldersCOMP
Compare the contents of two files or sets of filesCOMPACT
Compress files or folders on an NTFS partitionCOMPRESS
Compress individual files on an NTFS partitionCOPY
Copy one or more files to another location 内部命令CSCcmd
Client-side caching (Offline Files)DEL
Delete one or more files 内部命令DELTREE
Delete a folder and all subfoldersDIR
Display a list of files and folders 内部命令ERASE
Delete one or more files 内部命令EXPAND
Uncompress filesEXTRACT
Uncompress CAB filesFC
Compare two filesFIND
Search for a text string in a fileFINDSTR
Search for strings in filesFORFILES
Batch process multiple filesFSUTIL
File and Volume utilitiesFTP
File Transfer ProtocolFTYPE
File extension file type associations 内部命令iCACLS
Change file and folder permissionsMD
Create new folders 内部命令MOVE
Move files from one folder to another 内部命令MKLINK
Create a symbolic link (linkd)OPENFILES
Query or display open filesPOPD
Return to a previous directory saved by PUSHD 内部命令PsFile
Show files opened remotelyPUSHD
Save and then change the current directory 内部命令RECOVER
Recover a damaged file from a defective diskREN
Rename a file or files 内部命令REPLACE
Replace or update one file with anotherRD
Delete folder(s) 内部命令RMTSHARE
Share a folder or a printerROBOCOPY
Robust File and Folder CopySHARE
List or edit a file share or print shareSHORTCUT
Create a windows shortcut (.LNK file)SUBINACL
Edit file and folder Permissions, Ownership and DomainTAKEOWN
Take ownership of a fileTOUCH
Change file timestampsTREE
Graphical display of folder structureTYPE
Display the contents of a text file 内部命令WHERE
Locate and display files in a directory treeWINDIFF
Compare the contents of two files or sets of filesXCACLS
Change file and folder permissionsXCOPY
Copy files and folders
Group Policy/Windows Installer
DevCon
Device Manager Command Line UtilityGPRESULT
Display Resultant Set of Policy informationGPUPDATE
Update Group Policy settingsMSIEXEC
Microsoft Windows InstallerPsInfo
List information about a systemPsShutdown
Shutdown or reboot a computerREGSVR32
Register or unregister a DLLSHUTDOWN
Shutdown the computerSLMGR
Software Licensing Management (Vista/2008)WUAUCLT
Windows Update
Networking
ARP
Address Resolution ProtocolBROWSTAT
Get domain, browser and PDC infoDNSSTAT
DNS StatisticsGETMAC
Display the Media Access Control (MAC) addressIPCONFIG
Configure IPNET
Manage network resourcesNETDOM
Domain ManagerNETSH
Configure Network Interfaces, Windows Firewall & Remote accessNBTSTAT
Display networking statistics (NetBIOS over TCP/IP)NETSTAT
Display networking statistics (TCP/IP)NMBIND
Manage Hyper-V network bindingsNSLOOKUP
Name server lookupPATHPING
Trace route plus network latency and packet lossPsPing
Measure network performancePING
Test a network connectionROUTE
Manipulate network routing tablesTRACERT
Trace route to a remote host
Processes
PATH
Display or set a search path for executable files 内部命令PsExec
Execute process remotelyPsKill
Kill processes by name or process IDPsList
List detailed information about processesPsGetSid
Display the SID of a computer or a userPsSuspend
Suspend processesSCHTASKS
Schedule a command to run at a specific timeSYSMON
Monitor and log system activity to the Windows event logTASKLIST
List running applications and servicesTASKKILL
End a running processTSKILL
End a running processTLIST
Task list with full path
Printing
MODE
Configure a system devicePRINT
Print a text filePRINTBRM
Print queue Backup/RecoveryRUNDLL32
Run a DLL command (add/remove print connections)
Recovery
BOOTREC
Repair or replace a partition boot sector (WinRE).BCDBOOT
Create or repair a system partition.BCDEDIT
Manage Boot Configuration Data.WPEUTIL
Run commands during a Windows Preinstallation Environment (WinPE) session.
Registry
REG
Registry: Read, Set, Export, Delete keys and valuesREGEDIT
Import or export registry settingsREGINI
Change Registry Permissions
Remote Desktop
CHANGE
Change Terminal Server Session propertiesQuery Process
Display processes (TS/Remote Desktop)Query Session
Display all sessions (TS/Remote Desktop)Query TermServer
List all servers (TS/Remote Desktop)Query User
Display user sessions (TS/Remote Desktop)MSTSC
Terminal Server Connection (Remote Desktop Protocol)RASDIAL
Manage RAS connectionsRASPHONE
Manage RAS connectionsReset Session
Delete a Remote Desktop SessionTSDISCON
Disconnect a Remote Desktop SessionWINRM
Windows Remote ManagementWINRS
Windows Remote Shell
Services
CASPOL
Code Access Security Policy Tool.PORTQRY
Display the status of ports and servicesPsService
View and control servicesSC
Service Control
System Information
CHANGEPK
Upgrade device Edition/Product KeyDATE
Display or set the date 内部命令HELP
Online HelpLOGMAN
Manage Performance Monitor logsMBSAcli
Baseline Security AnalyzerMSINFO32
System InformationNOW
Display the current Date and TimeNTRIGHTS
Edit user account rightsPsLogList
Event log recordsSFC
System File CheckerSXSTRACE
Diagnose side-by-side problems.SYSMON
Monitor and log system activity to the Windows event logSYSTEMINFO
List system configurationTIME
Display or set the system time 内部命令TypePerf
Write performance data to a log fileVER
Display version information 内部命令VERIFY
Verify that files have been saved 内部命令WHOAMI
Output the current UserName and domain
User Administration
ADDUSERS
Add or list users to/from a CSV fileCERTREQ
Request certificate from a certification authorityCleanMgr
Automated cleanup of Temp files, recycle binCON2PRT
Connect or disconnect a PrinterCMDKEY
Manage stored usernames/passwordsDELPROF
Delete user profilesDIRUSE
Display disk usageLOGOFF
Log a user offMOVEUSER
Move a user from one domain to anotherMSG
Send a messagePERMS
Show permissions for a userPOWERCFG
Configure power settingsPsLoggedOn
Who's logged on (locally or via resource sharing)PsPasswd
Change account passwordSUBST
Associate a path with a drive letter
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.