{"id":42667,"date":"2025-02-28T21:47:21","date_gmt":"2025-02-28T21:47:21","guid":{"rendered":"https:\/\/www.auslogics.com\/en\/articles\/?p=42667"},"modified":"2025-05-13T18:46:28","modified_gmt":"2025-05-13T18:46:28","slug":"windows-command-prompt-28-most-useful-cmd-commands-with-examples","status":"publish","type":"post","link":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/","title":{"rendered":"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples"},"content":{"rendered":"<p>The Windows Command Prompt is a powerful yet often underutilized tool. It offers a highly useful\u00a0 under-the-hood look at your system and allows you to manipulate its operations directly.<\/p>\n<p>The Command Prompt\u2019s blank, monochromatic interface might seem intimidating at first. However, don\u2019t let its simplistic appearance fool you. Mastering this tool can yield immense benefits.<\/p>\n<p>Whether you are an IT professional troubleshooting network issues, a software developer orchestrating system processes, or a curious computer enthusiast keen to dig a little deeper, having a Windows Command Prompt cheat sheet like this one can make your PC experience substantially more fulfilling.<\/p>\n<h2>What Is the Windows Command Prompt?<\/h2>\n<p>To fully appreciate the power of the Command Prompt, we first need to define it. So, what exactly is the Windows Command Prompt?<\/p>\n<p>It is a Windows <a href=\"https:\/\/www.techtarget.com\/searchwindowsserver\/definition\/command-line-interface-CLI\">command-line interface <\/a>\u00a0 (CLI) program where you can execute a vast array of basic and advanced CMD commands.<\/p>\n<p>The\u00a0Windows Command Prompt\u00a0works by processing commands you type in and then performing actions based on those commands.<\/p>\n<p>These Windows CMD commands are instructions to your system, allowing you to interact directly with your computer\u2019s operating system.<\/p>\n<p>They can do anything from managing files to checking your IP address to even repairing system files.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">CLI is a text-based interface that allows users to interact with a computer by typing commands. The Command Prompt and <a href=\"https:\/\/www.auslogics.com\/en\/articles\/most-useful-powershell-commands-cheat-sheet-with-examples\/\">PowerShell <\/a> are examples of the Windows command-line programs. Both are used for file management, software installation, network configuration, and automation. <\/div>\r\n<\/div>\n<h2>How to Open the Windows Command Prompt<\/h2>\n<h3>Method 1: Using Windows Search<\/h3>\n<p>The easiest way to open the Command Prompt is through Windows Search. Simply follow these steps:<\/p>\n<p>Click on the Start menu or press the Windows key on your keyboard and type <i>cmd <\/i> into the search bar. You will see two options to open the Windows command line here: <i>Open <\/i>and <i>Run as administrator <\/i>. Use the <i>Open <\/i> option to run CMD normally. However, if the command you\u2019ll use requires system permission or administrative rights, select <i>Run as administrator <\/i>.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-157.png\" alt=\"Open Command Prompt as admin\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<h3>Method 2: Using the Run dialog box<\/h3>\n<p>Press <code>Windows key + R<\/code> on your keyboard to open the Run dialog box. Type cmd and press Enter to open the Command Prompt without administrative privileges.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-03-01-102110.png\" alt=\"Type cmd and press Enter to open the Command Prompt without administrative privileges\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">If you need admin access, press <code>Ctrl + Shift + Enter<\/code> instead of just Enter. This will launch the Command Prompt with administrator rights. <\/div>\r\n<\/div>\n<p>After opening the Command Prompt, you can start typing in useful CMD commands\u00a0to perform tasks or even\u00a0 <a href=\"https:\/\/www.makeuseof.com\/command-prompt-fun-things\/\" target=\"_blank\" rel=\"noopener nofollow\">funny ones that can even allow you to watch a command-line version of Star Wars <\/a>.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-13-114404.png\" alt=\"After opening the Command Prompt, you can start typing in useful CMD commands to perform tasks or even funny ones that can even allow you to watch a command-line version of Star Wars\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>The Command Prompt has over\u00a0280 CMD commands depending on your operating system. While it might seem impossible to list all the commands, we will try to cover the most important ones.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">Before listing the commands, remember: with great power comes great responsibility. Misusing some commands can alter your system or cause data loss, so proceed with caution. <\/div>\r\n<\/div>\n<p>We\u2019ll cover 45 of the most essential Windows CMD commands , from basic navigation to advanced user account management and automation.<\/p>\n<h2>Basic but Powerful CMD Commands to Try Out<\/h2>\n<p>We start with very basic Command Prompt commands. But don\u2019t let the name fool you; some of these commands can help you do so much:<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">In the Windows Command Prompt, commands and file paths are not case-sensitive. You can use any combination of uppercase and lowercase letters, and the command will work the same way. <\/div>\r\n<\/div>\n<p><b>Command 1: HELP\u00a0<\/b><\/p>\n<p>The <i>help <\/i> command provides a list of commonly used commands and their functions. To view this CMD \u00a0commands list with commonly used commands and their functions, simply type <i>help <\/i> and press Enter.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-073553.png\" alt=\"The help command provides a list of commonly used commands and their functions\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>In Windows 10 and 11, typing <i>help <\/i> typically displays around 30\u201340 built-in command-line commands . You may not find anything too advanced on the list. That said, the <i>help <\/i> command does not give detailed information.<\/p>\n<p>If you want more details, or the command you need is not on the list, type the command followed by <i>\/? <\/i>. For example:<\/p>\n<pre>ipconfig \/?<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-074959.png\" alt=\"If you want more details, or the command you need is not on the list, type the command followed by \/?\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><strong>Command 2: IPCONFIG<\/strong><\/p>\n<p>When you type ipconfig into your Command Prompt in Windows, you receive a list of all network interfaces on your PC with their respective IP addresses.<\/p>\n<p>However, if you\u2019re on a local network (which is common for most home and office computers), it\u2019ll display your local network address.<\/p>\n<p>Its real power lies in extensions:<\/p>\n<ul>\n<li><i>ipconfig \/release: <\/i> Disconnects your device from its current IP address.<\/li>\n<\/ul>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-03-03-124102.png\" alt=\"ipconfig \/release disconnects your device from its current IP address\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li><i>ipconfig \/renew:<\/i> Asks for a new IP address after the old one is released.<\/li>\n<\/ul>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-03-03-124309.png\" alt=\"ipconfig \/renew asks for a new IP address after the old one is released\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li><i>ipconfig \/flushdns:<\/i> Clears saved website addresses to fix connection issues.<\/li>\n<\/ul>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-03-03-124333.png\" alt=\"ipconfig \/flushdns clears saved website addresses to fix connection issues\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"tipsbox\">\r\n\t<div class=\"tipsbox__heading\">\r\n\t\t<div class=\"tipsbox__arrow-right\"><\/div>\r\n\t\t<div class=\"tipsbox__shield\">PRO TIP<\/div>\r\n\t\t<div class=\"tipsbox__arrow-left\"><\/div>\r\n\t<\/div>\r\n\t<div class=\"tipsbox__text\">These extensions are particularly handy when you are dealing with network problems, like the <a href=\"https:\/\/www.auslogics.com\/en\/articles\/fixed-how-to-resolve-the-annoying-err_connection_timed_out-error\/\">ERR_CONNECTION_TIMED_OUT <\/a> error, or your network troubleshooter doesn\u2019t yield satisfactory results. <\/div>\r\n<\/div>\r\n\n<p><strong>Command 3: PING<\/strong><\/p>\n<p>Ping is one of those CMD commands for testing the connection between your computer and a network host (like a website server). For gamers and anyone who needs a fast and stable internet connection, this command is very important.<\/p>\n<p>The command tests the connection between your computer and a network host (like a game or website server) by sending small data packets and measuring how long it takes to get a response.<\/p>\n<p>So running a ping test helps identify network issues to help you find ways to improve speed. For gamers, <a href=\"https:\/\/www.auslogics.com\/en\/articles\/ultimate-guide-how-to-lower-ping-for-better-gaming-experience\/\">reducing high ping <\/a> is crucial for smooth gameplay, making <i>ping <\/i> a valuable tool for troubleshooting and <a href=\"https:\/\/www.auslogics.com\/en\/articles\/speed-up-internet\/\">improving internet performance<\/a>.<\/p>\n<p>To use the command, type:<\/p>\n<pre>ping  <a href=\"http:\/\/www.google.com\/\">www.google.com <\/a><\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-03-03-091959.png\" alt=\"Running a ping test helps identify network issues to help you find ways to improve speed\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>The results will tell you how good your ping is.<\/p>\n<div class=\"tipsbox\">\r\n\t<div class=\"tipsbox__heading\">\r\n\t\t<div class=\"tipsbox__arrow-right\"><\/div>\r\n\t\t<div class=\"tipsbox__shield\">PRO TIP<\/div>\r\n\t\t<div class=\"tipsbox__arrow-left\"><\/div>\r\n\t<\/div>\r\n\t<div class=\"tipsbox__text\">If you do not get a response, it\u2019s likely you are not connected to the internet or your network is terrible. On the other hand, if you have an average ping above 200ms, your connection may feel slow, causing delays in online activities like gaming, video calls, or browsing. <\/div>\r\n<\/div>\r\n\n<p><b>Command 4: NETSTAT<\/b><\/p>\n<p><i>Netstat <\/i> is a good CMD command for monitoring network statistics. It displays active connections, listening ports, and network interface statistics to provide a snapshot of your network\u2019s current activity.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-080650.png\" alt=\"Netstat is a good CMD command for monitoring network statistics\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>This command can come in handy if you suspect your network\u2019s security has been compromised. To find security threats using the <i>netstat <\/i> command, you can go further with:<\/p>\n<pre>netstat -an | find \"LISTENING\" \r\n<\/pre>\n<p>Lists all open ports to identify unauthorized services that may be exposed to the network.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-081636.png\" alt=\"netstat -an | find LISTENING lists all open ports to identify unauthorized services that may be exposed to the network\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<pre>netstat -ano | find \"&lt;IP&gt;\" \r\n<\/pre>\n<p>Checks if a specific IP is making too many connections, which could indicate suspicious activity like malware or a botnet. Replace <i>&lt;IP&gt; <\/i> with your IP address to test.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-082011.png\" alt=\"netstat -ano | find Checks if a specific IP is making too many connections, which could indicate suspicious activity like malware or a botnet. Replace with your IP address to test\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"tipsbox\">\r\n\t<div class=\"tipsbox__heading\">\r\n\t\t<div class=\"tipsbox__arrow-right\"><\/div>\r\n\t\t<div class=\"tipsbox__shield\">PRO TIP<\/div>\r\n\t\t<div class=\"tipsbox__arrow-left\"><\/div>\r\n\t<\/div>\r\n\t<div class=\"tipsbox__text\">If you find suspicious listening ports or an IP with multiple connections, investigate the associated process using the <i>tasklist | find &#8220;&lt;PID&gt;&#8221; <\/i>command. If the service is unfamiliar, terminate it and <a href=\"https:\/\/ultahost.com\/knowledge-base\/how-to-open-or-block-ports-using-windows-firewall\/\">block the port with your firewall<\/a>.<\/p>\n<p>For multiple connections from one IP, use a <a href=\"https:\/\/whois.domaintools.com\/\">Whois domain lookup <\/a> to check the IP\u2019s owner. If it seems suspicious or you\u2019re not sure, compare the IP address with <a href=\"https:\/\/www.maxmind.com\/en\/high-risk-ip-sample-list\">Maxmind\u2019s database<\/a>. Block the IP if it\u2019s dangerous. <\/div>\r\n<\/div>\r\n\n<p><strong>Command 5: TRACERT<\/strong><\/p>\n<p><i>Tracert <\/i>, short for Trace Route, is a valuable command when diagnosing network problems. It traces the path data takes from your computer to a destination host.<\/p>\n<p>For instance, if you type\u00a0 <i>tracert www.google.com <\/i>\u00a0into the Command Prompt, it will trace the path your data takes to reach Google\u2019s servers.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2023\/07\/Command-Prompt-TRACERT-.webp\" alt=\"If you type tracert www.google.com into the Command Prompt, it will trace the path your data takes to reach Google\u2019s servers\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>The following are some issues that the test might show you:<\/p>\n<ul>\n<li aria-level=\"1\"><b>High latency:<\/b> If one hop shows a round-trip time of 200ms, and others show 20ms, this could mean there\u2019s a delay at that particular hop.<\/li>\n<li aria-level=\"1\"><b>Timeouts at a hop:<\/b> If you see timeouts (with * * *) at the same point in the route, it could mean there\u2019s a problem with that hop or the ones before it.<\/li>\n<li aria-level=\"1\"><b>Destination not reached:<\/b> If the trace doesn\u2019t reach the final destination, it could mean there\u2019s a problem with the routing or the server you\u2019re trying to reach is down.<\/li>\n<\/ul>\n<p>To fix high latency, contact your ISP or check if there\u2019s too much traffic on the network. For timeouts at a hop, make sure your router isn\u2019t blocking requests, or reach out to your ISP if it\u2019s their router. If the destination isn\u2019t reached, check if the server is down or if there\u2019s a routing issue on your network.<\/p>\n<p><b>Command 6: NSLOOKUP<\/b><\/p>\n<p><i>Nslookup <\/i> is an essential tool for network troubleshooting, often used to obtain domain name or IP address mapping. It can provide information on where a web service is hosted, which is useful for diagnosing <a href=\"https:\/\/www.auslogics.com\/en\/articles\/fix-dns-server-might-be-unavailable\/\">DNS resolution issues<\/a>.<\/p>\n<p>If you type\u00a0 <i>nslookup www.google.com <\/i>, you\u2019ll receive the IP address of Google\u2019s servers, indicating where their service is hosted. Beyond checking server location, <i>nslookup <\/i> can help detect DNS attacks.<\/p>\n<p>If a trusted site like <i>google.com <\/i> resolves to an unknown IP outside Google\u2019s typical ranges (e.g., 142.250.x.x, 173.x.x.x), it could indicate DNS hijacking. To verify, run <i>nslookup google.com 8.8.8.8 <\/i> and check if the IP belongs to Google using the <a href=\"https:\/\/whois.domaintools.com\/\" target=\"_blank\" rel=\"noopener nofollow\">Whois domain lookup <\/a>.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-103129.png\" alt=\"Beyond checking server location, nslookup can help detect DNS attacks\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 7: CHKDSK<\/b><\/p>\n<p><i>Chkdsk <\/i>, short for Check Disk, is mainly used to scan, detect, and repair file system errors and <a href=\"https:\/\/www.auslogics.com\/en\/articles\/how-to-fix-bad-sectors-on-a-hard-drive\/\">bad sectors on a hard drive<\/a>. It ensures the integrity of the file system and can help fix issues related to corrupted files or physical drive problems.<\/p>\n<p>For instance, if you experience repeated episodes of <a href=\"https:\/\/www.auslogics.com\/en\/articles\/causes-of-bsod-on-windows-10-8-8-1\/\">blue screen errors<\/a>, it might be a sign of underlying disk issues such as file system corruption or bad sectors. Running <i>chkdsk <\/i> can help identify and repair these problems, potentially restoring system stability.<\/p>\n<p>To troubleshoot with <i>chkdsk <\/i>, open the Command Prompt as an administrator:<\/p>\n<p>Then type the command:<\/p>\n<pre>CHKDSK<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2023\/07\/Screenshot-2025-02-17-130831-1.png\" alt=\"Type the command: CHKDSK\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>With this command, your computer will begin scanning your hard drives for any errors. The command only detects issues with your disk without fixing them.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2023\/07\/Screenshot-2025-02-17-131235-1.png\" alt=\"With this command, your computer will begin scanning your hard drives for any errors\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>If the scan finds errors on your disk, you need to use these additional parameters to fix the errors:<\/p>\n<pre>chkdsk \/f \r\n<\/pre>\n<p>Fixes file system errors.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2023\/07\/Screenshot-2025-02-17-131047-1.png\" alt=\"chkdsk \/f fixes file system errors\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<pre>chkdsk \/r \r\n<\/pre>\n<p>Looks for damaged parts of the drive and tries to save any readable data.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2023\/07\/Screenshot-2025-02-17-131125-1.png\" alt=\"chkdsk \/r looks for damaged parts of the drive and tries to save any readable data\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"tipsbox\">\r\n\t<div class=\"tipsbox__heading\">\r\n\t\t<div class=\"tipsbox__arrow-right\"><\/div>\r\n\t\t<div class=\"tipsbox__shield\">PRO TIP<\/div>\r\n\t\t<div class=\"tipsbox__arrow-left\"><\/div>\r\n\t<\/div>\r\n\t<div class=\"tipsbox__text\">If you\u2019re troubleshooting disk issues, it\u2019s best to use <i>chkdsk \/r <\/i> since it already includes <i>\/f <\/i> and also checks for bad sectors. <\/div>\r\n<\/div>\r\n\n<p><b>Command 8: SYSTEMINFO<\/b><\/p>\n<p>The <i>systeminfo <\/i> command provides comprehensive information about your system. It outputs detailed data, including OS name, version, manufacturer, installed hotfixes, and hardware resources like memory and network card specifications.<\/p>\n<p>This can be useful when troubleshooting system issues or simply <a href=\"https:\/\/www.auslogics.com\/en\/articles\/system-information\/\">checking your computer\u2019s specs. <\/a><\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-131532.png\" alt=\"The systeminfo command provides comprehensive information about your system\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 9: SFC \/SCANNOW<\/b><\/p>\n<p><i>Sfc \/scannow <\/i> is one of the CMD prompt commands for repairs . It allows you to scan and fix any corruption in Windows system files. This command checks the integrity of these files and, if necessary, replaces them with the correct versions.<\/p>\n<p>If your <a href=\"https:\/\/www.auslogics.com\/en\/articles\/why-is-your-windows-pc-so-slow\/\">Windows system is acting slow <\/a>, typing\u00a0 <i>sfc \/scannow <\/i>\u00a0into the Command Prompt might help fix the issue. The command will scan all protected system files and replace corrupted ones with a cached copy located in a compressed folder at\u00a0 <i>%WinDir%\\System32\\dllcache <\/i>.<\/p>\n<p>Like <i>chkdsk <\/i>, you must be an administrator to run an SFC scan. So, open the Command Prompt with administrative privileges, and then type: <i>sfc \/scannow <\/i>.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\"><i>Chkdsk <\/i> checks and fixes hard drive errors, such as bad sectors and file system corruption. <i>Sfc <\/i> repairs corrupted or missing Windows system files to ensure the OS runs properly. <\/div>\r\n<\/div>\n<p><b>Command 10: TASKLIST<\/b><\/p>\n<p>The <i>tasklist <\/i> command displays a list of all currently running processes on your computer. It is a valuable tool for diagnosing system performance issues, as it allows you to identify processes consuming excessive resources.<\/p>\n<p>For example, if your system is running slowly, you can use <i>tasklist <\/i> to check for <a href=\"https:\/\/www.auslogics.com\/en\/articles\/how-to-lower-cpu-usage-causes-solutions-to-high-cpu-usage\/\">high CPU <\/a> usage, memory, or disk usage by specific processes. This helps pinpoint applications or background tasks that may be causing performance bottlenecks.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-133232.png\" alt=\"The tasklist command displays a list of all currently running processes on your computer\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 11: TASKKILL<\/b><\/p>\n<p><i>Taskkill <\/i>, as its name suggests, allows you to\u00a0 <a href=\"https:\/\/www.auslogics.com\/en\/articles\/stop-all-processes-in-windows-10\/\">terminate tasks or processes <\/a>\u00a0directly from the Command Prompt. It\u2019s an incredibly useful CMD command for forcefully stopping unresponsive programs or those causing system instability.<\/p>\n<p>For example, let\u2019s say you were using Skype and it stopped responding. You can force it to close by typing the following command in the Command Prompt:<\/p>\n<pre>taskkill \/IM skype.exe \/F<\/pre>\n<p><div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-213431.png\" alt=\"Taskkill, as its name suggests, allows you to terminate tasks or processes directly from the Command Prompt\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div><br \/>\n<b><\/b><br \/>\n<b>Command 12: FORMAT<\/b><\/p>\n<p>The <i>format <\/i> command is used to erase all data on a disk and prepare it for use by setting up a new file system. This command is essential when you need to clean a drive, change the file system (e.g., from NTFS to FAT32), or resolve disk errors.<\/p>\n<pre>To start, type the following command:  \r\n\r\nFORMAT D: \/FS:NTFS<\/pre>\n<p>This will <a href=\"https:\/\/www.auslogics.com\/en\/articles\/the-ultimate-guide-how-to-format-hard-drive-in-windows-with-confidence\/\">format drive D <\/a>: with the NTFS file system.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__heading\">Warning!<\/div>\r\n\t<div class=\"notebox__text\">The FORMAT command permanently erases all data on the specified drive. Be sure <a href=\"https:\/\/www.auslogics.com\/en\/articles\/how-to-back-up-windows\/\">to back up important files <\/a> before running this command. <\/div>\r\n<\/div>\r\n\n<p><b>Command 13: CLS<\/b><\/p>\n<p>If you have tried all of these commands up to this point, your screen must be covered with several lines of text that might be distracting. To clear the Command Prompt screen, simply type:<\/p>\n<pre>CLS<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-150659.png\" alt=\"To clear the Command Prompt screen, simply type: CLS\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>The command will immediately wipe the screen, leaving you with a clean slate.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-150835.png\" alt=\"The command will immediately wipe the screen, leaving you with a clean slate\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 14: TIME<\/b><\/p>\n<p>The <i>time <\/i> command lets you display or set the system time. This can be helpful in situations where you cannot <a href=\"https:\/\/www.auslogics.com\/en\/articles\/how-to-change-time-and-date-on-windows-11\/\">change your PC\u2019s time <\/a> from the taskbar.<\/p>\n<p>To check the current system time, use this command:<\/p>\n<pre>Time<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-134340-1.png\" alt=\"To check the current system time, use this command: Time\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>To set the system time, type the following command and replace <i>[new_time] <\/i> with the desired time (e.g., <i>12:30:00.00 <\/i>):<\/p>\n<pre>time [new_time]<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-134510-2.png\" alt=\"To set the system time, type the following command and replace new_time with the desired time\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>After pressing Enter, the system time will be updated to the specified value.<\/p>\n<p><b>Command 15: SHUTDOWN\u00a0<\/b><\/p>\n<p>The <i>shutdown <\/i> command allows you to turn off, restart, hibernate, or log off a computer using the Command Prompt. It is particularly useful for automating system shutdowns, scheduling reboots, or remotely controlling other computers on a network.<\/p>\n<p>If you want to use it to shut down your computer in 5 minutes, you can enter the following command:<\/p>\n<pre>SHUTDOWN \/S \/T 300<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-02-18-112500.png\" alt=\"If you want to use it to shut down your computer in 5 minutes, you can enter the following command: SHUTDOWN \/S \/T 300\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>The above command instructs your computer to shut down in 5 minutes (300 seconds). To hibernate instead, replace <i>S <\/i> with <i>H <\/i>. To restart, replace <i>S <\/i> with <i>R <\/i>.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">The time is specified in seconds only. <\/div>\r\n<\/div>\n<h2>Summary of Basic CMD Commands<\/h2>\n<p>Here is a table summarizing the commonly used Command Prompt commands and their functions:<\/p>\n<div class=\"wrapper-table\">\n<table style=\"height: 489px;\" width=\"682\">\n<tbody>\n<tr>\n<th><strong>Command<\/strong><\/th>\n<th><strong>Description<\/strong><\/th>\n<th><strong>Example<\/strong><\/th>\n<\/tr>\n<tr>\n<td><strong>HELP<\/strong><\/td>\n<td>Lists commonly used commands and their functions<\/td>\n<td>help<\/td>\n<\/tr>\n<tr>\n<td><strong>IPCONFIG<\/strong><\/td>\n<td>Displays network configuration and allows IP address management<\/td>\n<td>ipconfig<\/td>\n<\/tr>\n<tr>\n<td><strong>PING<\/strong><\/td>\n<td>Tests network connection to a host by sending data packets<\/td>\n<td>ping <a href=\"http:\/\/www.google.com\/\">www.google.com <\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>NETSTAT<\/strong><\/td>\n<td>Displays network statistics and active connections<\/td>\n<td>netstat<\/td>\n<\/tr>\n<tr>\n<td><strong>TRACERT<\/strong><\/td>\n<td>Traces the path data takes to reach a destination host<\/td>\n<td>tracert <a href=\"http:\/\/www.google.com\/\">www.google.com <\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>NSLOOKUP<\/strong><\/td>\n<td>Resolves domain names to IP addresses<\/td>\n<td>nslookup <a href=\"http:\/\/www.google.com\/\">www.google.com <\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>CHKDSK<\/strong><\/td>\n<td>Scans and repairs disk errors and bad sectors<\/td>\n<td>chkdsk<\/td>\n<\/tr>\n<tr>\n<td><strong>SYSTEMINFO<\/strong><\/td>\n<td>Displays detailed system information<\/td>\n<td>systeminfo<\/td>\n<\/tr>\n<tr>\n<td><strong>SFC \/SCANNOW<\/strong><\/td>\n<td>Scans and fixes corrupted Windows system files<\/td>\n<td>sfc \/scannow<\/td>\n<\/tr>\n<tr>\n<td><strong>TASKLIST<\/strong><\/td>\n<td>Lists all running processes on the system<\/td>\n<td>tasklist<\/td>\n<\/tr>\n<tr>\n<td><strong>TASKKILL<\/strong><\/td>\n<td>Terminates specified processes<\/td>\n<td>taskkill \/IM skype.exe \/F<\/td>\n<\/tr>\n<tr>\n<td><strong>FORMAT<\/strong><\/td>\n<td>Formats a disk and prepares it for use<\/td>\n<td>format d: \/fs:ntfs<\/td>\n<\/tr>\n<tr>\n<td><strong><em>CLS<\/em><\/strong><\/td>\n<td>Clears the Command Prompt screen<\/td>\n<td>cls<\/td>\n<\/tr>\n<tr>\n<td><strong>TIME<\/strong><\/td>\n<td>Displays or sets the system time<\/td>\n<td>time [new_time]<\/td>\n<\/tr>\n<tr>\n<td><strong>SHUTDOWN<\/strong><\/td>\n<td>Shuts down, restarts, or logs off the computer<\/td>\n<td>shutdown \/s \/t 300<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>CMD Commands for Managing Files and Directories<\/h2>\n<p>You can also use the Command Prompt to interact with your files. It can come in handy whether you\u2019re navigating through folders, managing files, or performing advanced system operations.<\/p>\n<p>Let\u2019s see how:<\/p>\n<p><b>Command 1: CD<\/b><\/p>\n<p>Short for Change Directory, the <i>cd <\/i> command is a fundamental tool for navigation within the Command Prompt. It allows you <a href=\"https:\/\/www.auslogics.com\/en\/articles\/cmd-navigation-how-to-change-directory-in-cmd-command-prompt\/\">to move between directories. <\/a><\/p>\n<p>By default, when you open the Command Prompt, it opens in the user\u2019s home directory (e.g., <i> C:\\Users\\YourUsername <\/i>). This means any command you run will only affect files within this folder. To work with files in other locations, you must first navigate to the desired directory using the <i>cd <\/i> command.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-152603.png\" alt=\"To work with files in other locations, you must first navigate to the desired directory using the cd command\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>Let\u2019s say you want to work in the <i>Documents <\/i> directory of your computer. Then simply type:<\/p>\n<pre>cd Documents<\/pre>\n<p>Once you hit Enter, you\u2019ll notice you are now working within the <i>Documents <\/i> directory.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-153603.png\" alt=\"Simply type: cd Documents\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>If your <i>Documents <\/i> folder is managed by OneDrive, the standard command may not work as expected. Instead, you may need to navigate to the <i>Documents <\/i> directory within the <i>OneDrive <\/i> folder using the following command:<\/p>\n<pre>cd C:\\directory_path\\Documents\r\n<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-160616.png\" alt=\"navigate to the Documents directory within the OneDrive folder using the following command: cd C:directory_pathDocuments\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><div class=\"notebox\">\r\n\t<div class=\"notebox__text\">Make sure to replace <i>directory_path <\/i> with the actual path to <i>Documents <\/i>. <\/div>\r\n<\/div><br \/>\n<b><\/b><\/p>\n<p><b>Command 2: DIR<\/b><\/p>\n<p>The <i>dir <\/i> command lists the contents of a directory. It can display files, subdirectories, and more, providing a bird\u2019s-eye view of a directory\u2019s contents.<\/p>\n<p>By simply typing <i>dir <\/i>into the Command Prompt, you\u2019ll see all the contents of your current directory.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-160847.png\" alt=\"By simply typing dir into the Command Prompt, you\u2019ll see all the contents of your current directory\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>Using the command <i>dir \/s <\/i> will also include all subdirectories in the display.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-161108.png\" alt=\"Using the command dir \/s will also include all subdirectories in the display\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 3: TREE<\/b><\/p>\n<p>Looking through the results of the <i>dir <\/i> command might be tiring. To get a better idea of the files in the directory, you can use the <i>tree <\/i> command. This command displays a graphical representation of the directory structure, showing all folders inside the specified location.<\/p>\n<p>For example, to view the structure of the <i>Documents <\/i> folder, use:<\/p>\n<pre>tree C:\\directory_path\\Documents<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-093049.png\" alt=\"For example, to view the structure of the Documents folder, use: tree C:directory_pathDocuments\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>Replace <i>directory_path <\/i> with the actual path to the desired directory.<\/p>\n<p><b>Command 4: COPY<\/b><\/p>\n<p>The <i>copy <\/i> command copies files from one location to another. For instance, to copy a file named <i>Test 1 <\/i> from your desktop to your <i>Documents <\/i> folder, use the following command:<\/p>\n<pre>copy \"C:\\source_path\" \"C:\\destination_path\"<\/pre>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">Replace <i>source_path <\/i> with the location of the file to be copied and <i>destination_path <\/i> with the new location. <\/div>\r\n<\/div>\n<p><b>Command 5: XCOPY<\/b><\/p>\n<p>The <i>xcopy <\/i> command is used to copy files and directories, including their contents, from one location to another. Unlike the basic <i>copy <\/i> command, <i>xcopy <\/i> can copy entire folders, making it ideal for backups and large file transfers.<\/p>\n<p>For instance, to copy all files and subdirectories from the desktop to a backup location on the D: drive, use the following command:<\/p>\n<pre>xcopy \"C:\\directory_path\" \"D:\\Backup\" \/E \/I<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-213828.png\" alt=\"The xcopy command is used to copy files and directories, including their contents, from one location to another\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li aria-level=\"1\"><i>\/E: <\/i> Copies all folders inside, even if they are empty.<\/li>\n<li aria-level=\"1\"><i>\/I:<\/i> If the destination doesn\u2019t exist, <i>xcopy<\/i> assumes it\u2019s a folder and creates it.<\/li>\n<\/ul>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">Replace <i>directory_path <\/i> with the actual location of the desired folder. <\/div>\r\n<\/div>\n<p><b>Command 6: ROBOCOPY<\/b><\/p>\n<p><i>Robocopy <\/i>, or Robust File Copy, is an advanced replication command. It offers better error handling, multi-threading, and the ability to resume interrupted transfers. It is useful for mirroring directories and copying large amounts of data efficiently.<\/p>\n<p>For example, to mirror the contents of a source folder to a destination folder while ensuring an exact copy, use:<\/p>\n<pre>ROBOCOPY  \" C:\\source_path \"  \" D:\\destination_path \"  \/MIR<\/pre>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">Replace <i>C:\\source_path <\/i> and <i>D:\\destination_path <\/i> with the actual file path. <\/div>\r\n<\/div>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-215442.png\" alt=\"For example, to mirror the contents of a source folder to a destination folder while ensuring an exact copy, use: ROBOCOPY C:source_path D:destination_path \/MIR\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 7: TYPE<\/b><\/p>\n<p>The <i>type <\/i> command is used to display the contents of a text file directly in the Command Prompt.<\/p>\n<p>For example, to view the contents of a file named <i>file2.txt <\/i> located in the <i>Desktop <\/i> folder, use:<\/p>\n<pre>type \"C:\\file_path\\file2.txt\"<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-220142.png\" alt=\"The type command is used to display the contents of a text file directly in the Command Prompt\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">Replace <i>file_path <\/i> with the actual path to your file. <\/div>\r\n<\/div>\n<p>The <i>type <\/i> command in Windows is mainly used for text files like <i>.txt <\/i>, <i>.log <\/i>, and simple <i>.csv <\/i> files. If you use it for other file types such as <i>.exe <\/i>, <i>.docx <\/i>, <i>.jpg <\/i>, or <i>.pdf <\/i>, it will output unreadable characters.<\/p>\n<p><b>Command 8: NOTEPAD<\/b><\/p>\n<p>The <i>notepad <\/i> command opens the Notepad from the Command Prompt. This is useful for creating or modifying text files without opening an external text editor.<\/p>\n<p>For example, to open or create a file named <i>file3.txt <\/i> in the <i>Desktop <\/i> folder, use:<\/p>\n<pre>notepad \"C:\\file_path\\file3.txt\"\r\n<\/pre>\n<div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">Replace <i>file_path <\/i> with the actual path to the file <\/div>\r\n<\/div>\n<p>The moment you hit Enter, Notepad will ask to confirm if you want to create a new file.<\/p>\n<p><b>Command 9: DEL<\/b><\/p>\n<p>The <i>de <\/i>l command is an effective command for removing unwanted files directly from the command prompt.<\/p>\n<p>For example, to delete a DOCX file named <i>Test1 <\/i> from your desktop, you would use the following command:<\/p>\n<pre>del \"C:\\file_path\\Test1.docx\"<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-162500.png\" alt=\"to delete a DOCX file named Test1 from your desktop, you would use the following command: del C:\file_pathTest1.docx\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>Replace <i>file_path <\/i> with the actual path to the file.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__heading\">Warning!<\/div>\r\n\t<div class=\"notebox__text\">Ensure to verify the path properly when using del, as deleted files are not sent to the Recycle Bin and cannot be easily recovered. <\/div>\r\n<\/div>\r\n\n<p><b>Command 10: MOVE<\/b><\/p>\n<p>The <i>move <\/i> command, as the name suggests, allows you to move files from one directory to another. For instance, to move a file named <i>Test2.docx <\/i> from the desktop to the <i>Documents <\/i> folder, type the following:<\/p>\n<pre>move \"C:\\source_path\\Test2.docx\" \"C:\\destination_path\\Documents\"<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-164725-1.png\" alt=\"The move command, as the name suggests, allows you to move files from one directory to another\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">Replace <i>source_path <\/i> and <i>destination_path <\/i>with the actual paths to the corresponding locations. <\/div>\r\n<\/div>\n<p><b>Command 11: RENAME<\/b><\/p>\n<p>The <i>rename <\/i> command is a quick way to change file names directly from the Windows Command Prompt. For instance, to rename the <i>Test2.docx file <\/i>, you can type:<\/p>\n<pre>rename \"C:\\file_path\\Test 2.docx\" \"Test 1\"<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-165221.png\" alt=\"The rename command is a quick way to change file names directly from the Windows Command Prompt\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">Replace <i>file_path <\/i> with the actual path to the file. <\/div>\r\n<\/div>\n<p><b>Command 12: MKDIR<\/b><\/p>\n<p>The\u00a0 <i>mkdir <\/i> command\u00a0creates a new directory, offering an easy way to organize your files. Let\u2019s say you want to create a new folder on your desktop called <i>Testing<\/i>. You could type:<\/p>\n<pre>mkdir C:\\directory_path\\Testing<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-165740.png\" alt=\"The mkdir command creates a new directory, offering an easy way to organize your files\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">Replace <i>directory_path <\/i> with the actual path to the desired location. <\/div>\r\n<\/div>\n<p>Alternatively, if you are already in the directory where you want to create the folder, simply type <i>mkdir <\/i>followed by the name you want to assign to the folder, like this:<\/p>\n<pre>mkdir Testing<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-113914.png\" alt=\" If you are already in the directory where you want to create the folder, simply type mkdir followed by the name you want to assign to the folder\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>You should immediately see the folder appear in the specified location.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-114257.png\" alt=\"You should immediately see the folder appear in the specified location\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 13: RMDIR<\/b><\/p>\n<p>The <i>rmdir <\/i> command deletes an existing directory, proving to be a convenient tool for directory removal.<\/p>\n<p>To delete the new directory named <i>Testing <\/i> we\u2019ve just created, type:<\/p>\n<pre>rmdir C:\\directory_path\\Testing<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-114416.png\" alt=\"The rmdir command deletes an existing directory, proving to be a convenient tool for directory removal\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">Replace <i>directory_path <\/i> with the actual path to the folder location. <\/div>\r\n<\/div>\n<p>If you are already in the directory, you can also use:<\/p>\n<pre>rmdir Testing<\/pre>\n<p>The folder should immediately disappear from the directory.<\/p>\n<p><b>Command 14: FC<\/b><\/p>\n<p>The <i>fc <\/i> (File Compare) command is used to compare the contents of two files and display the differences between them. It is helpful when checking for modifications, debugging scripts, or verifying file integrity. A very interesting use case might be using it to compare log files to identify changes over time.<\/p>\n<p>For example, if you have two <i>.txt <\/i> files, <i>file1 <\/i> and <i>file2 <\/i>, you can use the <i>fc <\/i>command to quickly spot any differences, as follows: First, change the directory to the location of the two <i>.txt <\/i> files using the <i>cd <\/i> command:<\/p>\n<pre>cd C:\\file_path<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-084719.png\" alt=\"The fc (File Compare) command is used to compare the contents of two files and display the differences between them\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">Replace <i>file_path <\/i> with the actual path to the files. <\/div>\r\n<\/div>\n<p>After that, type the following command:<\/p>\n<pre>FC file1.txt file2.txt<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-17-224403.png\" alt=\"Type the following command: FC file1.txt file2.txt\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">The <i>fc <\/i> command can only compare text or binary files, and it works best for relatively simple comparisons, such as line-by-line differences in text files. It cannot compare file attributes, metadata, or the content of files that are not in a readable format (e.g., images or compiled binaries).<\/p>\n<p>Additionally, the <i>fc <\/i> command does not handle large files very well, and it may produce inaccurate results if the files are in complex formats. <\/div>\r\n<\/div>\n<p><b>Command 15: ATTRIB<\/b><\/p>\n<p>The <i>attrib <\/i> command allows you to change file or directory attributes, such as making files hidden or read-only.<\/p>\n<p>Let\u2019s say you have some files you do not want people to see. You can hide them in a folder using this command. Let\u2019s try it with a folder named <i>TestingFolder. <\/i> Here\u2019s the command you need to run:<\/p>\n<pre>attrib +h TestingFolder\r\n<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-03-03-101057.png\" alt=\"The attrib command allows you to change file or directory attributes, such as making files hidden or read-only\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>To remove the hidden attribute, use:<\/p>\n<pre>attrib -h TestingFolder<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-03-03-101211.png\" alt=\"To remove the hidden attribute, use:  attrib -h TestingFolder\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>If you are not in the same directory as the file, you can enter the following command and replace <i>file_path <\/i> with the actual one:<\/p>\n<pre>attrib -h C:\\file_path \\TestingFolder<\/pre>\n<h2>Summary of CMD Commands for Managing Files and Directories<\/h2>\n<div class=\"wrapper-table\">\n<table style=\"height: 555px;\" width=\"903\">\n<tbody>\n<tr>\n<th><strong>Command<\/strong><\/th>\n<th><strong>Description<\/strong><\/th>\n<th><strong>Example<\/strong><\/th>\n<\/tr>\n<tr>\n<td><strong>CD<\/strong><\/td>\n<td>Changes the current directory<\/td>\n<td>cd &#8220;directory_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>DIR<\/strong><\/td>\n<td>Lists the contents of a directory<\/td>\n<td>dir<\/td>\n<\/tr>\n<tr>\n<td><strong>TREE<\/strong><\/td>\n<td>Displays a graphical representation of the directory structure<\/td>\n<td>tree &#8220;directory_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>COPY<\/strong><\/td>\n<td>Copies files from one location to another<\/td>\n<td>copy &#8220;source_path&#8221; &#8220;destination_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>XCOPY<\/strong><\/td>\n<td>Copies files and directories, including subdirectories<\/td>\n<td>xcopy &#8220;source_path&#8221; &#8220;destination_path&#8221; \/E \/I<\/td>\n<\/tr>\n<tr>\n<td><strong>ROBOCOPY<\/strong><\/td>\n<td>A robust file copy command with better error handling, multi-threading, and resumption features<\/td>\n<td>robocopy &#8220;source_path&#8221; &#8220;destination_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>TYPE<\/strong><\/td>\n<td>Displays the contents of a text file in the Command Prompt<\/td>\n<td>type &#8220;file_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>NOTEPAD<\/strong><\/td>\n<td>Opens a notepad in the Command Prompt<\/td>\n<td>notepad &#8220;file_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>DEL<\/strong><\/td>\n<td>Deletes a file permanently<\/td>\n<td>del &#8220;file_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>MOVE<\/strong><\/td>\n<td>Moves files from one location to another<\/td>\n<td>move &#8220;source_path&#8221; &#8220;destination_path&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>RENAME<\/strong><\/td>\n<td>Renames a file or directory<\/td>\n<td>rename [old_name&#8221; &#8220;new_name&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>MKDIR<\/strong><\/td>\n<td>Creates a new directory<\/td>\n<td>mkdir &#8220;directory_name&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>RMDIR<\/strong><\/td>\n<td>Deletes an existing directory<\/td>\n<td>rmdir &#8220;directory_name&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>FC<\/strong><\/td>\n<td>Compares the contents of two files and displays the differences<\/td>\n<td>fc &#8220;file1&#8243;\u00a0 file2&#8221;<\/td>\n<\/tr>\n<tr>\n<td><strong>ATTRIB<\/strong><\/td>\n<td>Changes file or directory attributes (e.g., hidden or read-only)<\/td>\n<td>attrib +h file\/folder_name<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 class=\"wrapper-table\">Advanced Windows Command Prompt commands for Power Users<\/h2>\n<p>When you\u2019re ready to dig deeper, you can try advanced command-line commands to manage your system better. Here\u2019s a collection of some of the most powerful ones:<\/p>\n<p><b>Command 1: NET USER<\/b><\/p>\n<p><i>Net user <\/i> is a versatile command, permitting you to add, remove, or modify user accounts on a Windows PC.<\/p>\n<p>For example, to add a new user named <i>John <\/i>, you would type\u00a0the following command:<\/p>\n<pre>net user John \/add<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-123947.png\" alt=\"Net user is a versatile command, permitting you to add, remove, or modify user accounts on a Windows PC\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">To use this command, you must open Command Prompt as an administrator. <\/div>\r\n<\/div>\n<p>Besides adding a new user, you can also use the command for the following actions:<\/p>\n<ul>\n<li aria-level=\"1\"><b>Delete an account:<\/b> Use <i>\/delete <\/i> to remove a user account. For example, this command removes the account named <i>John<\/i>:<\/li>\n<\/ul>\n<pre>net user John \/delete<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-123947-1.png\" alt=\"Use \/delete to remove a user account\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li aria-level=\"1\"><b>Set a password:<\/b> Enter a password after the username to set it. For example, this command creates an account for <i>John <\/i> with the password <i>MyPassword123<\/i>:<\/li>\n<\/ul>\n<pre>net user John MyPassword123 \/add<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-124251.png\" alt=\"this command creates an account for John with the password MyPassword123\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li aria-level=\"1\"><b>Enable or disable an account:<\/b> Use <i>\/active:yes <\/i> to enable or <i>\/active:no <\/i> to disable an account. For example, this command disables the &#8221; <i>John <\/i>&#8221; account, preventing login:<\/li>\n<\/ul>\n<pre>net user John \/active:no<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-124357.png\" alt=\"Use \/active:yes to enable or \/active:no to disable an account\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 2: NET VIEW<\/b><\/p>\n<p>The <i>net view <\/i> command lets you see the list of resources, computers, or domains shared by a specific network.<\/p>\n<p>Simply typing\u00a0 <i>net view <\/i>\u00a0will provide a list of computers on your current network.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-124600.png\" alt=\"Typing net view will provide a list of computers on your current network\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">I currently don\u2019t have PCs connected to my network. That\u2019s why I\u2019m getting this system error. However, if you have, it should work for you. <\/div>\r\n<\/div>\n<p><b>Command 3: NET SHARE<\/b><\/p>\n<p>The <i>net share <\/i> command is used to manage shared resources on your computer, like shared directories or printers.<\/p>\n<p>By typing\u00a0 <i>net share <\/i>, you can view all the resources currently shared from your PC.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-124709.png\" alt=\"By typing net share, you can view all the resources currently shared from your PC\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 4: NET USE<\/b><\/p>\n<p>The <i>net use <\/i> command allows you to connect to, disconnect from, and manage shared resources such as network drives and printers.<\/p>\n<p>To connect a shared folder called <i>SharedDocs <\/i> from a computer named <i>Comp01 <\/i> and make it show up as drive <i>Z: <\/i>, type this command in the Command Prompt:<\/p>\n<pre>net use Z: \\\\Comp01\\SharedDocs<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-125426.png\" alt=\"The net use command allows you to connect to, disconnect from, and manage shared resources such as network drives and printers\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 5: CIPHER<\/b><\/p>\n<p>The <i>cipher <\/i> command helps you check whether a file or folder is encrypted or not encrypted on an NTFS file system (a type of storage system used by Windows). It also allows you to encrypt or decrypt files and folders as needed.<\/p>\n<p>Just typing <i>cipher <\/i> (without any options) shows whether files and folders in the current location are encrypted or not.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-222317.png\" alt=\"typing cipher (without any options) shows whether files and folders in the current location are encrypted or not\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li aria-level=\"1\"><i>U <\/i> means <i>Unencrypted <\/i><\/li>\n<li aria-level=\"1\"><i>E <\/i> means <i>Encrypted <\/i><\/li>\n<\/ul>\n<p>To encrypt a file in the current folder, use:<\/p>\n<pre>cipher \/e file_name<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-222455.png\" alt=\"To encrypt a file in the current folder, use: cipher \/e file_name\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">Replace <i>file_name <\/i> with the name of the file you want to encrypt. <\/div>\r\n<\/div>\n<p>After running this command, the file\u2019s status changes from <i>U <\/i>to <i>E <\/i>, meaning it is now encrypted.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-222525.png\" alt=\"After running this command, the file\u2019s status changes from U to E, meaning it is now encrypted\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 6: POWERCFG<\/b><\/p>\n<p><i>Powercfg <\/i> lets you manage the <a href=\"https:\/\/www.auslogics.com\/en\/articles\/turn-on-ultimate-performance-power-plan-win10\/\">power settings <\/a> in your system and diagnose any power problems.<\/p>\n<p>Instead of going through Control Panel, you can easily get detailed insights about your laptop\u2019s battery usage with this command:<\/p>\n<pre>powercfg \/batteryreport<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-125953.png\" alt=\"Powercfg lets you manage the power settings in your system and diagnose any power problems\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>When you run this, it generates a detailed report about the battery usage, capacity history, and battery life estimates and saves it as an HTML file in your current directory.<\/p>\n<p>Then you may pull up that battery report just by pasting the path into File Explorer.<\/p>\n<p>You can also use the <i>powercfg <\/i> command to:<\/p>\n<ul>\n<li aria-level=\"1\"><b>Set a specific power plan:<\/b> Switch between power plans to improve computer performance or battery life. For example, to select the <i>High performance <\/i> plan:<\/li>\n<\/ul>\n<pre>powercfg \/setactive SCHEME_HIGHPERFORMANCE\r\n<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-02-18-130708.png\" alt=\"powercfg \/setactive SCHEME_HIGHPERFORMANCE sets a high performance plan\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li aria-level=\"1\"><b>Enable hibernation:<\/b><\/li>\n<\/ul>\n<pre>powercfg \/hibernate on<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-02-18-130729.png\" alt=\"Enable hibernation with powercfg \/hibernate on\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<ul>\n<li aria-level=\"1\"><b>Disable hibernation:<\/b><\/li>\n<\/ul>\n<pre>powercfg \/hibernate off<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-02-18-130748.png\" alt=\"Disable hibernation with powercfg \/hibernate off\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 7: REGEDIT<\/b><\/p>\n<p><i>Regedit<\/i>, or the <a href=\"https:\/\/www.auslogics.com\/en\/articles\/navigating-regedit-what-is-the-windows-registry-editor-and-how-to-use-it\/\">Registry Editor<\/a>, isn\u2019t directly a CMD command, but it\u2019s a powerful tool you can launch from the Command Prompt.<\/p>\n<p>It is used to view and make changes to the Windows system registry, a hierarchical database that stores low-level settings for the operating system and applications running on it.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__heading\">Warning!<\/div>\r\n\t<div class=\"notebox__text\">While the Registry Editor is a powerful tool, it should be used with extreme caution. If used incorrectly, it can cause serious issues, which may require you to reinstall your system. <\/div>\r\n<\/div>\r\n\n<p>To open the Registry Editor from the Command Prompt, simply type <i>regedit. <\/i><\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-02-18-131508.png\" alt=\"To open the Registry Editor from the Command Prompt, simply type regedit\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>This will bring up a window, like you see in the image below.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-131529.png\" alt=\"This will bring up a window, like you see in the image below\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 8: SCHTASKS<\/b><\/p>\n<p><i>Schtasks <\/i> is a helpful tool when you want to schedule CMD prompt commands at specified times.<\/p>\n<p>To create a task that launches the Notepad application every day at 10 AM, type:<\/p>\n<pre>\u00a0schtasks \/create \/sc daily \/tn\u00a0\"MyNotepadTask\" \/tr \"notepad.exe\" \/st 10:00<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-02-18-131806.png\" alt=\"Schtasks is a helpful tool when you want to schedule CMD prompt commands at specified times\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 9: GPUPDATE<\/b><\/p>\n<p><i>Gpupdate <\/i> is a nifty command that forces an immediate update of Group Policy. This can be useful for IT administrators who want to test changes to\u00a0 <a href=\"https:\/\/www.techtarget.com\/searchwindowsserver\/definition\/Group-Policy-Object\">Group Policy Objects (GPOs) <\/a>\u00a0without waiting for the automatic refresh.<\/p>\n<p>If you\u2019ve made changes to a GPO and want them to take effect immediately, typing the following command\u00a0into the Command Prompt will apply the changes right away:<\/p>\n<p><i>gpupdate \/force <\/i><\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Screenshot-2025-02-18-131930.png\" alt=\"Gpupdate is a nifty command that forces an immediate update of Group Policy\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 10: GPRESULT<\/b><\/p>\n<p><i>Gpresult <\/i> is a command that outputs the\u00a0 <a href=\"https:\/\/www.techtarget.com\/searchwindowsserver\/definition\/RSoP-Resultant-Set-of-Policy\">Resultant Set of Policy (RSoP) <\/a>\u00a0information for a user or a computer. It\u2019s a practical tool for IT administrators to troubleshoot Group Policy issues on a Windows system.<\/p>\n<div class=\"notebox\">\r\n\t<div class=\"notebox__text\">The Resultant Set of Policy is a Windows tool for managing and troubleshooting Group Policy settings. It provides reports on policies applied to users or computers, operating in both logging and planning modes. By using RSoP, administrators can identify policy conflicts and understand the effects of policy settings. <\/div>\r\n<\/div>\n<p>If you suspect a problem with Group Policy, the following\u00a0command can display the applied GPOs, helping you identify potential issues:<\/p>\n<pre>gpresult \/r<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-132108.png\" alt=\"Gpresult is a command that outputs the Resultant Set of Policy (RSoP) information for a user or a computer\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 11: WMIC<\/b><\/p>\n<p><i>Wmic <\/i> (Windows Management Instrumentation command-line utility) allows you to get specific details about your computer. It works like <i>systeminfo <\/i> but with more details.<\/p>\n<p>With this command, you can view more advanced, customizable queries, such as retrieving a PC\u2019s serial number, installed programs, or CPU details. WMIC is also useful for remote management and automation, such as scheduling automatic system reboots, making it ideal for IT administrators.<\/p>\n<p>For example, if you are troubleshooting a problem with your GPU, you could type the following command to get the details of your GPU:<\/p>\n<pre>wmic path win32_videocontroller get name, adapterram, driverversion, pnpdeviceid<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-154946.png\" alt=\"Wmic (Windows Management Instrumentation command-line utility) allows you to get specific details about your computer\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>This will display the GPU name, memory size, driver version, and device ID, helping you identify potential issues.<\/p>\n<pre>wmic bios get serialnumber<\/pre>\n<p>Shows your computer\u2019s serial number, useful for checking the warranty or identifying your PC.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-160526.png\" alt=\"wmic bios get serialnumber shows your computer\u2019s serial number, useful for checking the warranty or identifying your PC\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<pre>wmic cpu get name, maxclockspeed<\/pre>\n<p>Displays your CPU (processor) name and its maximum speed, which helps check performance.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-160641.png\" alt=\"wmic cpu get name, maxclockspeed displays your CPU (processor) name and its maximum speed, which helps check performance\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<pre>wmic product get name, version<\/pre>\n<p>Lists the software installed on your computer and their versions to help you track your programs.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-160813.png\" alt=\"wmic product get name, version Lists the software installed on your computer and their versions to help you track your programs\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 12: NETSH<\/b><\/p>\n<p><i>Netsh <\/i> (Network Shell) is a powerful tool for managing network configurations, including Wi-Fi, firewall, and IP settings.<\/p>\n<p>For instance, you can use it to view all the Wi-Fi networks you connected to in the past by typing:<\/p>\n<pre>netsh wlan show profiles<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-160813-1.png\" alt=\"Netsh (Network Shell) is a powerful tool for managing network configurations, including Wi-Fi, firewall, and IP settings\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 13: WEVTUTIL<\/b><\/p>\n<p><i>Wevtutil <\/i> (Windows Event Utility) allows users to manage and query Windows event logs. Event logs are records of significant activities that happen on a computer, such as system errors, warnings, application crashes, or security events.<\/p>\n<p>These logs are created by the operating system or applications and can help track system performance, troubleshoot issues, and ensure security.<\/p>\n<p>Let\u2019s say your computer is frequently crashing or freezing. By checking the event logs using <i>wevtutil <\/i>, you can see if there are any recurring error messages or warnings that could point to the cause, such as a failing hardware component or a software conflict. This information can help a technician or you pinpoint and fix the issue.<\/p>\n<p>To use the command to list all available event logs, type:<\/p>\n<pre>wevtutil el<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-161544.png\" alt=\"Wevtutil (Windows Event Utility) allows users to manage and query Windows event logs\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>After the list appears, choose a log name you want to examine. For example, to check the <i>Application <\/i> log, use the following command:<\/p>\n<pre>wevtutil qe \"Application\" \/f:text<\/pre>\n<p>You will get a long text showing you the content of the log.<\/p>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-162043.png\" alt=\"to check the Application log, use the following command: wevtutil qe Application \/f:text\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p><b>Command 14: ICACLS<\/b><\/p>\n<p>The <i>icacls <\/i> command is used in Windows operating systems to manage and modify file and folder permissions. It allows you to set, change, or view the permissions (access control lists, or ACLs) of files and directories. Permissions include things like who can read, write, modify, or execute a file.<\/p>\n<p>If you\u2019re an administrator on a system and want to grant a user full control of a folder, use this command:<\/p>\n<pre>icacls \"C:\\MyFolder\" \/grant UserName:F<\/pre>\n<p><div class=\"notebox_lite\">\r\n\t<div class=\"notebox_lite__heading\">Note<\/div>\r\n\t<div class=\"notebox__text\">Replace <i>MyFolder <\/i> with the name of the folder you want to grant access to and <i>UserName <\/i> with the actual username <\/div>\r\n<\/div><br \/>\n<b><\/b><\/p>\n<p><b>Command 15: BCDEDIT<\/b><\/p>\n<p><i>Bcdedit <\/i> (Boot Configuration Data Editor) modifies boot settings, making it essential for troubleshooting boot issues and configuring <a href=\"https:\/\/www.auslogics.com\/en\/articles\/dual-boot-secrets-how-to-dual-boot-windows-10-11-and-linux\/\">multi-boot setups<\/a>.<\/p>\n<p>Let\u2019s say you are troubleshooting and you need to <a href=\"https:\/\/www.auslogics.com\/en\/articles\/add-safe-mode-to-boot-menu-win-10\/\">restart Windows in Safe Mode<\/a>. You can use this command:<\/p>\n<pre>bcdedit \/set {current} safeboot minimal<\/pre>\n<div class=\"screenshots\">\r\n  <div class=\"screenshots__image-shadow\">\r\n    <img data-src=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/03\/Screenshot-2025-02-18-162043-1.png\" alt=\"Bcdedit (Boot Configuration Data Editor) modifies boot settings, making it essential for troubleshooting boot issues and configuring multi-boot setups\" class=\"lazyload screenshots__image\">\r\n  <\/div>\r\n  <div class=\"screenshots__description\"><\/div>\r\n<\/div>\n<p>When Windows reboots, it will load only essential drivers and services.<\/p>\n<h2>Summary of the Advanced Command Prompt Commands<\/h2>\n<p>Here\u2019s a summary table for all of the advanced Command Prompt commands we covered:<\/p>\n<div class=\"wrapper-table\">\n<table style=\"height: 518px;\" width=\"641\">\n<tbody>\n<tr>\n<th><strong>Command<\/strong><\/th>\n<th><strong>Description<\/strong><\/th>\n<th><strong>Example<\/strong><\/th>\n<\/tr>\n<tr>\n<td><strong>NET USER<\/strong><\/td>\n<td>Manages user accounts (add, delete, modify, enable\/disable)<\/td>\n<td>net user John \/add<\/td>\n<\/tr>\n<tr>\n<td><strong>NET VIEW<\/strong><\/td>\n<td>Lists computers or shared resources on the network<\/td>\n<td>net view<\/td>\n<\/tr>\n<tr>\n<td><strong>NET SHARE<\/strong><\/td>\n<td>Manages shared resources like folders or printers<\/td>\n<td>net share<\/td>\n<\/tr>\n<tr>\n<td><strong>NET USE<\/strong><\/td>\n<td>Connects to or disconnects from shared network resources<\/td>\n<td>net use Z: \\\\Comp01\\SharedDocs<\/td>\n<\/tr>\n<tr>\n<td><strong>CIPHER<\/strong><\/td>\n<td>Checks encryption status of a file or folder<\/td>\n<td>Cipher [file_path]<\/td>\n<\/tr>\n<tr>\n<td><strong>POWERCFG<\/strong><\/td>\n<td>Manages power settings and battery reports<\/td>\n<td>powercfg \/batteryreport<\/td>\n<\/tr>\n<tr>\n<td><strong>REGEDIT<\/strong><\/td>\n<td>Accesses the system registry editor<\/td>\n<td>regedit<\/td>\n<\/tr>\n<tr>\n<td><strong>SCHTASKS<\/strong><\/td>\n<td>\u00a0 Schedules tasks to run at specified times<\/td>\n<td>schtasks \/create \/sc daily \/tn &#8220;MyNotepadTask&#8221; \/tr &#8220;notepad.exe&#8221; \/st 10:00<\/td>\n<\/tr>\n<tr>\n<td><strong>GPUPDATE<\/strong><\/td>\n<td>Forces a Group Policy update<\/td>\n<td>gpupdate \/force<\/td>\n<\/tr>\n<tr>\n<td><strong>GPRESULT<\/strong><\/td>\n<td>Shows Resultant Set of Policy information<\/td>\n<td>gpresult \/r<\/td>\n<\/tr>\n<tr>\n<td><strong>WMIC<\/strong><\/td>\n<td>Retrieves system and hardware details, allows automation<\/td>\n<td>wmic path win32_videocontroller get name, adapterram, driverversion, pnpdeviceid<\/td>\n<\/tr>\n<tr>\n<td><strong>NETSH<\/strong><\/td>\n<td>Configures network settings and manages IP, Wi-Fi, and firewall<\/td>\n<td>netsh wlan show profiles<\/td>\n<\/tr>\n<tr>\n<td><strong>WEVTUTIL<\/strong><\/td>\n<td>Manages and queries Windows event logs<\/td>\n<td>wevtutil el<\/td>\n<\/tr>\n<tr>\n<td><strong>ICACLS<\/strong><\/td>\n<td>Modifies file\/folder permissions and access control lists<\/td>\n<td>icacls &#8220;C:\\MyFolder&#8221; \/grant UserName:F<\/td>\n<\/tr>\n<tr>\n<td><strong>BCDEDIT<\/strong><\/td>\n<td>Modifies boot settings, useful for troubleshooting boot issues<\/td>\n<td>bcdedit \/set {current} safeboot minimal<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>Take the Windows Command Prompt to the Next Level<\/h2>\n<p>If you tried any of these commands on our Command Prompt cheat sheet, you already realize how immensely useful CMD is for Windows. With these commands, you can perform tasks faster, fix problems, and have more control over your computer.<\/p>\n<p>While these commands will definitely make things easier, it is important to mention that you should be careful. Some commands, especially those that make changes to the <a href=\"https:\/\/www.auslogics.com\/en\/articles\/what-is-windows-registry-and-how-to-use-it-the-right-way-all-you-need-to-know\/\">Windows registry<\/a>, can be risky. If used incorrectly, they may cause serious problems with your system, so always ensure you understand what a command can do before running it.<\/p>\n<p>What\u2019s your personal experience using CMD commands? Share your thoughts in the comments!<\/p>\n<h2>FAQ<\/h2>\n<div class=\"best-faq\">\r\n\t<div class=\"best-faq__header\">How do I see all tasks in CMD?<\/div>\r\n\t<div class=\"best-faq__content\">\r\n\t\tTo view all running tasks (processes) in the Command Prompt, use tasklist. This will display a list of active processes along with their process IDs (PIDs).\r\n\t\t\r\n\t<\/div>\r\n<\/div>\n<div class=\"best-faq\">\r\n\t<div class=\"best-faq__header\">How do I get a list of commands in CMD?<\/div>\r\n\t<div class=\"best-faq__content\">\r\n\t\tTo see all available CMD commands, use help. It will show you a CMD commands list with a brief description for each. You can also use (command) \/? to show you detailed information about a specific command.\r\n\t\t\r\n\t<\/div>\r\n<\/div>\n<div class=\"best-faq\">\r\n\t<div class=\"best-faq__header\"> Can I chat using CMD?<\/div>\r\n\t<div class=\"best-faq__content\">\r\n\t\tYes, you can use the msg command to send messages over a local network. For example: msg (username or *) Your message here This only works if messaging is enabled on the network. Using the asterisk, you will send the message to all active users on the network or system.\r\n\t\t\r\n\t<\/div>\r\n<\/div>\n<div class=\"best-faq\">\r\n\t<div class=\"best-faq__header\"> How to clear in CMD?<\/div>\r\n\t<div class=\"best-faq__content\">\r\n\t\tTo clear the screen in CMD, use cls. This removes all previous commands and outputs from the screen.\r\n\t\t\r\n\t<\/div>\r\n<\/div>\n<div class=\"best-faq\">\r\n\t<div class=\"best-faq__header\">Is it possible to run CMD commands remotely on another PC?<\/div>\r\n\t<div class=\"best-faq__content\">\r\n\t\tYes, you can run commands on a remote computer using the following methods: psexec \\(remote_computer) (command) or wmic \/node:(remote_computer) process call create (command) You need administrative privileges and network access to the remote PC.\r\n\t\t\r\n\t<\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The Windows Command Prompt (or CMD) is amazing and useful if you know how to use it. You can use it to manage files, check your IP address, and even repair system files. I\u2019ll show you useful Command Prompt commands to help you make necessary changes to your operating system.<\/p>\n","protected":false},"author":91,"featured_media":91981,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[811,831],"tags":[69,731,109,301,619],"class_list":["post-42667","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-optimization","category-pc-performance","tag-boot-issues","tag-corrupted-files","tag-pc-performance","tag-windows-optimization","tag-windows-tweaks"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v26.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples &#8212; Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues<\/title>\n<meta name=\"description\" content=\"Discover 45 essential Windows Command Prompt (CMD) commands with practical examples. Boost your productivity and master Windows like a pro!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/posts\/42667\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows Command Prompt: Most Useful Commands\" \/>\n<meta property=\"og:description\" content=\"Discover 45 essential Windows Command Prompt (CMD) commands with practical examples. Boost your productivity and master Windows like a pro!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Auslogics\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-28T21:47:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-13T18:46:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Olusegun Makinwa\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Windows Command Prompt: Most Useful Commands\" \/>\n<meta name=\"twitter:description\" content=\"Master Windows Command Prompt with 28 useful CMD commands and examples. Supercharge your computer skills!\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olusegun Makinwa\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"32 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/\"},\"author\":{\"name\":\"Olusegun Makinwa\",\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/#\/schema\/person\/be69469c4384659121ed97b4aacf8667\"},\"headline\":\"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples\",\"datePublished\":\"2025-02-28T21:47:21+00:00\",\"dateModified\":\"2025-05-13T18:46:28+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/\"},\"wordCount\":8495,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp\",\"keywords\":[\"Boot Issues\",\"Corrupted Files\",\"PC Performance\",\"Windows Optimization\",\"Windows Tweaks\"],\"articleSection\":[\"Optimization\",\"PC Performance\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/\",\"url\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/\",\"name\":\"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples &#8212; Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues\",\"isPartOf\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp\",\"datePublished\":\"2025-02-28T21:47:21+00:00\",\"dateModified\":\"2025-05-13T18:46:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/#\/schema\/person\/be69469c4384659121ed97b4aacf8667\"},\"description\":\"Discover 45 essential Windows Command Prompt (CMD) commands with practical examples. Boost your productivity and master Windows like a pro!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage\",\"url\":\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp\",\"contentUrl\":\"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp\",\"width\":700,\"height\":400,\"caption\":\"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tech Wisdom Blog\",\"item\":\"https:\/\/www.auslogics.com\/en\/articles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Optimization\",\"item\":\"https:\/\/www.auslogics.com\/en\/articles\/category\/optimization\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/#website\",\"url\":\"https:\/\/www.auslogics.com\/en\/articles\/\",\"name\":\"Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.auslogics.com\/en\/articles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.auslogics.com\/en\/articles\/#\/schema\/person\/be69469c4384659121ed97b4aacf8667\",\"name\":\"Olusegun Makinwa\",\"description\":\"Writing has always been a part of my life since childhood. As a kid, I found writing as a way to relieve my mood, and gradually it evolved into a purposeful endeavor to assist others. With a natural curiosity and a love for computers, I discovered that I had valuable knowledge. I realized I could use my skills to help others solve problems, and so I decided I was going to pursue my dreams in that direction. After earning my bachelor\u2019s degree, I immersed myself in learning data analysis and coding, areas that have significantly enriched my technical expertise. These skills have sharpened my research abilities, enabling me to see some of these problems firsthand and devise effective solutions. So, most times when I write, I write from the perspective of someone who has also solved these problems. This approach ensures that my write-ups are both informative and actionable for readers. At Auslogics, my ultimate goal is to bridge the gap between technology and everyday users, making complex topics approachable. Seeing my work make a difference, Empowering individuals to solve their problems independently and confidently, is incredibly rewarding and inspires me every day.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/olusegun-makinwa\"],\"jobTitle\":\"Tech Writer\",\"worksFor\":\"Auslogics\",\"url\":\"https:\/\/www.auslogics.com\/en\/articles\/author\/olusegun-makinwa\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples &#8212; Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues","description":"Discover 45 essential Windows Command Prompt (CMD) commands with practical examples. Boost your productivity and master Windows like a pro!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/posts\/42667","og_locale":"en_US","og_type":"article","og_title":"Windows Command Prompt: Most Useful Commands","og_description":"Discover 45 essential Windows Command Prompt (CMD) commands with practical examples. Boost your productivity and master Windows like a pro!","og_url":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/","og_site_name":"Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues","article_publisher":"https:\/\/www.facebook.com\/Auslogics","article_published_time":"2025-02-28T21:47:21+00:00","article_modified_time":"2025-05-13T18:46:28+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp","type":"image\/webp"}],"author":"Olusegun Makinwa","twitter_card":"summary_large_image","twitter_title":"Windows Command Prompt: Most Useful Commands","twitter_description":"Master Windows Command Prompt with 28 useful CMD commands and examples. Supercharge your computer skills!","twitter_misc":{"Written by":"Olusegun Makinwa","Est. reading time":"32 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#article","isPartOf":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/"},"author":{"name":"Olusegun Makinwa","@id":"https:\/\/www.auslogics.com\/en\/articles\/#\/schema\/person\/be69469c4384659121ed97b4aacf8667"},"headline":"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples","datePublished":"2025-02-28T21:47:21+00:00","dateModified":"2025-05-13T18:46:28+00:00","mainEntityOfPage":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/"},"wordCount":8495,"commentCount":0,"image":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp","keywords":["Boot Issues","Corrupted Files","PC Performance","Windows Optimization","Windows Tweaks"],"articleSection":["Optimization","PC Performance"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/","url":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/","name":"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples &#8212; Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues","isPartOf":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp","datePublished":"2025-02-28T21:47:21+00:00","dateModified":"2025-05-13T18:46:28+00:00","author":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/#\/schema\/person\/be69469c4384659121ed97b4aacf8667"},"description":"Discover 45 essential Windows Command Prompt (CMD) commands with practical examples. Boost your productivity and master Windows like a pro!","breadcrumb":{"@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#primaryimage","url":"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp","contentUrl":"https:\/\/www.auslogics.com\/en\/articles\/wp-content\/uploads\/2025\/02\/Windows-Command-Prompt-45-Most-Useful-Windows-CMD-Commands-with-Examples.webp","width":700,"height":400,"caption":"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples"},{"@type":"BreadcrumbList","@id":"https:\/\/www.auslogics.com\/en\/articles\/windows-command-prompt-28-most-useful-cmd-commands-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Tech Wisdom Blog","item":"https:\/\/www.auslogics.com\/en\/articles\/"},{"@type":"ListItem","position":2,"name":"Optimization","item":"https:\/\/www.auslogics.com\/en\/articles\/category\/optimization\/"},{"@type":"ListItem","position":3,"name":"Windows Command Prompt: 45 Most Useful Windows CMD Commands with Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.auslogics.com\/en\/articles\/#website","url":"https:\/\/www.auslogics.com\/en\/articles\/","name":"Auslogics Blog | Tips to Diagnose &amp; Resolve Computer Issues","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.auslogics.com\/en\/articles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.auslogics.com\/en\/articles\/#\/schema\/person\/be69469c4384659121ed97b4aacf8667","name":"Olusegun Makinwa","description":"Writing has always been a part of my life since childhood. As a kid, I found writing as a way to relieve my mood, and gradually it evolved into a purposeful endeavor to assist others. With a natural curiosity and a love for computers, I discovered that I had valuable knowledge. I realized I could use my skills to help others solve problems, and so I decided I was going to pursue my dreams in that direction. After earning my bachelor\u2019s degree, I immersed myself in learning data analysis and coding, areas that have significantly enriched my technical expertise. These skills have sharpened my research abilities, enabling me to see some of these problems firsthand and devise effective solutions. So, most times when I write, I write from the perspective of someone who has also solved these problems. This approach ensures that my write-ups are both informative and actionable for readers. At Auslogics, my ultimate goal is to bridge the gap between technology and everyday users, making complex topics approachable. Seeing my work make a difference, Empowering individuals to solve their problems independently and confidently, is incredibly rewarding and inspires me every day.","sameAs":["https:\/\/www.linkedin.com\/in\/olusegun-makinwa"],"jobTitle":"Tech Writer","worksFor":"Auslogics","url":"https:\/\/www.auslogics.com\/en\/articles\/author\/olusegun-makinwa\/"}]}},"_links":{"self":[{"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/posts\/42667","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/users\/91"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/comments?post=42667"}],"version-history":[{"count":60,"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/posts\/42667\/revisions"}],"predecessor-version":[{"id":97373,"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/posts\/42667\/revisions\/97373"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/media\/91981"}],"wp:attachment":[{"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/media?parent=42667"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/categories?post=42667"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auslogics.com\/en\/articles\/wp-json\/wp\/v2\/tags?post=42667"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}