Short answer Capture the current configuration, then reset Winsock, TCP/IP and DNS client state.
When to use it
For a single broken client or after removing VPN/network software.
Capture first
ipconfig /all > "$env:USERPROFILE\Desktop\network-before.txt"
route print >> "$env:USERPROFILE\Desktop\network-before.txt"Note
Protect static settings and routes.
Reset stack
netsh winsock reset
netsh int ip reset
ipconfig /flushdns
Restart-ComputerNote
Requires elevation.
Caution
Record static IP, DNS, proxy and custom routes before resetting.