Public/Reset-NetworkAdapter.ps1
function Reset-NetworkAdapter { <# .SYNOPSIS -Taylor Lee Modified 05172019 .DESCRIPTION Reset a specified interface .Parameter Interface Interface to be disabled and enabled .EXAMPLE Reset-NetworkAdapter -interface "Local Area Connection" .Link Reset-NetworkStack .Link https://github.com/TheTaylorLee/AdminToolbox #> [CmdletBinding()] param ( [Parameter(Mandatory = $true)]$Interface ) #Check For Admin Privleges Get-Elevation netsh.exe interface set interface $Interface admin=disable netsh.exe interface set interface $Interface admin=enable } |