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)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more