DEV Community

Cover image for Powershell - Enable/Disable Internet Adapters
Dan Wheeler
Dan Wheeler

Posted on

Powershell - Enable/Disable Internet Adapters

Run a Powershell command prompt as your Admin account and run:

Get-NetAdapter
Enter fullscreen mode Exit fullscreen mode

Make note of the name of the adapter you want to disable/enable and then type either of the following depending on what you need - substituting the part in <ADAPTER_NAME> with the name of the adapter you wish to change:

Disable-NetAdapter -Name "<ADAPTER_NAME>" -Confirm:$false

Enable-NetAdapter -Name "<ADAPTER_NAME>" -Confirm:$false
Enter fullscreen mode Exit fullscreen mode

Top comments (0)