Windows
----------------------------------------------------- Get-NetAdapter -Name "*" Get-NetAdapter -Name "Wi-Fi" | Get-NetRoute Get-NetAdapter -Name "Wi-Fi" | Format-List -Property "*" ------------------------------------------------------------- Test-NetConnection 8.8.8.8 Test-NetConnection 1.1.1.1 -TraceRoute Test-NetConnection -ComputerName Google.com -CommonTCPPort HTTP Test-NetConnection -ComputerName Google.com -Port 80 Test-NetConnection -ComputerName "www.Google.com" -ConstrainInterface 5 -DiagnoseRouting -InformationLevel "Detailed" Test-NetConnection -ComputerName "www.Google.com" -port 443 Test-NetConnection -ComputerName Google.com Test-NetConnection -ComputerName Google.com -TraceRoute Test-NetConnection -InformationLevel Detailed Test-Netconnection Google.com -InformationLevel "Detailed" Test-NetConnection 172.217.17.78 -traceRoute -Hops 3 | select-object TraceRoute | foreach-object {test-connection $_.TraceRoute -count 1} Test-NetConnection Google.com -CommonTCPPort "Http" OR Test-NetConnection Google.com -Port 80 ------------------------------------------------------------------- Test-Connection -ComputerName 8.8.8.8, 1.1.1.1 Test-Connection -Source HYPV -ComputerName VM10 Test-Connection www.Google.com -Count 2 -BufferSize 128 -Delay 3 Test-Connection -Source 'SRV2', 'SRV1' -ComputerName 'www.Google.com' Test-Connection -ComputerName VM10 -Count 1 Test-Connection -ComputerName Google.com -Count 10 -Quiet -ErrorAction SilentlyContinue ------------------------------------------------------------------- netsh int ip reset netsh winsock reset netsh winsock show catalog :c:temp\report.txt netsh winsock show catalog > winsock-before.txt netsh winsock reset or netsh int ip reset ---------------very usefull command netsh interface ipv4 show --------------- html Wlan Report netsh wlan show netsh advfirewall firewall add rule name="TCP Port 6624" dir=in action=allow protocol=TCP localport=6624. Modify the appropriate values to match your app, e.g. the port number, the rule name, the protocol (TCP or UDP). To delete the rule, execute the command as follows. netsh advfirewall firewall delete rule name="TCP Port 6624" protocol=TCP localport=6624. netsh firewall show state Netstat -ab netsh advfirewall firewall show rule name=all verbose | findstr "LocalPort:" netsh advfirewall firewall add rule ? --------Wi-Fi password---------- netsh wlan show profile netsh wlan export profile folder=C:\ Key=clear Get-Content -Path C:\ ------Checking if the remote port is open with tcping-------- tcping Google.com 80 tcping tcping64 tcping64.exe -h www.rootctl.com tcping64.exe www.rootctl.com netstat -aon