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].
Hi
What is the equivalent API for the following netsh command?
“netsh wlan show interface”
Thanks
Sayee