Reset generale consigliato, solo schede fisiche attive:
:>>
Get-NetAdapter -Physical |
Where-Object { $_.Status -eq "Up" } |
Restart-NetAdapter -Confirm:$false
>>:
Resettare proprio tutte le schede abilitate, incluse virtuali/VPN/Tailscale:
:>>
Get-NetAdapter |
Where-Object { $_.Status -ne "Disabled" } |
Restart-NetAdapter -Confirm:$false
<<:
Test completo delle schede configurate:
:>>
Write-Host "`n[SCHEDE]"
Get-NetAdapter |
Sort-Object Name |
Select-Object Name,InterfaceDescription,Status,LinkSpeed,MacAddress |
Format-Table -AutoSize
Write-Host "`n[IP / GATEWAY / DNS]"
Get-NetIPConfiguration |
Select-Object InterfaceAlias,IPv4Address,IPv4DefaultGateway,DNSServer |
Format-List
Write-Host "`n[ROUTE PRINCIPALI]"
Get-NetRoute -AddressFamily IPv4 |
Where-Object {
$_.DestinationPrefix -eq "0.0.0.0/0" -or
$_.DestinationPrefix -eq "192.168.1.0/24"
} |
Sort-Object DestinationPrefix,RouteMetric,InterfaceMetric |
Format-Table DestinationPrefix,NextHop,InterfaceAlias,RouteMetric,InterfaceMetric -AutoSize
Write-Host "`n[ROUTE INTERNET]"
Find-NetRoute -RemoteIPAddress 1.1.1.1 |
Format-Table InterfaceAlias,IPAddress,NextHop,RouteMetric,InterfaceMetric -AutoSize
Write-Host "`n[TEST INTERNET]"
Test-NetConnection 1.1.1.1 -InformationLevel Detailed |
Select-Object ComputerName,InterfaceAlias,SourceAddress,PingSucceeded |
Format-List
Write-Host "`n[TEST DNS]"
Resolve-DnsName google.com |
Select-Object -First 5 Name,IPAddress |
Format-Table -AutoSize
<<:
============================================================================================================
Comandi dedicati alla mia scheda 2.5GB
Il primo leggero e senza riavvio:
:>>
Clear-DnsClientCache
ipconfig /flushdns
arp -d *
Restart-NetAdapter -Name "Ethernet 2.5GB USB" -Confirm:$false
<<:
e poi controllare con:
:>>
Find-NetRoute -RemoteIPAddress 1.1.1.1
Test-NetConnection 1.1.1.1 -InformationLevel Detailed
<<:
un reset piΓΉ profondo dello stack rete, da PowerShell amministratore::
:>>
netsh winsock reset
netsh int ip reset
shutdown /r /t 0
<<: