{"id":42,"date":"2024-03-04T23:14:03","date_gmt":"2024-03-05T04:14:03","guid":{"rendered":"https:\/\/advancedtechhub.com\/?p=42"},"modified":"2024-03-04T23:16:14","modified_gmt":"2024-03-05T04:16:14","slug":"useful-command-prompt-cmd-commands","status":"publish","type":"post","link":"https:\/\/advancedtechhub.com\/?p=42","title":{"rendered":"Useful Command Prompt (cmd) Commands"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Below is a table of useful command prompt command for all actions ranging from system management to viewing information to basically anything you would want to do from the command line, along with a short description of what it does.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>append<\/td><td>Allows programs to open data files in specified directories as if they were in the current directory.<\/td><\/tr><tr><td>arp<\/td><td>Displays and modifies the IP-to-Physical address translation tables used by ARP.<\/td><\/tr><tr><td>assoc<\/td><td>Displays or modifies file extension associations.<\/td><\/tr><tr><td>at<\/td><td>Schedules commands and programs to run on a computer at a specified time and date.<\/td><\/tr><tr><td>auditpol<\/td><td>Displays information about and performs functions to manipulate audit policies.<\/td><\/tr><tr><td>bcdboot<\/td><td>Copies boot environment files to the system partition and creates a new system BCD store.<\/td><\/tr><tr><td>bcdedit<\/td><td>Edits boot configuration data.<\/td><\/tr><tr><td>bitsadmin<\/td><td>Manages the Background Intelligent Transfer Service (BITS).<\/td><\/tr><tr><td>bootcfg<\/td><td>Configures, queries, or changes Boot.ini file settings.<\/td><\/tr><tr><td>cacls<\/td><td>Displays or modifies access control lists (ACLs) of files.<\/td><\/tr><tr><td>change<\/td><td>Changes Terminal Server sessions from Remote Desktop Protocol (RDP) to console mode.<\/td><\/tr><tr><td>chcp<\/td><td>Displays or sets the active code page number.<\/td><\/tr><tr><td>choice<\/td><td>Prompts the user to select one item from a list of choices.<\/td><\/tr><tr><td>cipher<\/td><td>Displays or alters the encryption of directories.<\/td><\/tr><tr><td>clip<\/td><td>Redirects output of command line tools to the Windows clipboard.<\/td><\/tr><tr><td>cmdkey<\/td><td>Creates, displays, and deletes stored user names and passwords.<\/td><\/tr><tr><td>color<\/td><td>Sets the default console foreground and background colors.<\/td><\/tr><tr><td>comp<\/td><td>Compares the contents of two files or sets of files.<\/td><\/tr><tr><td>compact<\/td><td>Displays or alters the compression of files on NTFS partitions.<\/td><\/tr><tr><td>convert<\/td><td>Converts FAT volumes to NTFS.<\/td><\/tr><tr><td>cscript<\/td><td>Invokes the Windows Script Host for command-line execution of VBScript and JScript files.<\/td><\/tr><tr><td>date<\/td><td>Displays or sets the date.<\/td><\/tr><tr><td>debug<\/td><td>Starts Debug, a command-line application used to test and debug other programs.<\/td><\/tr><tr><td>defrag<\/td><td>Defragments specified volumes.<\/td><\/tr><tr><td>diskpart<\/td><td>Manages disk partitions on a hard drive.<\/td><\/tr><tr><td>diskuse<\/td><td>Displays the amount of space that is being used on a disk.<\/td><\/tr><tr><td>doskey<\/td><td>Edits command lines, recalls Windows commands, and creates macros.<\/td><\/tr><tr><td>driverquery<\/td><td>Displays a list of all installed device drivers and their properties.<\/td><\/tr><tr><td>echo<\/td><td>Displays messages or turns command echoing on or off.<\/td><\/tr><tr><td>edit<\/td><td>Starts the MS-DOS Editor tool.<\/td><\/tr><tr><td>enable<\/td><td>Enables a device, service, or system feature.<\/td><\/tr><tr><td>expand<\/td><td>Expands one or more compressed files.<\/td><\/tr><tr><td>fc<\/td><td>Compares two files or sets of files and displays the differences between them.<\/td><\/tr><tr><td>find<\/td><td>Searches for a text string in a file or files.<\/td><\/tr><tr><td>findstr<\/td><td>Searches for strings in files.<\/td><\/tr><tr><td>ftype<\/td><td>Displays or modifies file types used in file extension associations.<\/td><\/tr><tr><td>getmac<\/td><td>Displays the media access control (MAC) address for network adapters.<\/td><\/tr><tr><td>gpresult<\/td><td>Displays Group Policy information for a user or computer.<\/td><\/tr><tr><td>gpupdate<\/td><td>Refreshes local and Active Directory-based Group Policy settings.<\/td><\/tr><tr><td>graftabl<\/td><td>Enables the ability to display an extended character set in graphics mode.<\/td><\/tr><tr><td>help<\/td><td>Provides Help information for Windows commands.<\/td><\/tr><tr><td>hostname<\/td><td>Displays the name of the current host.<\/td><\/tr><tr><td>icacls<\/td><td>Displays or modifies discretionary access control lists (DACLs) for files and folders.<\/td><\/tr><tr><td>ipconfig<\/td><td>Displays TCP\/IP network configuration information.<\/td><\/tr><tr><td>label<\/td><td>Creates, changes, or deletes the volume label of a disk.<\/td><\/tr><tr><td>logoff<\/td><td>Terminates a session.<\/td><\/tr><tr><td>lpq<\/td><td>Displays the status of a print queue on a computer running Line Printer Daemon (LPD).<\/td><\/tr><tr><td>lpr<\/td><td>Sends a file to a computer running Line Printer Daemon (LPD) for printing.<\/td><\/tr><tr><td>makecab<\/td><td>Creates a cabinet (.cab) file.<\/td><\/tr><tr><td>mode<\/td><td>Configures system devices.<\/td><\/tr><tr><td>more<\/td><td>Displays output one screen at a time.<\/td><\/tr><tr><td>mountvol<\/td><td>Creates, deletes, or lists a volume mount point.<\/td><\/tr><tr><td>move<\/td><td>Moves files or directories.<\/td><\/tr><tr><td>nbtstat<\/td><td>Displays protocol statistics and current TCP\/IP connections using NBT (NetBIOS over TCP\/IP).<\/td><\/tr><tr><td>netsh<\/td><td>Displays or modifies the network configuration of a computer.<\/td><\/tr><tr><td>nslookup<\/td><td>Displays information that you can use to diagnose Domain Name System (DNS) infrastructure.<\/td><\/tr><tr><td>nul<\/td><td>Accepts input written to its standard input handle, ignores that input, and produces no output.<\/td><\/tr><tr><td>openfiles<\/td><td>Displays files opened by remote users for a file share.<\/td><\/tr><tr><td>path<\/td><td>Displays or sets a search path for executable files.<\/td><\/tr><tr><td>pathping<\/td><td>Combines the functionality of the Ping tool with that of the Tracert tool.<\/td><\/tr><tr><td>pause<\/td><td>Suspends processing of a batch program and displays a message.<\/td><\/tr><tr><td>ping<\/td><td>Sends Internet Control Message Protocol (ICMP) Echo Request messages to a destination computer.<\/td><\/tr><tr><td>pnputil<\/td><td>Adds, deletes, or lists the driver packages in the driver store.<\/td><\/tr><tr><td>popd<\/td><td>Restores the previous value of the current directory saved by pushd.<\/td><\/tr><tr><td>print<\/td><td>Prints a text file.<\/td><\/tr><tr><td>prompt<\/td><td>Changes the Windows CMD shell prompt.<\/td><\/tr><tr><td>pushd<\/td><td>Saves the current directory then changes it.<\/td><\/tr><tr><td>qgrep<\/td><td>Searches input file(s) for lines that match a given pattern.<\/td><\/tr><tr><td>qprocess<\/td><td>Displays information about processes.<\/td><\/tr><tr><td>rd<\/td><td>Removes a directory.<\/td><\/tr><tr><td>recimg<\/td><td>Configures a custom recovery image.<\/td><\/tr><tr><td>recover<\/td><td>Recovers readable information from a bad or defective disk.<\/td><\/tr><tr><td>reg<\/td><td>Performs operations on registry subkeys and entries.<\/td><\/tr><tr><td>regedit<\/td><td>Starts Registry Editor.<\/td><\/tr><tr><td>regini<\/td><td>Processes the Reg.ini file.<\/td><\/tr><tr><td>regsvr32<\/td><td>Registers or unregisters a DLL.<\/td><\/tr><tr><td>rem<\/td><td>Records comments (remarks) in batch files or CONFIG.SYS.<\/td><\/tr><tr><td>rename<\/td><td>Renames a file or files.<\/td><\/tr><tr><td>replace<\/td><td>Replaces files.<\/td><\/tr><tr><td>reset<\/td><td>Clears the screen and removes all messages.<\/td><\/tr><tr><td>restore<\/td><td>Restores a file from backup media.<\/td><\/tr><tr><td>robocopy<\/td><td>Advanced utility to copy files and directories.<\/td><\/tr><tr><td>route<\/td><td>Manipulates network routing tables.<\/td><\/tr><tr><td>runas<\/td><td>Allows a user to run specific tools and programs with different permissions.<\/td><\/tr><tr><td>sc<\/td><td>Communicates with the Service Controller and installed services.<\/td><\/tr><tr><td>schtasks<\/td><td>Schedules commands and programs to run on a computer.<\/td><\/tr><tr><td>sdbinst<\/td><td>Installs a database for an application that uses the Windows Installer.<\/td><\/tr><tr><td>set<\/td><td>Displays, sets, or removes CMD environment variables.<\/td><\/tr><tr><td>setlocal<\/td><td>Begins localization of environment changes in a batch file.<\/td><\/tr><tr><td>sfc<\/td><td>Scans and verifies the integrity of all protected system files and replaces incorrect versions with correct versions.<\/td><\/tr><tr><td>shadow<\/td><td>Starts the Remote Desktop Services shadowing for another user on the Remote Desktop Session Host (RD Session Host) server.<\/td><\/tr><tr><td>shutdown<\/td><td>Shuts down or restarts a local or remote computer.<\/td><\/tr><tr><td>sort<\/td><td>Sorts input.<\/td><\/tr><tr><td>start<\/td><td>Starts a separate CMD window to run a specified program or command.<\/td><\/tr><tr><td>subst<\/td><td>Associates a path with a drive letter.<\/td><\/tr><tr><td>systeminfo<\/td><td>Displays detailed configuration information about a computer.<\/td><\/tr><tr><td>takeown<\/td><td>Allows an administrator to take ownership of a file.<\/td><\/tr><tr><td>taskkill<\/td><td>Ends one or more tasks or processes.<\/td><\/tr><tr><td>tasklist<\/td><td>Displays a list of currently running tasks and services.<\/td><\/tr><tr><td>time<\/td><td>Displays or sets the system time.<\/td><\/tr><tr><td>timeout<\/td><td>Pauses CMD processing for a specified time.<\/td><\/tr><tr><td>title<\/td><td>Sets the CMD window title.<\/td><\/tr><tr><td>traceprt<\/td><td>Prints Windows Installer information for a Windows Installer package file.<\/td><\/tr><tr><td>tree<\/td><td>Graphically displays the directory structure of a drive or path.<\/td><\/tr><tr><td>type<\/td><td>Displays the contents of a text file.<\/td><\/tr><tr><td>ver<\/td><td>Displays the Windows version.<\/td><\/tr><tr><td>verify<\/td><td>Tells Windows whether to verify that your files are written correctly to a disk.<\/td><\/tr><tr><td>vol<\/td><td>Displays a disk volume label and serial number.<\/td><\/tr><tr><td>w32tm<\/td><td>Configures Windows Time service settings.<\/td><\/tr><tr><td>waitfor<\/td><td>Sends or waits for a signal on a system.<\/td><\/tr><tr><td>wbadmin<\/td><td>Performs backup and recovery operations.<\/td><\/tr><tr><td>wevtutil<\/td><td>Retrieves information about event logs and publishers from files on local and remote computers.<\/td><\/tr><tr><td>where<\/td><td>Displays the location of files that match the search pattern.<\/td><\/tr><tr><td>whoami<\/td><td>Displays the current domain and user name.<\/td><\/tr><tr><td>winrs<\/td><td>Windows Remote Shell.<\/td><\/tr><tr><td>wmic<\/td><td>Provides a command-line interface for Windows Management Instrumentation (WMI).<\/td><\/tr><tr><td>xcopy<\/td><td>Copies files and directory trees.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Below is a table of useful command prompt command for all actions ranging from system management to viewing information to basically anything you would want to do from the command line, along with a short description of what it does. Command Description append Allows programs to open data files in specified directories as if they [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":44,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cmd","category-windows"],"_links":{"self":[{"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=42"}],"version-history":[{"count":2,"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=\/wp\/v2\/posts\/42\/revisions\/45"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=\/wp\/v2\/media\/44"}],"wp:attachment":[{"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/advancedtechhub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}