Useful Windows CLI Commands

View NIC configuration
ipconfig

Send Continuous Ping Requests
ping -t [hostname/IP]

Display DNS cache
ipconfig /displaydns

Flush local DNS cache
ipconfig /flushdns

View all active connections
netstat

View active connections with process ids
netstat -o

View the routing table
route print

View all environment variables
set

List all processes currently running
tasklist

List all processes showing DLLs in use
tasklist /m

Shutdown Windows Immediately:
shutdown /s /t 0

Restart Windows Immediately:
shutdown /r /t 0

Disable Windows Firewall
netsh firewall set opmode disable

Change DNS settings
netsh interface ip set dns local static [ip]

Launch Frequently Used GUI programs

Terminal Services
mstsc /v:[hostname/IP]

Programs and Features
appwiz.cpl

Network Control Panel
ncpa.cpl

Local User Manager
lusrmgr.msc

Services Control Panel
services.msc

Security Policy Manager
secpol.msc

Event Viewer
eventvwr generika cialis rezeptfrei.msc

Control Panel
control

Many of these commands and several others are available in a handy cheat sheet from SANS here:
http://pen-testing.sans.org/resources/downloads#command_line

Posted in Operating Systems

Leave a Reply