Last active
August 31, 2022 15:06
-
-
Save AhsenBaig/93d21e75af111dab90597e0cb56a98a4 to your computer and use it in GitHub Desktop.
Windows fix local net issues (renew, flushdns, netsh, winsock, etc.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FIX Net isues | |
## IPCONFIG - options | |
ipconfig /release | |
ipconfig /flushdns | |
ipconfig /renew | |
## NETSH - options | |
netsh int ip reset | |
netsh winsock reset | |
netsh winhttp reset proxy | |
netsh winhttp reset tracing | |
netsh winsock reset catalog | |
netsh int ipv4 reset catalog | |
netsh int ipv6 reset catalog | |
# # Get Windows servers on Domain | |
# #################### | |
# $serversraw=Get-ADComputer -Filter {(OperatingSystem -like "*windows*")} | |
# # Filter responsive | |
# #################### | |
# $serversup = $serversraw.name | where {Test-Connection $_ -quiet -count 1} | |
# # Flush DNS & reregister | |
# #################### | |
# Clear-DnsClientCache -cimsession $serversup | |
# Register-DnsClientCache -cimsession $serversup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment