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

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


A more elegant solution is:

get-netadapter wi-fi | restart-netadapter