Creating WlanXML

Assuming that you are using a Custom Policy, there are two steps to creating the XML to place within the <Data></Data> for the WiFi CSP WlanXML node:

  1. Export XML from an existing profile
  2. Encode the XML so that it can be processed by the OMA-DM client

Export XML from an existing profile

If you are migrating from Group Policy management to MDM management, then you probably already have a device configured with the needed WiFi profile that you can use to export the XML.

To export XML from an existing profile, perform the following steps from an existing GPO-managed device:

  1. Open Command Prompt
  2. Type netsh wlan export profile name=enter the name of the interface here

Encode the XML so that it can be processed by the OMA-DM client

  1. Open the exported XML with Notepad++ or the XML editor of your choice
  2. While there are a lot of fancier ways to handle the encoding, the simplest way is to do a replace all for the following three items –
    1. < is replaced with <
    2. > is replaced with >
    3. is replaced with

If you are using Custom XML, paste the resultant XML between the <Data></Data> and push the policy via the MDM of your choice.

In a separate post, I will share information about where to confirm that your policies have been applied.

Join the Conversation

2 Comments

Leave a comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: