powershellwindows-8command-linewindows-8.1

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?


Solution

  • 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