Best Windows Commands

Embed Size (px)

Citation preview

  • 7/30/2019 Best Windows Commands

    1/5

    An A-Z Index of the Windows CMD command line

    ADDUSERS Add or list users to/from a CSV fileADmodcmd Active Directory Bulk ModifyARP Address Resolution ProtocolASSOC Change file extension associationsASSOCIAT One step file associationAT Schedule a command to run at a specific timeATTRIB Change file attributes

    bBCDBOOT Create or repair a system partitionBCDEDIT Manage Boot Configuration DataBITSADMIN Background Intelligent Transfer ServiceBOOTCFG Edit Windows boot settingsBROWSTAT Get domain, browser and PDC info

    cCACLS Change file permissionsCALL Call one batch program from anotherCERTREQ Request certificate from a certification authorityCERTUTIL Utility for certification authority (CA) files and servicesCD Change Directory - move to a specific FolderCHANGE Change Terminal Server Session propertiesCHKDSK Check Disk - check and repair disk problemsCHKNTFS Check the NTFS file system

    CHOICE Accept keyboard input to a batch fileCIPHER Encrypt or Decrypt files/foldersCleanMgr Automated cleanup of Temp files, recycle binCLEARMEM Clear memory leaksCLIP Copy STDIN to the Windows clipboardCLS Clear the screenCLUSTER Windows ClusteringCMD Start a new CMD shellCMDKEY Manage stored usernames/passwordsCOLOR Change colors of the CMD windowCOMP Compare the contents of two files or sets of filesCOMPACT Compress files or folders on an NTFS partitionCOMPRESS Compress individual files on an NTFS partition

    CON2PRT Connect or disconnect a PrinterCONVERT Convert a FAT drive to NTFSCOPY Copy one or more files to another locationCSCcmd Client-side caching (Offline Files)CSVDE Import or Export Active Directory data

    dDATE Display or set the dateDEFRAG Defragment hard driveDEL Delete one or more filesDELPROF Delete user profilesDELTREE Delete a folder and all subfoldersDevCon Device Manager Command Line UtilityDIR Display a list of files and folders

    DIRUSE Display disk usageDISKPART Disk AdministrationDISKSHADOW Volume Shadow Copy ServiceDNSSTAT DNS StatisticsDOSKEY Edit command line, recall commands, and create macrosDriverQuery Display installed device driversDSACLs 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)

  • 7/30/2019 Best Windows Commands

    2/5

    DSMod Modify items in active directory (user group computer)DSMove Move an Active directory ObjectDSRM Remove items from Active Directory

    eECHO Display message on screenENDLOCAL End localisation of environment changes in a batch fileERASE Delete one or more filesEVENTCREATE Add a message to the Windows event logEXIT Quit the current script/routine and set an errorlevelEXPAND Uncompress filesEXTRACT Uncompress CAB files

    fFC Compare two filesFIND Search for a text string in a fileFINDSTR Search for strings in filesFOR /F Loop command: against a set of filesFOR /F Loop command: against the results of another commandFOR Loop command: all options Files, Directory, ListFORFILES Batch process multiple filesFORMAT Format a diskFREEDISK Check free disk space (in bytes)FSUTIL File and Volume utilitiesFTP File Transfer ProtocolFTYPE File extension file type associations

    g GETMAC Display the Media Access Control (MAC) addressGLOBAL Display membership of global groupsGOTO Direct a batch program to jump to a labelled lineGPRESULT Display Resultant Set of Policy informationGPUPDATE Update Group Policy settings

    hHELP Online Help

    iiCACLS Change file and folder permissionsIF Conditionally perform a commandIFMEMBER Is the current user a member of a WorkgroupIPCONFIG Configure IP

    k KILL Remove a program from memoryl

    LABEL Edit a disk labelLOCAL Display membership of local groupsLOGEVENT Write text to the event viewerLOGMAN Manage Performance MonitorLOGOFF Log a user offLOGTIME Log the date and time in a file

    mMAPISEND Send email from the command lineMBSAcli Baseline Security AnalyzerMEM Display memory usage

    MD Create new foldersMKLINK Create a symbolic link (linkd) MODE Configure a system deviceMORE Display output, one screen at a timeMOUNTVOL Manage a volume mount pointMOVE Move files from one folder to anotherMOVEUSER Move a user from one domain to anotherMSG Send a messageMSIEXEC Microsoft Windows InstallerMSINFO32 System Information

  • 7/30/2019 Best Windows Commands

    3/5

    MSTSC Terminal Server Connection (Remote Desktop Protocol)MV Copy in-use files

    nNET Manage network resourcesNETDOM Domain ManagerNETSH Configure Network Interfaces, Windows Firewall & Remote accessNETSVC Command-line Service ControllerNBTSTAT Display networking statistics (NetBIOS over TCP/IP)NETSTAT Display networking statistics (TCP/IP)NOW Display the current Date and TimeNSLOOKUP Name server lookupNTBACKUP Backup folders to tapeNTRIGHTS Edit user account rights

    oOPENFILES Query or display open files

    pPATH Display or set a search path for executable filesPATHPING Trace route plus network latency and packet lossPAUSE Suspend processing of a batch file and display a messagePERMS Show permissions for a userPERFMON Performance MonitorPING Test a network connectionPOPD Return to a previous directory saved by PUSHDPORTQRY Display the status of ports and services

    POWERCFG Configure power settingsPRINT Print a text filePRINTBRM Print queue Backup/RecoveryPRNCNFG Display, configure or rename a printerPRNMNGR Add, delete, list printers set the default printerPROMPT Change the command promptPsExec Execute process remotelyPsFile Show files opened remotelyPsGetSid Display the SID of a computer or a userPsInfo List information about a systemPsKill Kill processes by name or process IDPsList List detailed information about processesPsLoggedOn Who's logged on (locally or via resource sharing)

    PsLogList Event log recordsPsPasswd Change account passwordPsPing Measure network performancePsService View and control servicesPsShutdown Shutdown or reboot a computerPsSuspend Suspend processesPUSHD Save and then change the current directory

    qQGREP Search file(s) for lines that match a given patternQuery 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)

    rRASDIAL Manage RAS connectionsRASPHONE Manage RAS connectionsRECOVER Recover a damaged file from a defective diskREG Registry: Read, Set, Export, Delete keys and valuesREGEDIT Import or export registry settingsREGSVR32 Register or unregister a DLLREGINI Change Registry PermissionsREM Record comments (remarks) in a batch fileREN Rename a file or files

  • 7/30/2019 Best Windows Commands

    4/5

    REPLACE Replace or update one file with anotherReset Session Delete a Remote Desktop SessionRD Delete folder(s)RMTSHARE Share a folder or a printerROBOCOPY Robust File and Folder CopyROUTE Manipulate network routing tablesRUN Start | RUN commandsRUNAS Execute a program under a different user accountRUNDLL32 Run a DLL command (add/remove print connections)

    sSC Service ControlSCHTASKS Schedule a command to run at a specific timeSCLIST Display ServicesSET Display, set, or remove session environment variablesSETLOCAL Control the visibility of environment variablesSETX Set environment variablesSFC System File CheckerSHARE List or edit a file share or print shareShellRunAs Run a command under a different user accountSHIFT Shift the position of batch file parametersSHORTCUT Create a windows shortcut (.LNK file)SHOWGRPS List the Workgroups a user has joinedSHOWMBRS List the Users who are members of a Workgroup

    SHUTDOWN Shutdown the computerSLEEP Wait for x secondsSLMGR Software Licensing Management (Vista/2008)SOON Schedule a command to run in the near futureSORT Sort inputSTART Start a program, command or batch fileSU Switch UserSUBINACL Edit file and folder Permissions, Ownership and DomainSUBST Associate a path with a drive letterSYSTEMINFO List system configuration

    tTAKEOWN Take ownership of a fileTASKLIST List running applications and services

    TASKKILL Remove a running process from memoryTIME Display or set the system timeTIMEOUT Delay processing of a batch fileTITLE Set the window title for a CMD.EXE sessionTLIST Task list with full pathTOUCH Change file timestampsTRACERT Trace route to a remote hostTREE Graphical display of folder structureTSSHUTDN Remotely shut down or reboot a terminal serverTYPE Display the contents of a text fileTypePerf Write performance data to a log file

    uUSRSTAT List domain usernames and last login

    vVER Display version informationVERIFY Verify that files have been savedVOL Display a disk label

    wWAITFOR Wait for or send a signalWHERE Locate and display files in a directory treeWHOAMI Output the current UserName and domainWINDIFF Compare the contents of two files or sets of filesWINMSDP Windows system report

  • 7/30/2019 Best Windows Commands

    5/5

    WINRM Windows Remote ManagementWINRS Windows Remote ShellWMIC WMI CommandsWUAUCLT Windows Update

    xXCACLS Change file and folder permissionsXCOPY Copy files and folders:: Comment / Remark