Monday, May 8, 2023

Disable/Enable network interfaces on Windows

If you are like me, you often need to disable and re-enable interfaces on your windows machine to test out new networks, etc. I find that Microsoft keeps hiding the ethernet settings deeper and deeper in menus, so I decided to start utilizing Powershell to do this. Powershell isn't my strength, but it is useful.

Open up PowerShell as Administrator and run the following:

Disable-NetAdapter -Name "Adapter Name" 
Enable-NetAdapter -Name "Adapter Name" 

No comments:

Post a Comment