Thursday, 8 May 2014

Useful Commands for CMD and Power-Shell

These commands you can type in either CMD (Command Prompt) or you can use Power-Shell (This is a more advanced command prompt with more features.)

ipconfig - Shows all your network adapter's IP address IPv4 or IPv6 or both and your sub-net mask, it also shows your default gateway this can be the IP address of your router.

ipconfig /all - Similar like ipconfig but with more information like: DNS Servers, Host Names, Physical Address(MAC), and Tunneling Adapters.

ipconfig /release and ipconfig /renew - Most of us Gamers may know about this already or anyone that been having annoying internet issues. This command releases your configuration with your network device(Hub, Switch, Router) its like a reset button and forgetting information like Default Gateway, IP Address, DNS; now the second command allows you to renew a new set of information from your network device.

ipconfig/flushdns - This flushes any DNS that is cached on your system.

ipconfig/displaydns - This gives a whole list of DNS servers that is cached(saved) on your system.

netstat - This gives you a list of all connections you are connected right now. (Active Connections)

netstat -a - Similar like netstat but it lists you all the connections and the open ports you are listening, the picture below gives you an idea.


TASKKILL - Kill certain task or process, type in TASKLIST to give you a list of running processes and services.

No comments:

Post a Comment