Resetting Winsock

by Sep 9, 2019

PowerShell can execute internal PowerShell commands and also regular console commands, so it’s not a bad thing to continue to use console commands for proven tasks.

For example, if you’d like to reset your winsocks, this would be a reliable solution:

#requires -RunAsAdministrator

netsh winsock reset
netsh int ip reset

Note that this code requires Administrator privileges, and may require a system restart to take effect.

Twitter This Tip! ReTweet this Tip!