CMD Command Line for XP and Vista

 

 

In Windows 7, check to see how you computer is on the internet and what ports are open with the cmd below:

netstat -abf 5 > activity.txt 

Below are command lines for CDM tool See this link for more info http://www.computerhope.com/msdos.htm#02

 

Arp -a

When used with the -a parameter, the ARP command displays the ARP cache, which stores the IP and MAC addresses of the computers that most recently accessed the system—or in this case, those computers that responded to the Ping command Example

C:\Documents and Settings\Owner>arp -a
Interface: 192.168.1.2 --- 0x2
  Internet Address      Physical Address      Type
  192.168.1.1           00-0c-41-9c-24-a7     dynamic
  192.168.1.8           00-17-c4-1a-8e-91     dynamic

Ping

ping 192.168.1.2

 

NSLOOKUP

Also NSLOOKUP name - gives DNS server,

nslookup www.yahoo.com
or
nslookup 204.228.150.3
Server: ns.computerhope.com
Address: 1.1.1.1
Name: www.computerhope.com
Address: 204.228.150.3

NBTSTAT

NBTSTAT -a 192.168.1.8 Will give a NETBios table and mac ID

 

tracert

tracert www.yahoo.com will give the hopps from host to server

 

pathping

pathping www.johnkosh.com give a completed table of servers to site

 

Net use and Net Session

net use z: \\mainsystemj /user:owner
Net session /delete

Attrib

In some cases if a file gets sent from one system to another via xxpcoy or xcopy it will attach a hidden and read only command. This usually happens between OS like XP and Vista. You can not fix this issues via windows, you must go to the CMD window and remove all attributes at the same time. thanks MS for another bug. I listed the commands below:

c:\attrib c:\one.two -s -h -r

This will work for files and directories.

Here are all the other commands:

ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [[drive:] [path] filename] [/S [/D]] + Sets an attribute. - Clears an attribute. R Read-only file attribute. A Archive file attribute. S System file attribute. H Hidden file attribute. /S Processes files in all directories in the specified path. /D Process folders as well.