Non-Broadcast Profile Sample
The non-broadcast profile sample can be used to connect to networks which do not broadcast their network name or SSID.
This sample profile is configured to use Wi-Fi Protected Access security running in Personal mode (WPA-Personal). Temporal Key Integrity Protocol (TKIP) is used for encryption. Profiles that use other security and cipher types can also be configured as non-broadcast profiles.
<?xml version="1.0" encoding="US-ASCII"?> <WLANProfile xmlns="http://www.microsoft.com/networking/WLAN/profile/v1"> <name>SampleNonBroadcast</name> <SSIDConfig> <SSID> <name>SampleNonBroadcast</name> </SSID> <nonBroadcast>true</nonBroadcast> </SSIDConfig> <connectionType>ESS</connectionType> <connectionMode>auto</connectionMode> <MSM> <security> <authEncryption> <authentication>WPAPSK</authentication> <encryption>TKIP</encryption> <useOneX>false</useOneX> </authEncryption> </security> </MSM> </WLANProfile>
The shared key has been omitted from this sample profile. If you try to use this sample profile to connect to a network, you will be prompted to enter a shared key. You can avoid this prompt by adding a sharedKey child element to the security element immediately following the authEncryption element.
The following snippet shows a sharedKey element that contains an unencrypted key. You must replace the comment
<!-- insert key here --> with the actual unencrypted key before using this snippet in a profile.
<sharedKey> <keyType>passPhrase</keyType> <protected>false</protected> <keyMaterial> <!-- insert key here --> </keyMaterial> </sharedKey>
Build date: 11/29/2012