Windows Commands
General Commands
> ncpa.cpl // Display network connection
> devmgmt.msc // Device Manager
> compmgmt.msc // Access Disk Mangement
> msconfig // Windows Start Up
> msinfo32
> perfmon // Network, Processor, Memory Stats Complicated
> resource monitor // User friendly for above
> C:\> D: // Syntax for changing to another drive!
> shutdown -r -f -t 00 // Shutdown system
> attrib -r -a -s -h *.* // Unhide all files in directory
> Win + R > netplwiz // Bypass login
Shift Right Click - To open folder in Command Line :)
IPERF
# ./iperf -s
# ./iperf -c 51.38.64.124 -p 5001 -t 10 -f m -i 1 -P 8
-p // port
-f m // Mbits
-t // Time
-i 1 // Interval in seconds
-b 1000M // 1GB
-b 100M // 100Mb
Diskpart
> diskpart > // Windows Disk Utility
> list disk // List disk numbers to work with
> select disk 3 // Select the disk to work with
> detail disk // Display disk parameters
> clean // Reset disk and MBR
> crate prtition primary // Create a primary partition
> select partition 1 // Select the 1st partition
> active // Make it active
> format fs=fat32 quick // Format - fs=ntfs
> assign // Assign it a drive letter (appears in windows explorer)
> exit
NOTE:-
64GB USB Key to large for some systems - diskpart cleaned it
Then in windows compmgmt.msc disk management created 8GB disk size!
Network Commands
> ping 4.2.2.2 -n 3 -l 1400 -f // -n number / -l length / -f dont fragment / -t continuous
> tracert -d 4.2.2.2 // -d do not resolve hostname
> pathping -q 5 4.2.2.2 // Combination of Ping and Tracert
> netstat -a -o -p tcp -b 3 // -a all / -o owning pid / -p proto / -b application / 3 sec
> netstat -afop tcp 5 > C:\tcp-activity.txt // Netstat output to a file
> netsh int ip reset resetlog.txt // Reset TCP settings
> ipconfig /flushdns // Flush DNS Records
> ipconfig /all /flushdns /release /renew
> arp -a -d //-a display all / -d delete all
> nslookup 'Return' set q=MX // set q=MX to check MX Record
> %SystemRoot%\system32\SHELL32.dll // Windows Icons Path
> route print // Display routing table
> add route 192.168.0.21 255.255.255.255 192.168.0.20 //add route (255.255.255.255! for single IP)
TELNET to test open ports
1. Enable Telnet in windows under (control panel/apps & features/programme & features/turn on)
2. > telnet 95.179.194.222 80
If port is OPEN you see a blank screen
If port is CLOSED you see Trying to connect....
Defrag & Scandisk
> defrag C: /A // Analyse selected disk
> defrag C: // Defrags Selected Disk
> sfc /scannow // Checks system files