Windows Commands Flashcards
View all environment variables
set
Set and environment variable
setx variable value (admin mode)
Print specific variables
echo %VAR%
Shutdown
shutdown /s /t 10
/s = shutdown
/t xxx = time-out period before shutdown
/r = shutdown and restart
Current command path
path
Detailed config info about computer and OS
system info
Help
/?
Open explorer
explorer
Open calculator
calc
Microsoft Managment Console
mmc
Create connections in remote servers and computers
mstsc
Network Connection properties administration
ncpa.cpl
Internet Properties control
inetcpl.cpl
Mouse Properties control
main.cpl
Sound Properties control
mmsys.cpl
System Properties control
sysdm.cpl
Display Properties control
desk.cpl
Add/Remove Programs control
appwiz.cpl
Change Drive
c:
d:
Make Directories
mkdir “Name”
Rename Directories
ren “currentName” “newName”
Verifies IP-level connectivity to another TCP/IP computer
ping “IP”
Test Port Connection
Test-NetConnection “HOST” -Port “PORT”
Display all current TCP/IP configurations
ipconfig
Display Route Details
netstat -rn
Display Hostname from IP
nbtstat -a “IP_ADDRESS”
Display MAC Address
getmac
Display entries in the ARP cache
arp -a
Deletes entries in the ARP cache
arp -d
Displays active TCP connections
netstat -an
Displays Users Account Information
net user
Lists all directories inside of current directory
ls (thats an L btw, think ‘List’)
Displays current working directory
pwd
Changes working directory
cd
Changes working directory to the one directly above the current working directory
cd ..
Changes working directory through several directories
cd path/path/path
Changes working directory up through several directories
cd ../../..