Edit

Share via


Non-Broadcast profile sample

The non-broadcast profile sample can be used to connect to networks which do not broadcast their network name (SSID).

This sample profile is configured to use Wi-Fi Protected Access 2 security running in Personal mode (WPA2-Personal). Advanced Encryption Standard (AES) is used for encryption. Profiles that use other security and cipher types can also be configured as non-broadcast profiles.

Note

We don't recommended configuring Wi-Fi networks to not broadcast its SSID, as there are minimal security benefits (it's trivial to find the network name) and clients may have issues connecting and roaming.

<?xml version="1.0" encoding="US-ASCII"?>
<WLANProfile xmlns="https://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>WPA2PSK</authentication>
                <encryption>AES</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>