Originally published on 2014-09-29; fully revised and updated.

This guide refreshes a classic Windows XP/2000 commands list 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.
The original post also credited community additions from Digg users and linked related content at SCMGalaxy.
What this reference covers and legacy constraints
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.
- Check built-in help first: many switches differ by version.
- Run administrative commands from an elevated/admin context.
- Expect edition differences (for example, some tools are XP Professional only).
- Back up key data before service, registry, or disk operations.
help
ipconfig /?
sc /?
schtasks /?
A practical workflow for XP/2000 command-line administration
Use a simple loop: inspect first, change second, verify last. This reduces risk on fragile legacy systems.
flowchart TD
A[Define admin goal] --> B[Choose command family]
B --> C[Run read only command]
C --> D{Issue understood}
D -- no --> E[Collect deeper output]
E --> C
D -- yes --> F[Run change command]
F --> G[Verify result]
G --> H[Document steps]
Command families at a glance
The original article linked many command pages, including ipconfig, nslookup, and cacls. The table below keeps the same spirit, grouped for fast use.
| Command | Primary purpose | Linux mental model | Availability noted in original post |
|---|---|---|---|
| ipconfig | View and manage IP configuration | ifconfig or ip addr | XP, 2000, NT4.0 |
| netsh | Network configuration shell | ip and route tooling | XP and 2000 |
| nslookup | DNS query and name resolution | nslookup or dig | All |
| pathping | Route plus packet-loss diagnostics | ping plus traceroute | XP and 2000 |
| cacls | File and folder ACL changes | chmod and chown style workflow | XP, 2000, NT4.0 |
| comp | File comparison | diff | XP and 2000 |
| sc | Service controller from CLI | service or systemctl style control | XP and 2000 |
| tasklist | List running processes and services | ps | XP Professional only |
| taskkill | Terminate processes | kill or pkill | XP only |
| schtasks | Create and manage scheduled tasks | cron plus at style scheduling | XP only |
| at | Legacy scheduling utility | at | XP and 2000 |
| sfc | System file integrity check and repair | package or file integrity check analogue | XP and 2000 |
Example commands for daily admin work
Use these as starting points and adjust hostnames, paths, and service names for your environment.
Network diagnostics and DNS
ipconfig /all
ipconfig /displaydns
ipconfig /flushdns
nslookup devopsschool.com
pathping 8.8.8.8
netsh interface ip show configCode language: PHP (php)
Process and service troubleshooting
tasklist
tasklist /svc
taskkill /PID 1234 /F
sc query
sc query spooler
sc stop spooler
sc start spooler
Policy refresh and system inventory
gpresult /v
gpupdate /force
secedit /refreshpolicy machine_policy /enforce
systeminfo
driverquery /v
wmic os get Caption,Version,BuildNumberCode language: JavaScript (javascript)
Filesystem checks and comparisons
sfc /scannow
cacls C:\Data\reports.txt
comp C:\Data\baseline.txt C:\Data\current.txt
tree C:\ /F
Scheduling and automation
at 23:00 /every:M,T,W,Th,F cmd /c systeminfo > C:\Logs\sysinfo.txt
schtasks /create /tn NightlyInventory /tr "cmd /c systeminfo > C:\Logs\sysinfo.txt" /sc daily /st 23:00
schtasks /query /fo LIST /vCode language: PHP (php)
Remote restart and open file checks
shutdown /r /m \\XP-CLIENT-01 /t 0
openfiles /query
recover D:\damaged.txt
AT vs SCHTASKS on legacy Windows
| Command | Best use | Strength | Limitation |
|---|---|---|---|
| at | Simple legacy scheduling | Very quick one-line setup | Older interface and fewer management options |
| schtasks | Managed recurring jobs on XP | Create, query, and manage tasks locally or remotely | Marked as XP-only in the original post |
Common pitfalls on XP/2000 command lines
- Assuming every command exists on every edition or service pack.
- Skipping read-only checks before running change commands.
- Forgetting that some tools require administrative rights or domain context.
- Relying on undocumented switches without testing in a non-production clone.
- Using old external references that may now be unavailable.
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.
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals