Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 36188

PowerTip: Use PowerShell to Disable Quickly All Net Adapters

$
0
0

Summary: Use Windows PowerShell 3.0 to quickly disable all network adapters on a laptop.

Hey, Scripting Guy! Question How can I easily disable all network adapters on my Windows 8 laptop with Windows PowerShell 3.0?

Hey, Scripting Guy! Answer Use the Get-NetAdapter cmdlets to retrieve all network adapters and pipe the results to the Disable-NetAdapter cmdlets. Make sure you suppress the confirmation prompts, as shown here.

Get-NetAdapter | Disable-NetAdapter -Confirm:$false

Note   The above command requires Admin rights.

 


Viewing all articles
Browse latest Browse all 36188

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>