Active Directory
ADmodcmdActive Directory Bulk ModifyCSVDEImport or Export Active Directory dataDSACLsActive Directory ACLsDSAddAdd items to active directory (user group computer)DSGetView items in active directory (user group computer)DSQuerySearch for items in active directory (user group computer)DSModModify items in active directory (user group computer)DSMoveMove an Active directory ObjectDSRMRemove items from Active Directory
Batch Files
CALLCall one batch program from another 内部命令CHOICEAccept keyboard input to a batch fileCLIPCopy STDIN to the Windows clipboardCLSClear the screen 内部命令CMDStart a new CMD shellCOLORChange colors of the CMD window 内部命令DOSKEYEdit command line, recall commands, and create macrosECHODisplay message on screen 内部命令ENDLOCALEnd localisation of environment changes in a batch file 内部命令EVENTCREATEAdd a message to the Windows event logEXITQuit the current script/routine and set an errorlevel 内部命令FOR /FLoop command: against a set of files 内部命令FOR /FLoop command: against the results of another command 内部命令FORLoop command: all options Files, Directory, List 内部命令GOTODirect a batch program to jump to a labelled line 内部命令IFConditionally perform a command 内部命令IFMEMBERIs the current user a member of a WorkgroupLOGTIMELog the date and time in a fileMAPISENDSend email from the command lineMOREDisplay output, one screen at a timePAUSESuspend processing of a batch file and display a message 内部命令PROMPTChange the command prompt 内部命令REMRecord comments (remarks) in a batch file 内部命令RUNStart | RUN commandsRUNASExecute a program under a different user accountSETDisplay, set, or remove session environment variables 内部命令SETLOCALControl the visibility of environment variables 内部命令SETXSet environment variablesSORTSort inputSHIFTShift the position of batch file parameters 内部命令SLEEPWait for x secondsSTARTStart a program, command or batch file 内部命令TIMEOUTDelay processing of a batch fileTITLESet the window title for a CMD.EXE session 内部命令WAITFORWait for or send a signalWMICWMI Commands::Comment / Remark 内部命令
Disk Management
BCDBOOTCreate or repair a system partitionBCDEDITManage Boot Configuration DataCONVERTConvert a FAT drive to NTFSCHKDSKCheck Disk - check and repair disk problemsCHKNTFSCheck the NTFS file systemDEFRAGDefragment hard driveDISKPARTDisk AdministrationDISKSHADOWVolume Shadow Copy ServiceDriverQueryDisplay installed device driversFORMATFormat a diskFREEDISKCheck free disk space (in bytes)LABELEdit a disk labelMOUNTVOLManage a volume mount pointNTBACKUPBackup folders to tapeSFCSystem File CheckerVOLDisplay a disk label 内部命令
Files and Folders
ASSOCChange file extension associations 内部命令ASSOCIATOne step file associationATTRIBChange file attributesBITSADMINBackground Intelligent Transfer ServiceCACLSChange file permissionsCDChange Directory - move to a specific Folder 内部命令CIPHEREncrypt or Decrypt files/foldersCOMPCompare the contents of two files or sets of filesCOMPACTCompress files or folders on an NTFS partitionCOMPRESSCompress individual files on an NTFS partitionCOPYCopy one or more files to another location 内部命令CSCcmdClient-side caching (Offline Files)DELDelete one or more files 内部命令DELTREEDelete a folder and all subfoldersDIRDisplay a list of files and folders 内部命令ERASEDelete one or more files 内部命令EXPANDUncompress filesEXTRACTUncompress CAB filesFCCompare two filesFINDSearch for a text string in a fileFINDSTRSearch for strings in filesFORFILESBatch process multiple filesFSUTILFile and Volume utilitiesFTPFile Transfer ProtocolFTYPEFile extension file type associations 内部命令iCACLSChange file and folder permissionsMDCreate new folders 内部命令MOVEMove files from one folder to another 内部命令MKLINKCreate a symbolic link (linkd)OPENFILESQuery or display open filesPOPDReturn to a previous directory saved by PUSHD 内部命令PsFileShow files opened remotelyPUSHDSave and then change the current directory 内部命令RECOVERRecover a damaged file from a defective diskRENRename a file or files 内部命令REPLACEReplace or update one file with anotherRDDelete folder(s) 内部命令RMTSHAREShare a folder or a printerROBOCOPYRobust File and Folder CopySHAREList or edit a file share or print shareSHORTCUTCreate a windows shortcut (.LNK file)SUBINACLEdit file and folder Permissions, Ownership and DomainTAKEOWNTake ownership of a fileTOUCHChange file timestampsTREEGraphical display of folder structureTYPEDisplay the contents of a text file 内部命令WHERELocate and display files in a directory treeWINDIFFCompare the contents of two files or sets of filesXCACLSChange file and folder permissionsXCOPYCopy files and folders
Group Policy/Windows Installer
DevConDevice Manager Command Line UtilityGPRESULTDisplay Resultant Set of Policy informationGPUPDATEUpdate Group Policy settingsMSIEXECMicrosoft Windows InstallerPsInfoList information about a systemPsShutdownShutdown or reboot a computerREGSVR32Register or unregister a DLLSHUTDOWNShutdown the computerSLMGRSoftware Licensing Management (Vista/2008)WUAUCLTWindows Update
Networking
ARPAddress Resolution ProtocolBROWSTATGet domain, browser and PDC infoDNSSTATDNS StatisticsGETMACDisplay the Media Access Control (MAC) addressIPCONFIGConfigure IPNETManage network resourcesNETDOMDomain ManagerNETSHConfigure Network Interfaces, Windows Firewall & Remote accessNBTSTATDisplay networking statistics (NetBIOS over TCP/IP)NETSTATDisplay networking statistics (TCP/IP)NMBINDManage Hyper-V network bindingsNSLOOKUPName server lookupPATHPINGTrace route plus network latency and packet lossPsPingMeasure network performancePINGTest a network connectionROUTEManipulate network routing tablesTRACERTTrace route to a remote host
Processes
PATHDisplay or set a search path for executable files 内部命令PsExecExecute process remotelyPsKillKill processes by name or process IDPsListList detailed information about processesPsGetSidDisplay the SID of a computer or a userPsSuspendSuspend processesSCHTASKSSchedule a command to run at a specific timeSYSMONMonitor and log system activity to the Windows event logTASKLISTList running applications and servicesTASKKILLEnd a running processTSKILLEnd a running processTLISTTask list with full path
Printing
MODEConfigure a system devicePRINTPrint a text filePRINTBRMPrint queue Backup/RecoveryRUNDLL32Run a DLL command (add/remove print connections)
Recovery
BOOTRECRepair or replace a partition boot sector (WinRE).BCDBOOTCreate or repair a system partition.BCDEDITManage Boot Configuration Data.WPEUTILRun commands during a Windows Preinstallation Environment (WinPE) session.
Registry
REGRegistry: Read, Set, Export, Delete keys and valuesREGEDITImport or export registry settingsREGINIChange Registry Permissions
Remote Desktop
CHANGEChange Terminal Server Session propertiesQuery ProcessDisplay processes (TS/Remote Desktop)Query SessionDisplay all sessions (TS/Remote Desktop)Query TermServerList all servers (TS/Remote Desktop)Query UserDisplay user sessions (TS/Remote Desktop)MSTSCTerminal Server Connection (Remote Desktop Protocol)RASDIALManage RAS connectionsRASPHONEManage RAS connectionsReset SessionDelete a Remote Desktop SessionTSDISCONDisconnect a Remote Desktop SessionWINRMWindows Remote ManagementWINRSWindows Remote Shell
Services
CASPOLCode Access Security Policy Tool.PORTQRYDisplay the status of ports and servicesPsServiceView and control servicesSCService Control
System Information
CHANGEPKUpgrade device Edition/Product KeyDATEDisplay or set the date 内部命令HELPOnline HelpLOGMANManage Performance Monitor logsMBSAcliBaseline Security AnalyzerMSINFO32System InformationNOWDisplay the current Date and TimeNTRIGHTSEdit user account rightsPsLogListEvent log recordsSFCSystem File CheckerSXSTRACEDiagnose side-by-side problems.SYSMONMonitor and log system activity to the Windows event logSYSTEMINFOList system configurationTIMEDisplay or set the system time 内部命令TypePerfWrite performance data to a log fileVERDisplay version information 内部命令VERIFYVerify that files have been saved 内部命令WHOAMIOutput the current UserName and domain
User Administration
ADDUSERSAdd or list users to/from a CSV fileCERTREQRequest certificate from a certification authorityCleanMgrAutomated cleanup of Temp files, recycle binCON2PRTConnect or disconnect a PrinterCMDKEYManage stored usernames/passwordsDELPROFDelete user profilesDIRUSEDisplay disk usageLOGOFFLog a user offMOVEUSERMove a user from one domain to anotherMSGSend a messagePERMSShow permissions for a userPOWERCFGConfigure power settingsPsLoggedOnWho's logged on (locally or via resource sharing)PsPasswdChange account passwordSUBSTAssociate 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.