Field workflow to isolate Windows network failures across link, DHCP, IP, DNS, routing, firewall and application layers.
Diagnostic order
Get-NetAdapter | Select-Object Name,Status,LinkSpeedStart by confirming the expected interface is Up.
ipconfig /allCheck DHCP, mask, gateway and DNS before Internet tests.
Test-NetConnection serveur.exemple.local -Port 443An application port test is more meaningful than ping alone.
DHCP & addressing
ipconfig /allCheck DHCP Enabled, DHCP Server, lease, gateway and DNS.
ipconfig /releaseIntentionally drops the DHCP lease; avoid on remote-only sessions.
ipconfig /renewImmediately tests communication with DHCP.
A 169.254.x.x address usually means no IPv4 DHCP lease was obtained.
DNS
Get-DnsClientServerAddress -AddressFamily IPv4Verify expected DNS servers are configured on the active interface.
Resolve-DnsName exemple.frShows responses and the resolver used.
Resolve-DnsName exemple.fr -Server 192.168.1.10Compares resolvers without changing client configuration.
ipconfig /flushdnsUse after fixing a record or cached negative response.
Routes & neighbors
route printCheck default route and more specific routes.
Get-NetRoute -AddressFamily IPv4 | Sort-Object RouteMetricShows interface, metric and next hop.
arp -aChecks whether gateway or LAN peers resolve to MAC addresses.
tracert 8.8.8.8Shows where traffic stops progressing; not every router answers ICMP.
Ports & sockets
Test-NetConnection 192.168.1.20 -Port 445Tests TCP establishment to the target service.
Get-NetTCPConnection -State Listen | Sort-Object LocalPortConfirms a local service is actually listening.
Get-NetTCPConnection -State Established | Select-Object LocalAddress,LocalPort,RemoteAddress,RemotePort,OwningProcessMap OwningProcess to Get-Process to identify the application.
Get-NetTCPConnection -LocalPort 443 -ErrorAction SilentlyContinue | Select-Object OwningProcessUseful when a port is unexpectedly occupied.
SMB & shares
Test-NetConnection serveur -Port 445Separates SMB issues from general DNS issues.
Get-SmbMappingLists client-side SMB mappings.
Get-SmbSessionRun on a file server to view connected clients.
Get-SmbConnection | Select-Object ServerName,ShareName,Dialect,EncryptedChecks SMB dialect and effective encryption.
Wi-Fi
netsh wlan show interfacesShows SSID, BSSID, signal, channel and negotiated rate.
netsh wlan show profilesLists known profiles without exposing secrets.
netsh wlan show wlanreportGenerates an HTML report for drops and association failures.
Get-NetAdapter -Name Wi-Fi | Format-List Name,InterfaceDescription,DriverInformation,DriverVersionCompare driver version with the vendor recommendation.
Controlled resets
ipconfig /flushdnsLow-impact reset.
netsh winsock resetUsually requires reboot and may affect network agents.
netsh int ip reset C:Tempip-reset.logReserve for suspected stack corruption after capturing current config.
Get-NetFirewallProfile | Select-Object Name,Enabled,DefaultInboundAction,DefaultOutboundActionDo not disable the firewall globally just to test.
Key points
- Start with link and addressing before DNS or Internet.
- Blocked ping does not prove a TCP service is unavailable.
- On AD members, directly configured public DNS is a common domain issue.
- Before Winsock/IP resets, capture configuration and keep fallback access.