{"id":381,"date":"2026-10-14T01:31:16","date_gmt":"2026-10-14T01:31:16","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2014\/09\/29\/windows-xp-2000-commands-tools-2\/"},"modified":"2026-10-14T01:31:16","modified_gmt":"2026-10-14T01:31:16","slug":"windows-xp-2000-commands-tools-2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/windows-xp-2000-commands-tools-2\/","title":{"rendered":"Windows XP\/2000 Commands and Tools: Practical Admin Reference with Examples"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><em>Originally published on 2014-09-29; fully revised and updated.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><img decoding=\"async\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2014\/09\/windows-xp-2000-commands-to.png\" alt=\"Windows XP and 2000 commands and tools\" \/><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide refreshes a classic <a href=\"https:\/\/www.devopsschool.com\/blog\/windows-xp-2000-commands-tools-2\/\">Windows XP\/2000 commands list<\/a> into a practical reference for admins and power users maintaining legacy Windows hosts. You will learn which commands are most useful by task, how to apply them safely, and how to translate Linux-style CLI habits into XP\/2000 operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The original post also credited community additions from <a href=\"http:\/\/www.digg.com\/programming\/Different_cool_commands_for_Your_RUN.EXE\">Digg users<\/a> and linked related content at <a href=\"http:\/\/www.scmGalaxy.com\">SCMGalaxy<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What this reference covers and legacy constraints<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Windows XP and Windows 2000 are legacy operating systems. Treat this page as an operational reference for existing environments, labs, migration projects, or forensic work. Before making changes, validate command behavior on the exact OS edition and service pack you are supporting.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Check built-in help first: many switches differ by version.<\/li><li>Run administrative commands from an elevated\/admin context.<\/li><li>Expect edition differences (for example, some tools are XP Professional only).<\/li><li>Back up key data before service, registry, or disk operations.<\/li><\/ul>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs language-bash\">help\nipconfig \/?\nsc \/?\nschtasks \/?<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\">A practical workflow for XP\/2000 command-line administration<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use a simple loop: inspect first, change second, verify last. This reduces risk on fragile legacy systems.<\/p>\n\n\n\n<pre class=\"mermaid\">\nflowchart TD\n    A[Define admin goal] --> B[Choose command family]\n    B --> C[Run read only command]\n    C --> D{Issue understood}\n    D -- no --> E[Collect deeper output]\n    E --> C\n    D -- yes --> F[Run change command]\n    F --> G[Verify result]\n    G --> H[Document steps]\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Command families at a glance<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The original article linked many command pages, including <a href=\"http:\/\/www.networkclue.com\/os\/Windows\/commands\/ipconfig.aspx\">ipconfig<\/a>, <a href=\"http:\/\/www.networkclue.com\/os\/Windows\/commands\/nslookup.aspx\">nslookup<\/a>, and <a href=\"http:\/\/www.networkclue.com\/os\/Windows\/commands\/cacls.aspx\">cacls<\/a>. The table below keeps the same spirit, grouped for fast use.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Primary purpose<\/th><th>Linux mental model<\/th><th>Availability noted in original post<\/th><\/tr><\/thead><tbody><tr><td>ipconfig<\/td><td>View and manage IP configuration<\/td><td>ifconfig or ip addr<\/td><td>XP, 2000, NT4.0<\/td><\/tr><tr><td>netsh<\/td><td>Network configuration shell<\/td><td>ip and route tooling<\/td><td>XP and 2000<\/td><\/tr><tr><td>nslookup<\/td><td>DNS query and name resolution<\/td><td>nslookup or dig<\/td><td>All<\/td><\/tr><tr><td>pathping<\/td><td>Route plus packet-loss diagnostics<\/td><td>ping plus traceroute<\/td><td>XP and 2000<\/td><\/tr><tr><td>cacls<\/td><td>File and folder ACL changes<\/td><td>chmod and chown style workflow<\/td><td>XP, 2000, NT4.0<\/td><\/tr><tr><td>comp<\/td><td>File comparison<\/td><td>diff<\/td><td>XP and 2000<\/td><\/tr><tr><td>sc<\/td><td>Service controller from CLI<\/td><td>service or systemctl style control<\/td><td>XP and 2000<\/td><\/tr><tr><td>tasklist<\/td><td>List running processes and services<\/td><td>ps<\/td><td>XP Professional only<\/td><\/tr><tr><td>taskkill<\/td><td>Terminate processes<\/td><td>kill or pkill<\/td><td>XP only<\/td><\/tr><tr><td>schtasks<\/td><td>Create and manage scheduled tasks<\/td><td>cron plus at style scheduling<\/td><td>XP only<\/td><\/tr><tr><td>at<\/td><td>Legacy scheduling utility<\/td><td>at<\/td><td>XP and 2000<\/td><\/tr><tr><td>sfc<\/td><td>System file integrity check and repair<\/td><td>package or file integrity check analogue<\/td><td>XP and 2000<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Example commands for daily admin work<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use these as starting points and adjust hostnames, paths, and service names for your environment.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Network diagnostics and DNS<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-1\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php language-bash\">ipconfig \/all\nipconfig \/displaydns\nipconfig \/flushdns\nnslookup devopsschool.com\npathping <span class=\"hljs-number\">8.8<\/span><span class=\"hljs-number\">.8<\/span><span class=\"hljs-number\">.8<\/span>\nnetsh <span class=\"hljs-class\"><span class=\"hljs-keyword\">interface<\/span> <span class=\"hljs-title\">ip<\/span> <span class=\"hljs-title\">show<\/span> <span class=\"hljs-title\">config<\/span><\/span><\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-1\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\">Process and service troubleshooting<\/h3>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs language-bash\">tasklist\ntasklist \/svc\ntaskkill \/PID 1234 \/F\nsc query\nsc query spooler\nsc stop spooler\nsc start spooler<\/code><\/span><\/pre>\n\n\n<h3 class=\"wp-block-heading\">Policy refresh and system inventory<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-2\" data-shcb-language-name=\"JavaScript\" data-shcb-language-slug=\"javascript\"><span><code class=\"hljs language-javascript language-bash\">gpresult \/v\ngpupdate \/force\nsecedit \/refreshpolicy machine_policy \/enforce\nsysteminfo\ndriverquery \/v\nwmic os <span class=\"hljs-keyword\">get<\/span> Caption,Version,BuildNumber<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-2\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">JavaScript<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">javascript<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\">Filesystem checks and comparisons<\/h3>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs language-bash\">sfc \/scannow\ncacls C:\\Data\\reports.txt\ncomp C:\\Data\\baseline.txt C:\\Data\\current.txt\ntree C:\\ \/F<\/code><\/span><\/pre>\n\n\n<h3 class=\"wp-block-heading\">Scheduling and automation<\/h3>\n\n\n<pre class=\"wp-block-code\" aria-describedby=\"shcb-language-3\" data-shcb-language-name=\"PHP\" data-shcb-language-slug=\"php\"><span><code class=\"hljs language-php language-bash\">at <span class=\"hljs-number\">23<\/span>:<span class=\"hljs-number\">00<\/span> \/every:M,T,W,Th,F cmd \/c systeminfo &gt; C:\\Logs\\sysinfo.txt\nschtasks \/create \/tn NightlyInventory \/tr <span class=\"hljs-string\">\"cmd \/c systeminfo &gt; C:\\Logs\\sysinfo.txt\"<\/span> \/sc daily \/st <span class=\"hljs-number\">23<\/span>:<span class=\"hljs-number\">00<\/span>\nschtasks \/query \/fo <span class=\"hljs-keyword\">LIST<\/span> \/v<\/code><\/span><small class=\"shcb-language\" id=\"shcb-language-3\"><span class=\"shcb-language__label\">Code language:<\/span> <span class=\"shcb-language__name\">PHP<\/span> <span class=\"shcb-language__paren\">(<\/span><span class=\"shcb-language__slug\">php<\/span><span class=\"shcb-language__paren\">)<\/span><\/small><\/pre>\n\n\n<h3 class=\"wp-block-heading\">Remote restart and open file checks<\/h3>\n\n\n<pre class=\"wp-block-code\"><span><code class=\"hljs language-bash\">shutdown \/r \/m \\\\XP-CLIENT-01 \/t 0\nopenfiles \/query\nrecover D:\\damaged.txt<\/code><\/span><\/pre>\n\n\n<h2 class=\"wp-block-heading\">AT vs SCHTASKS on legacy Windows<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Best use<\/th><th>Strength<\/th><th>Limitation<\/th><\/tr><\/thead><tbody><tr><td>at<\/td><td>Simple legacy scheduling<\/td><td>Very quick one-line setup<\/td><td>Older interface and fewer management options<\/td><\/tr><tr><td>schtasks<\/td><td>Managed recurring jobs on XP<\/td><td>Create, query, and manage tasks locally or remotely<\/td><td>Marked as XP-only in the original post<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Common pitfalls on XP\/2000 command lines<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Assuming every command exists on every edition or service pack.<\/li><li>Skipping read-only checks before running change commands.<\/li><li>Forgetting that some tools require administrative rights or domain context.<\/li><li>Relying on undocumented switches without testing in a non-production clone.<\/li><li>Using old external references that may now be unavailable.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you are migrating off XP\/2000, keep this command set as a bridge: it helps you inventory systems, stabilize them, and plan safer cutovers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A modernized, task-oriented reference to key Windows XP\/2000 command-line tools for troubleshooting, system administration, and automation. Includes command comparisons, workflow guidance, and copy-ready examples.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[55],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"predecessor-version":[{"id":79261,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/381\/revisions\/79261"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}