Tuesday, July 24, 2012

Windows Operating Systems Commands

You may probably already known how to get information about your computer using different tools such as System Information . For this post, I thought it would be helpful to share how to view system information directly from the Command Prompt. These are some of the commands that many professionals use on day to day basis. Hope this list is useful.

Ipconfig
Used to get the TCP/IP config values, mainly used to get the IP address of the local machine. It also displays all the IP addresses assigned to that machine.


MSConfig

Used to display windows booting parameters, initial system loading programs info

Ping
Ping is a simple command to test the quality of the network connection between a host and the server. It gives latency and Time to Lift parameter values

Tracert
It gives how many hops each packet takes to reach the given host name

Pathping
Another command somewhat similar to both tracert and ping as this will first list the number of hops between host and the server and then ping every router in between waiting for the response to conclude the connection type.

Net
Used to start, stop or view some network operations

hostname
Displays the Microsoft networking computer name.

Route
Used to manipulate TCP/IP routing information.

Netstat
Get current tcp/ip connection and ports info

Finger
Displays information about the user

Getmac
Used to get the MAC address of the system connected to the network, available in Win7, vista and XP.

cmd
To open another command shell with in cmd shell. Type exit to come out inner shell.

netsh int ip reset all
To quickly reset your NIC back to DHCP with no manual settings,

systeminfo | more
To quickly generate a text summary of your system

netsh trace start capture=yes tracefile=c:\capture.etl
If you need to run a trace without Netmon or Wireshark then run the above command, it will save the trace into capture.etl file

once tracing is completed execute, "netsh trace stop"

netstat -ano 1
Here’s a simple way to see all open network connections, refreshing every second:

shutdown -r -t 0 -m \\localhost or IP address
You can use the shutdown to shutdown or reboot a machine, including your own, in a simple scheduled task


For most of the windows commands you can get help around its usage by appending /? to the command

For example: to get help on how to use hostname command and its parameters type

C:\>hostname /?



Please leave your comments.

No comments:

Post a Comment