Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How To Toggle Airplane Mode in Windows 8 from CMD or PowerShell

After reviewing multiple posts on the internet, I still cannot find a solution that will allow me to toggle AirPlane mode for Windows 8 from either CMD or PowerShell.

Does anybody have a solution that expressly uses either of these options?

like image 222
Danijel-James W Avatar asked Dec 04 '13 04:12

Danijel-James W


1 Answers

I am not aware of a way to toggle the airplane switch. But you can easily turn off all your radios using powershell in windows 8 using the Network Adapter Cmdlets

Use Get-NetAdapter to see all your adapters, bluetooth\wifi\ethernet

Get-NetAdapter 

You can disable a specific adapter by its index\name\description:

Disable-NetAdapter -Name "Wi-Fi"

Or you can just disable them all like so:

Disable-NetAdapter *

And turn them back on

Enable-NetAdapter *

Note: You will need to run Powershell as admin to execute the Disable-NetAdapter and Enable-NetAdapter

like image 120
malexander Avatar answered Nov 09 '22 03:11

malexander