Microsoft Technical Takeoff: Windows and Microsoft Intune
Oct 24 2022 07:00 AM - Oct 27 2022 12:00 PM (PDT)

determine WPA2 enterprise EAP type for existing wifi network

Occasional Visitor

I have working C++ code using wlanapi that connects to a WPA2 enterprise wifi network using EAP type 21, EAP-TTLS. However, this obviously won't work for wifi networks with other EAP types. How can the EAP type be determined programmatically for an existing wifi network?

The windows 10 OS is able to do this: When you first connect, a profile is created. Using the netsh command line utility the profile XML can be exported to a file, where the correct EAP type can be found.

0 Replies