shell Common commands

ipconfig [shows ip configuration]
ipconfig /all [shows all ipconfig settings]
ipconfig /release [releases current ip]
ping 192.168.1.1 [pings an ip]
tracert www.google.com [traces the route from your PC to google.com]
netstat [shows all current connections]
netsh firewall set opmode disable [disables windows firewall]

net config server [shows server settings]
net config workstation [shows workstation settings]
net use g: \\server\share [maps a network drive]
net use /d [disconnects mapped network drive]
net time \\computername /set /yes [sets the computer time]
net send \\computername message [allows you to send messages to another computer via the messenger service]
net localgroup administrators /add "domain users" [adds the domain users group to the local admin group]

netsh interface ip set address "Local Area Connection" dhcp [set your LAN card IP to DHCP as well as static IP address and stuff use the /? to find out more]
netsh interface ip set dns "Local Area Connection" dhcp [same as above but sets DNS not IP]
netsh firewall set service type = FILEANDPRINT mode = ENABLE scope = ALL [add the fileand print service as an exception in windows firewall]

shutdown -m //computername [shutdown remote pc, see the following too:]
	-i Display GUI interface, must be the first option
	-l Log off (cannot be used with -m option)
	-s Shutdown the computer
	-r Shutdown and restart the computer
	-a Abort a system shutdown
	-m \\computername Remote computer to shutdown/restart/abort
	-t xx Set timeout for shutdown to xx seconds
	-c "comment" Shutdown comment (maximum of 127 characters)
	-f Forces running applications to close without warning
	-d [u][p]:xx:yy The reason code for the shutdown
Common useful command line commands.

Updated: Thursday 4th November 2010, 14:38pm

There are 0 comments

Leave a comment of your own

Comments are currently closed.