{"id":528,"date":"2025-10-13T14:07:11","date_gmt":"2025-10-13T14:07:11","guid":{"rendered":"https:\/\/kweeit.com\/?p=528"},"modified":"2025-10-13T14:07:11","modified_gmt":"2025-10-13T14:07:11","slug":"useful-windows-commands","status":"publish","type":"post","link":"https:\/\/kweeit.com\/?p=528","title":{"rendered":"&#8220;Useful Windows Commands&#8221;"},"content":{"rendered":"\n<p><strong>This is from Beginner to Advanced, Categorized for Easy Learning of Windows CMD commands and examples. I hope this is very useful for you and your learning purpose.<\/strong><\/p>\n\n\n\n\n\n<p><strong>\ud83d\udcc1 1. File &amp; Folder Management<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>dir<\/code><\/td><td>List files and folders<\/td><td><code>dir \/s<\/code><\/td><\/tr><tr><td><code>cd<\/code><\/td><td>Change directory<\/td><td><code>cd Documents<\/code><\/td><\/tr><tr><td><code>mkdir\/ <\/code><code>md<\/code><\/td><td>Create new folder<\/td><td><code>mkdir Projects<\/code><\/td><\/tr><tr><td><code>del<\/code><\/td><td>Delete file(s)<\/td><td><code>del file.txt<\/code><\/td><\/tr><tr><td><code>copy<\/code><\/td><td>Copy file(s)<\/td><td><code>copy file.txt D:\\Backup<\/code><\/td><\/tr><tr><td><code>move<\/code><\/td><td>Move or rename file(s)<\/td><td><code>move file.txt D:\\Docs<\/code><\/td><\/tr><tr><td><code>ren<\/code><\/td><td>Rename a file<\/td><td><code>ren old.txt new.txt<\/code><\/td><\/tr><tr><td><code>attrib<\/code><\/td><td>View\/change file attributes<\/td><td><code>attrib +r file.txt<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\ud83e\udded 2. Navigation &amp; Display<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>cls<\/code><\/td><td>Clear screen<\/td><td><code>cls<\/code><\/td><\/tr><tr><td><code>exit<\/code><\/td><td>Close CMD window<\/td><td><code>exit<\/code><\/td><\/tr><tr><td><code>echo<\/code><\/td><td>Display message<\/td><td><code>echo Hello, World!<\/code><\/td><\/tr><tr><td><code>type<\/code><\/td><td>Show file contents<\/td><td><code>type notes.txt<\/code><\/td><\/tr><tr><td><code>tree<\/code><\/td><td>Show folder structure<\/td><td><code>tree \/f<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\ud83c\udf10 3. Network &amp; Internet Tools<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>ipconfig<\/code><\/td><td>Show IP settings<\/td><td><code>ipconfig \/all<\/code><\/td><\/tr><tr><td><code>ping<\/code><\/td><td>Test network connection<\/td><td><code>ping google.com<\/code><\/td><\/tr><tr><td><code>tracert<\/code><\/td><td>Trace route to host<\/td><td><code>tracert 8.8.8.8<\/code><\/td><\/tr><tr><td><code>netstat<\/code><\/td><td>Show active connections<\/td><td><code>netstat -an<\/code><\/td><\/tr><tr><td><code>nslookup<\/code><\/td><td>DNS lookup<\/td><td><code>nslookup microsoft.com<\/code><\/td><\/tr><tr><td><code>netsh<\/code><\/td><td>Network configuration<\/td><td><code>netsh wlan show profiles<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\ud83d\udda5\ufe0f 4. System Info &amp; Diagnostics<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>systeminfo<\/code><\/td><td>Show system details<\/td><td><code>systeminfo<\/code><\/td><\/tr><tr><td><code>hostname<\/code><\/td><td>Show computer name<\/td><td><code>hostname<\/code><\/td><\/tr><tr><td><code>ver<\/code><\/td><td>Show Windows version<\/td><td><code>ver<\/code><\/td><\/tr><tr><td><code>tasklist<\/code><\/td><td>List running processes<\/td><td><code>tasklist<\/code><\/td><\/tr><tr><td><code>taskkill<\/code><\/td><td>Kill a process<\/td><td><code>taskkill \/PID 1234 \/F<\/code><\/td><\/tr><tr><td><code>sfc<\/code><\/td><td>System file checker<\/td><td><code>sfc \/scannow<\/code><\/td><\/tr><tr><td><code>chkdsk<\/code><\/td><td>Check disk for errors<\/td><td><code>chkdsk \/f<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\ud83d\udd10 5. User &amp; Security Management<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>net user<\/code><\/td><td>Manage user accounts<\/td><td><code>net user John \/add<\/code><\/td><\/tr><tr><td><code>net localgroup<\/code><\/td><td>Manage user groups<\/td><td><code>net localgroup Administrators John \/add<\/code><\/td><\/tr><tr><td><code>whoami<\/code><\/td><td>Show current user<\/td><td><code>whoami<\/code><\/td><\/tr><tr><td><code>runas<\/code><\/td><td>Run as another user<\/td><td><code>runas \/user:Admin cmd<\/code><\/td><\/tr><tr><td><code>icacls<\/code><\/td><td>Modify file permissions<\/td><td><code>icacls file.txt \/grant John:F<\/code><\/td><\/tr><tr><td><code>takeown<\/code><\/td><td>Take file ownership<\/td><td><code>takeown \/f file.txt<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\ud83d\udcbe 6. Disk &amp; Storage Utilities<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>diskpart<\/code><\/td><td>Partition management<\/td><td><code>diskpart<\/code><\/td><\/tr><tr><td><code>format<\/code><\/td><td>Format a drive<\/td><td><code>format D:<\/code><\/td><\/tr><tr><td><code>defrag<\/code><\/td><td>Defragment a drive<\/td><td><code>defrag C:<\/code><\/td><\/tr><tr><td><code>fsutil<\/code><\/td><td>Advanced file system tasks<\/td><td><code>fsutil dirty query C:<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\u2699\ufe0f 7. Boot &amp; Configuration<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>bcdedit<\/code><\/td><td>Edit boot configuration<\/td><td><code>bcdedit \/set {current} safeboot minimal<\/code><\/td><\/tr><tr><td><code>msconfig<\/code><\/td><td>System configuration tool<\/td><td><code>msconfig<\/code><\/td><\/tr><tr><td><code>regedit<\/code><\/td><td>Registry editor<\/td><td><code>regedit<\/code><\/td><\/tr><tr><td><code>gpupdate<\/code><\/td><td>Update Group Policy<\/td><td><code>gpupdate \/force<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>\ud83e\uddea 8. Power Tools &amp; Scripting<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>powershell<\/code><\/td><td>Launch PowerShell<\/td><td><code>powershell<\/code><\/td><\/tr><tr><td><code>wmic<\/code><\/td><td>WMI command-line tool<\/td><td><code>wmic cpu get name<\/code><\/td><\/tr><tr><td><code>schtasks<\/code><\/td><td>Schedule tasks<\/td><td><code>schtasks \/create \/tn \"Backup\" \/tr backup.bat \/sc daily \/st 10:00<\/code><\/td><\/tr><tr><td><code>for,<\/code><code>if,<\/code><code>goto<\/code><\/td><td>Batch scripting logic<\/td><td><code>Used in <code>.bat<\/code> files<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is from Beginner to Advanced, Categorized for Easy Learning of Windows CMD commands and examples. I hope this is very useful for you and your learning purpose. \ud83d\udcc1 1. File &amp; Folder Management Command Description Example dir List files and folders dir \/s cd Change directory cd Documents mkdir\/ md Create new folder mkdir [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":529,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-528","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sk"],"_links":{"self":[{"href":"https:\/\/kweeit.com\/index.php?rest_route=\/wp\/v2\/posts\/528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kweeit.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kweeit.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kweeit.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kweeit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=528"}],"version-history":[{"count":1,"href":"https:\/\/kweeit.com\/index.php?rest_route=\/wp\/v2\/posts\/528\/revisions"}],"predecessor-version":[{"id":530,"href":"https:\/\/kweeit.com\/index.php?rest_route=\/wp\/v2\/posts\/528\/revisions\/530"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kweeit.com\/index.php?rest_route=\/wp\/v2\/media\/529"}],"wp:attachment":[{"href":"https:\/\/kweeit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kweeit.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kweeit.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}