Checking if Windows Computer is connected to WiFi via Command Line

If you wish to know if a Windows computer is connected to WiFi or not via command line, execute below command.

  • WMIC /node:”ComputerName” path WIN32_NetworkAdapter where (NetConnectionID=”Wi-Fi”) get NetConnectionStatus

The above command will return “2” for NetConnectionStatus if WiFi is connected on a Windows Client Computer.

About Nirmal Sharma

Nirmal Sharma is a MCSEx3, MCITP and Microsoft MVP in Directory Services. He specializes in directory services, Microsoft Azure, Failover clusters, Hyper-V, and System Center products and has been involved with Microsoft Technologies since 1994. In his spare time, he likes to help others and share some of his knowledge by writing tips and articles on various sites and contributing to Health Packs for ADHealthProf.ITDynamicPacks.Net solutions. Nirmal can be reached at [email protected].

About The Author

1 thought on “Checking if Windows Computer is connected to WiFi via Command Line”

  1. Sayee Subramania

    Hi

    What is the equivalent API for the following netsh command?
    “netsh wlan show interface”

    Thanks
    Sayee

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top