Command list Here is the extensive list of commands for cmdprompt CLI only.
-
Get system information:
systeminfo
-
List all running processes:
tasklist
-
Get detailed information about a specific process:
tasklist /v /fi "imagename eq processname.exe"
-
List all installed programs:
wmic product get name,version
-
Check system disk usage:
chkdsk
-
Check disk space:
dir
-
Check network configuration:
ipconfig /all
-
List all network connections and listening ports:
netstat -an
-
View current active connections:
netstat -a
-
List files and directories in the current directory:
dir
-
Create a new directory:
mkdir directoryname
-
Delete a directory:
rmdir /s /q directoryname
-
Copy files:
copy sourcefile destinationfile
-
Move files:
move sourcefile destinationfile
-
Delete files:
del filename
-
Search for files:
dir /s /b filename
-
Find files containing specific text:
findstr /s /i "searchtext" *.*
-
Ping a host:
ping hostname
-
Trace route to a host:
tracert hostname
-
Test network connection to a port:
telnet hostname port
-
View routing table:
route print
-
Flush DNS cache:
ipconfig /flushdns
-
Display network shares:
net share
-
List all users:
net user
-
Add a new user:
net user username password /add
-
Delete a user:
net user username /delete
-
Add a user to a group:
net localgroup groupname username /add
-
Remove a user from a group:
net localgroup groupname username /delete
-
Check file permissions:
icacls filename
-
Change file permissions:
icacls filename /grant username:(permissions)
-
View active network connections:
netstat -ano
-
Stop a process by PID:
taskkill /PID pidnumber
-
Start a process:
start processname.exe
-
View Windows Event Logs:
eventvwr
-
Export Event Log to a file:
wevtutil epl "logname" "filename.evtx"
-
View specific log entries:
wevtutil qe "logname" /q:"*[System[(EventID=number)]]" /f:text
-
Run system file checker:
sfc /scannow
-
Check for Windows updates:
wuauclt /detectnow
-
Clean temporary files:
del /q /f %temp%\*
-
Update Windows Defender:
MpCmdRun.exe -SignatureUpdate
This list covers a broad range of cmd
commands for system administration, security, file management, network diagnostics, and more. Commands are organized by category to facilitate efficient use in various administrative and troubleshooting tasks. Always ensure to run commands with the appropriate privileges and follow best practices for system management.