Close

MS-DOS Commands

				
					curl -vvv -k https://virada-japan.com
				
			

This will display the HTML code of the web page

				
					ipconfig /displaydns | clip
				
			

Copy this code into Notepad

And you will see all the connections of the websites you have visited

				
					ipconfig /flushdns
				
			

To clean your DNS info

				
					ipconfig /all
				
			

To display all the IP addresses used by your computer

				
					ipconfig /renew
				
			

To renew all the DHCP IP addresses used by your computer

				
					nslookup virada-japan.com
				
			

To display the IP address of the website

				
					getmac /v
				
			

This gives you all the MAC addresses used by your PC

				
					powercfg /energy
				
			

This gives you details of your power supply used by your PC

Copy the result URL and paste it on the next line. This will open the file in a navigator (Chrome, Firefox, Edge…)

file:///C:/WINDOWS/system32/energy-report.html

				
					powercfg /batteryreport
				
			

This gives you details of your battery

Copy the result URL and paste it on the next line. This will open the file in a navigator (Chrome, Firefox, Edge…)

file:///C:/WINDOWS/system32/battery-report.html

				
					chkdsk /f /r
				
			

To check your hardisk

/r  to check for bad sectors

				
					Dism /Online /Cleanup-Image /CheckHealth
				
			

To check the health of your hard disk

				
					DISM /Online /Cleanup-Image /ScanHealth
				
			

To scan the health of your hard disk

				
					DISM /Online /Cleanup-Image /RestoreHealth
				
			

To restore the health of your hard disk

				
					sfc /scannow
				
			

The sfc /scannow command scans all protected system files and replaces damaged files with a cached copy

				
					assoc
				
			

This gives you information of the files extensions associations.
To change the behavior


To change the behavior of an extension

				
					assoc .mp4=VLC.vlc
				
			
				
					netsh wlan show wlanreport
				
			

This will create a report of all your network interfaces connected to the web

Copy the result URL and paste it on the next line. This will open the file in a navigator (Chrome, Firefox, Edge…)

file:///C:/ProgramData/Microsoft/Windows/WlanReport/wlan-report-latest.html

				
					netsh wlan show interface
				
			

This will show you the details of your WiFi device

				
					netsh interface show interface
				
			

This will show you the status of all your internet devices.

Status CONNECTED or DISCONNECTED

				
					
netsh interface ip show dnsservers
				
			

This will show you the DNS used by your computer and the gateway used

				
					
netsh advfirewall set allprofiles state off
				
			

Turn off your firewall

				
					
netsh advfirewall set allprofiles state on
				
			

Turn on your firewall

				
					
ping -t virada-japan.com
				
			

The command PING is to see if the IP address or the website is up or down

Here the option -t is to ping more than 10 times

				
					
tracert virada-japan.com
				
			

To see the routes used to join a website

				
					
tracert -d virada-japan.com
				
			

Same as before but do not resolve the domain names used. So it is quicker

				
					netstat
				
			

Netstat is a mixture of the terms network and statistics. It is a command line driven program. It provides basic statistics on all network activities and gives, for example, information on the port and address on which a connection (TCP, UDP) is established, but also information on which ports are open for requests.

				
					netstat -af
				
			

To see all the ports open

				
					netstat -o
				
			

To see all open processes

				
					route print
				
			

Show which gateway your PC used

				
					shutdown /r /fw /f /t 0
				
			

To shutdown your computer and to access the BIOS