Deactivate, activate, list network adapters via command prompt!
Deactivating, activating and listing the network adapters via command prompt or Powershell is quite easy to do under Windows 11, 10, ... and MS Server!
Everyone knows the simple standard procedure to ►► deactivate and activate network adapters under Windows
. Does something goes through the command lines in PowerShell or the command prompt,
that is the question. Clearly via netsh interface
commands, it is much too easy on Windows 11, 10, ... etc.!
1.) The listing of the network adapters under Windows via NETSH!
1. Start PowerShell as always or command prompt
2. To list the network adapters, use the command: netsh interface show interface
3. Optional: Get-NetAdapter | format-list << PowerShell only
to get more information about the adapters!
(... see Image-1 Point 1 to 4)
Netsh works via PowerShell and Command Prompt, but Copy Paste is easier with PowerShell. It can prove to be advantageous, especially with longer network adapter names!
| (Image-1) List network adapters via NETSH!
2.) Deactivating and activating the network adapter!
1. Start PowerShell or Command Prompt
(for this in administrative mode Ctrl + Shift + Enter , since admin rights are required)
2. As described above ► list network adapters
3. Deactivate the network adapter,
here in the example the WLAN: netsh interface set interface "Wi-Fi 4" disable
4. netsh interface show interface <<< list
5. activate the network adapter again: netsh interface set interface "Wi-Fi 4" enable
6. And list and check netsh interface show interface
(... see Image-2 Point 1 to 6
| (Image-2) Deactivate and activate network adapter via command prompt!
3.) What to watch out for when deactivating the network adapter!
It is of course easier to do this via the Windows device manager, but if you are creating a script or a batch file, for example, it can be helpful in automating and doing quick one-click tasks, as described above with command lines!
Windows + R
(... see Image-3 Point 1 to 5
| (Image-3) Deactivate, activate and list network adapters in the Device Manager!
FAQ 122: Updated on: 5 November 2021 20:14
You can simply test the hard drive speed with a command prompt or PowerShell under Windows 11, 10, or MS Server 2022, 2019, etc. There are many
Connecting or disconnecting network drives via the command prompt under Windows 11, 10, or MS Server without mouse clicks is a very practical option
Yes, and its easy to optimize drives on Windows 11, 10, from the command prompt using the defrag command Everyone probably knows the drive optimization
Its easy to export a list of running processes as a text file using the command prompts cmd.exe on Windows 11, 10, etc 1. exporting the running
Sometimes you need the SHA value of a file, in the command prompt you can create a file hash under Windows 11, 10, Hash algorithms: MD2 MD4 MD5 SHA1
Adjust lock screen duration from command prompt is a little-known option on Windows 11, 10, and MS Server OS Content: 1. The lock screen display
Here is the solution to open the command prompt directly in each folder without much effort on all Windows 11, 10, and MS Server operating systems
»» My question is not there in the FAQ
Keywords: windows, console, deactivate, activate, list, network, adapters, command, prompt, listing, powershell, Questions, Answers, Software