Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $Adapter = ""
- #Take down all the Adapters
- foreach($a in Get-NetAdapter)
- {
- $Adapter += "," + $a.Name ;
- Disable-NetAdapter -Name $a.Name;
- }
- #Reset Adaptors settings
- netsh int ip reset C:\netsh.log.txt
- netsh winsock reset
- #empty ARP tables
- arp -d *
- #flush DNS
- ipconfig /flushdns
- #bring Adapter back up
- foreach($a in $Adapter.SubString(1).Split(","))
- {
- Enable-NetAdapter -Name $a;
- }
Advertisement
Add Comment
Please, Sign In to add comment