Useful Windows Command Line Tools for System Administration
Introduction
The Windows Command Line (Command Prompt) provides powerful tools for system administration, troubleshooting, and automation. While many users rely on graphical interfaces, command-line utilities offer faster and more advanced control over system operations.
Prerequisites
Before using these commands, ensure:
- Access to Command Prompt (Run as Administrator for advanced commands)
- Basic understanding of command-line usage
- Appropriate permissions for system-level operations
Command Line Tools
1. Scheduling & Task Automation
- at (XP/2000 – Deprecated)
Legacy task scheduler (replaced byschtasks) - schtasks
Create and manage scheduled tasks locally or remotely
2. System Configuration & Information
- bootcfg (XP only – Deprecated)
Configure boot settings - msconfig (XP and later)
Manage startup programs and services - systeminfo
Displays system configuration details - msinfo32
Advanced system diagnostics and hardware info - driverquery
Lists installed drivers and their properties - wmic
Advanced system and hardware information tool
3. File, Disk & Filesystem Management
- cacls
Modify file/folder permissions (ACLs) - comp
Compare contents of two files - defrag
Disk defragmentation tool - contig (Sysinternals tool)
Defragment specific files - diskpart
Manage disk partitions - fsutil
Advanced filesystem operations - recover
Recover data from damaged disks
4. Network & Connectivity Tools
- ipconfig
View and manage IP configuration - getmac
Retrieve MAC addresses - netstat
Display network connections and ports - nslookup
DNS lookup tool - pathping
Combines ping and traceroute for network analysis - netsh
Advanced network configuration utility
5. Process & System Control
- tasklist
View running processes - taskkill
Terminate processes - shutdown
Shutdown/restart local or remote systems - openfiles
Manage open/shared files
6. User, Security & Policy Management
- cacls
Manage access permissions - gpresult
Display group policy settings - gpupdate
Apply group policy updates - secedit
Configure security policies (largely replaced by gpupdate)
7. Registry & Services
- reg
Command-line registry editor - sc
Service controller (manage Windows services)
8. Utilities & Productivity Tools
- findstr
Search text in files (similar to Linuxgrep) - more
Display output one screen at a time - tree
Show directory structure in tree format
9. Control Panel & Interface Tools
- control(XP and later)
Launch Control Panel applets- Example:
control userpasswords2
- Example:
10. Diagnostics & Maintenance
- sfc
System File Checker (repair system files) - sigverif (XP only)
Verify driver signatures
11. Special & Miscellaneous Tools
- eudcedit (XP only)
Create custom characters/fonts - narrator (XP and later)
Accessibility tool for reading text aloud - sysedit (Legacy)
Old system configuration editor (replaced by msconfig)
Notes
- Many tools listed are legacy (XP/2000 era) and may not exist in modern Windows
- Some tools have been replaced by PowerShell equivalents
- Use
command /?to get help for any command - Be cautious when using:
diskpartregfsutiltaskkill
Conclusion
Windows command-line tools provide powerful capabilities for system management and troubleshooting. Understanding both legacy and modern utilities allows administrators to work more efficiently and handle complex tasks with ease.
