Software-OK
≡... News | ... Home | ... FAQ | Impressum | Contact | Listed at | Thank you |

  
HOME ► Faq ► FAQ - Command Prompt - Windows 11, 10, etc. ► ««« »»»

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!
2.) ... Deactivating and activating the network adapter! 
3.) ... What to watch out for when deactivating the network adapter!




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)


PS:
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!
List network adapters via NETSH!

-
▲ Back to the top ▲




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 again

(... see Image-2 Point 1 to 6)


(Image-2) Deactivate and activate network adapter via command prompt!
Deactivate and activate network adapter via command prompt!

-
▲ Back to the top ▲



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! 


Or easy in Device Manager:

Windows + R and devmgmt.msc  (... see Image-3 Point 1 to 5)

 
When deactivating network adapters, there are a few important points to consider, especially if it is the primary network adapter used for the connection to the Internet or other network resources. Here are some detailed tips:

 
1. Make sure there are no important activities going on:
 
Before disabling a network adapter, you should make sure that no important network activities such as downloads, file transfers, or video conferences are taking place. Disabling the adapter may pause or stop these activities.
 
2. Alternative ways to connect:

 
If you disable the primary network adapter, consider alternative ways to connect to the Internet or network. For example, this could be a WiFi adapter, a cellular data plan, or an Ethernet adapter on another device.
 
3. Impact on other users:

 
If you disable a network adapter on a shared computer, keep in mind that this may also affect other users of the system. Make sure no one else is relying on the network adapter at this time.
 
4. System services and applications:
 
Some system services and applications may depend on a specific network adapter. Before disabling an adapter, check whether it could affect important services or applications. Some applications may not function properly if the adapter is disabled.
 
5. Scheduled tasks:

Check if there are any scheduled tasks that depend on a specific network adapter. These tasks may not be performed if the adapter is disabled. Adjust your planned tasks if necessary.
 
6. Traceability of changes:
 
If you disable the network adapter, you should be aware of how to undo the changes. Make sure you know how to re-enable the adapter if necessary.
 
7. Administrative rights:
 
You need administrative rights to disable network adapters. Make sure you have the necessary permissions before attempting to disable an adapter.
 
By taking these points into account, you can ensure that disabling network adapters does not have any undesirable effects on your system and that you can quickly regain access to a working network connection when needed.

 

(Image-3) Deactivate, activate and list network adapters in the Device Manager!
Deactivate, activate and list network adapters in the Device Manager!

-
▲ Back to the top ▲






FAQ 122: Updated on: 9 April 2024 05:43 Windows
Windows-Console

Hard drive speed with command prompt or PowerShell!


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
Windows-Console

Map network drives via the command prompt under Windows!


Connecting or disconnecting network drives via the command prompt under Windows 11, 10, or MS Server without mouse clicks is a very practical option
Windows-Console

Optimize drives about the command prompt on MS Windows OS!


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
Windows-Console

Export a list of running processes as a text file with cmd.exe!


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
Windows-Console

Generate file hash via command prompt!


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
Windows-Console

Adjust lock screen duration from command prompt!


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
Windows-Console

Directly open command prompt in each folder!


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
Asked questions on this answer:
Keywords: windows, console, deactivate, activate, list, network, adapters, command, prompt, listing, powershell, Questions, Answers, Software




  

  + Freeware
  + Order on the PC
  + File management
  + Automation
  + Office Tools
  + PC testing tools
  + Decoration and fun
  + Desktop-Clocks
  + Security

  + SoftwareOK Pages
  + Micro Staff
  + Freeware-1
  + Freeware-2
  + Freeware-3
  + FAQ
  + Downloads

  + Top
  + Desktop-OK
  + The Quad Explorer
  + Don't Sleep
  + Win-Scan-2-PDF
  + Quick-Text-Past
  + Print Folder Tree
  + Find Same Images
  + Experience-Index-OK
  + Font-View-OK


  + Freeware
  + MatriX.CoronaKO
  + Find.Same.Images.OK
  + 3D.Benchmark.OK
  + PhotoResizerOK
  + Office.Files.Images
  + Film.Strip.Explorer
  + WinScan2PDF
  + DontSleep
  + ExperienceIndexOK
  + PAD-s


Home | Thanks | Contact | Link me | FAQ | Settings | Windows 10 | gc24b | English-AV | Impressum | Translate | PayPal | PAD-s

 © 2025 by Nenad Hrg softwareok.de • softwareok.com • softwareok.com • softwareok.eu


► Windows 11 detect auto HDR support? ◄
► Difference between Xamarin and React Native? ◄
► Where do I enable wireless display in Windows 11 to project onto TV? ◄
► Activate / deactivate additional Windows features in Windows-11, -12! ◄


This website does not store personal data. However, third-party providers are used to display ads,
which are managed by Google and comply with the IAB Transparency and Consent Framework (IAB-TCF).
The CMP ID is 300 and can be individually customized at the bottom of the page.
more Infos & Privacy Policy

....