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:
netsh winsock reset
netsh int ip reset
Note that this code requires Administrator privileges, and may require a system restart to take effect.
ReTweet this Tip!