Advanced XML Setup Script


On this page, there are examples of XML scripts for any Windows Mobile device, and examples for devices with Windows Mobile 6.1 or later.

Scripts for all Windows Mobile Devices

The following script is a sample advanced XML script that does three things:

  • Sets up the GPRS connection
  • Adds a browser favorite for www.something.com
  • Sets up MMS settings:
    • ISP Name: XYZ Inc.
      Gateway: 10.10.10.22
      MMSC URI: http://mms.xyz.com
      GPRS APN: internet.xyz.com
      User name: nnn
      Password: ppp

<wap-provisioningdoc>

<characteristic type="CM_GPRSEntries">
 <characteristic type="XYZ MMS">
  <parm name="DestId" value="{F28D1F74-72BE-4394-A4A7-4E296219390C}" />
  <parm name="UserName" value="nnn" />
  <parm name="Password" value="ppp" />
  <characteristic type="DevSpecificCellular">
   <parm name="GPRSInfoAccessPointName" value="internet.xyz.com" />
  </characteristic>
 </characteristic>
</characteristic>

<characteristic type="CM_GPRSEntries">
 <characteristic type="XYZ Internet">
  <parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
  <parm name="UserName" value="nnn" />
  <parm name="Password" value="ppp" />
  <characteristic type="DevSpecificCellular">
   <parm name="GPRSInfoAccessPointName" value="internet.xyz.com" />
  </characteristic>
 </characteristic>
</characteristic>

<characteristic type="CM_GPRSEntries">
 <characteristic type="XYZ WAP">
  <parm name="DestId" value="{7022E968-5A97-4051-BC1C-C578E2FBA5D9}" />
  <parm name="UserName" value="nnn" />
  <parm name="Password" value="ppp" />
  <characteristic type="DevSpecificCellular">
   <parm name="GPRSInfoAccessPointName" value="internet.xyz.com" />
  </characteristic>
 </characteristic>
</characteristic>

<characteristic type="BrowserFavorite">
 <characteristic type="Something">
  <parm name="URL" value="http://www.something.com/"/>
  <parm name="Order" value="0"/>
 </characteristic>
</characteristic>

<characteristic type="Registry">
 <characteristic type="HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\mm1">
  <parm name="2" value="44000" datatype="string" />
 </characteristic>
</characteristic>

<characteristic type="Registry">
 <characteristic type="HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\mm1">
  <parm name="TotalSettings" value="2" datatype="integer" />
  <parm name="DefaultSetting" value="2" datatype="integer" />
 </characteristic>
</characteristic>

<characteristic type="Registry">
  <characteristic type="HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\UI">
   <parm name="ConnectionVia" value="Secure WAP Network" datatype="string" />
 </characteristic>
</characteristic>

<characteristic type="Registry">
 <characteristic type="HKLM\SOFTWARE\ArcSoft\ArcSoft MMS UA\Config\mm1\44000">
  <parm name="SendDefault" value="102400" datatype="integer" />
  <parm name="RecvDefault" value="102400" datatype="integer" />
  <parm name="MmscURI" value="http://mms.xyz.com" datatype="string" />
  <parm name="Gateway" value="10.10.10.22" datatype="string" />
  <parm name="Name" value="xyz MMSC" datatype="string" />
  <parm name="GatewayPort" value="9201" datatype="integer" />
</characteristic>
</characteristic>

</wap-provisioningdoc>

Scripts for Devices with Windows Mobile 6.1 or later

The following scripts are only for Windows Mobile 6.1 devices. Please see http://msdn.microsoft.com/en-us/library/bb882210.aspx for more information and examples.

Disable Bluetooth

<wap-provisioningdoc>
<characteristic type="NetworkPolicy">
 <characteristic type="Bluetooth">
    <characteristic type="Settings">
      <parm name="Disabled" value="1"/>
    </characteristic>
  </characteristic>
</characteristic>
</wap-provisioningdoc>

Enable Bluetooth

<wap-provisioningdoc>
<characteristic type="NetworkPolicy">
  <characteristic type="Bluetooth">
    <characteristic type="Settings">
      <parm name="Disabled" value="0"/>
    </characteristic>
  </characteristic>
</characteristic>
</wap-provisioningdoc>

Disable Camera

<wap-provisioningdoc>
<characteristic type="Camera">
      <parm name="Disable" value="-1"/>
   </characteristic>
</wap-provisioningdoc>

Enable Camera

<wap-provisioningdoc>
   <characteristic type="Camera">
      <parm name="Disable" value="0"/>
   </characteristic>
</wap-provisioningdoc>

Disable Email

<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="4148" value="0"/>
</characteristic>
</wap-provisioningdoc>

Enable Email

<wap-provisioningdoc>
<characteristic type="SecurityPolicy">
<parm name="4148" value="1"/>
</characteristic>
</wap-provisioningdoc>

Block Applications

<wap-provisioningdoc>
<characteristic type="SoftwareDisable">
  <characteristic type="DisabledSystemFiles">
    <parm name="calc.exe" value="These files have been blocked." />
    <parm name="pword.exe" />
  </characteristic>
</characteristic>
</wap-provisioningdoc>

Unblock Applications

<wap-provisioningdoc>
<characteristic type="SoftwareDisable">
  <characteristic type="DisabledSystemFiles">
    <noparm name="pxl.exe" />
    <noparm name="pword.exe" />
  </characteristic>
</characteristic>
</wap-provisioningdoc>

POP3 and IMAP4 Email

<wap-provisioningdoc>
<characteristic type="EMAIL2">
   <characteristic type="{D671C70B-8EE3-4881-8045-2AEE6F731B55}">
      <parm name="SERVICENAME" value="MyIMAP"/>
      <parm name="SERVICETYPE" value="IMAP4"/>
      <parm name="INSERVER"    value="Imapserver"/>
      <parm name="OUTSERVER"   value="smtpserver"/>
      <parm name="AUTHNAME"    value="alias"/>
      <parm name="AUTHSECRET"  value="password"/>
      <parm name="DOMAIN"      value="oceana"/>
      <parm name="REPLYADDR"   value="emailAddress"/>
   </characteristic>
   <characteristic type="{4FE84006-9E8A-4158-864D-A2E1E98C3786}">
      <parm name="SERVICENAME" value="MyPOP"/>
      <parm name="SERVICETYPE" value="POP3"/>
      <parm name="INSERVER"    value="popserver"/>
      <parm name="OUTSERVER"   value="smtpserver"/>
      <parm name="AUTHNAME"    value="alias"/>
      <parm name="AUTHSECRET"  value="password"/>
      <parm name="DOMAIN"      value="oceana"/>
      <parm name="REPLYADDR"   value="emailAddress"/>
   </characteristic>
</characteristic>
</wap-provisioningdoc>

Set Speed Dial Number

<wap-provisioningdoc>
<characteristic type="SpeedDial">
  <characteristic type="Firstname Lastname">
     <parm name="Key" value="2"/>
      <parm name="Tel" value="4255550111"/>
  </characteristic>
</characteristic>
</wap-provisioningdoc>

Exchange ActiveSync

<wap-provisioningdoc>
   <characteristic type="Sync">
      <characteristic type="Settings">
         <parm name="BodyTruncation" value="1024"/>
         <parm name="PeakStartTime" value="0800"/>
         <parm name="PeakEndTime" value="1800"/>
         <parm name="PeakFrequency" value="0"/>
         <parm name="AutoSyncWhenCradled" value="1"/>
         <parm name="SyncAfterTimeWhenCradled" value="120"/>
      </characteristic>
      <characteristic type="Connection">
         <parm name="Domain" value="thephone-company"/>
         <parm name="Server" value="TestServer"/>
         <parm name="User" value="username"/>
      </characteristic>
      <characteristic type="Mail">
         <parm name="EmailAgeFilter" value="1"/>
         <parm name="Enabled" value="1"/>
         <parm name="MailBodyTruncation" value="1024"/>
         <parm name="MailFileAttachments" value="1024"/>
      </characteristic>
      <characteristic type="Calendar">
         <parm name="CalendarAgeFilter" value="1"/>
         <parm name="Enabled" value="1"/>
      </characteristic>
      <characteristic type="Contacts">
         <parm name="Enabled" value="1"/>
      </characteristic>
   </characteristic>
</wap-provisioningdoc>

GPRS Setup

<wap-provisioningdoc>
<characteristic type="CM_GPRSEntries">
   <characteristic type="GPRS1">
      <parm name="DestId"   value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
       <characteristic type="DevSpecificCellular">
         <parm name="BearerInfoValid" value="1" />
         <parm name="GPRSInfoValid" value="1" />
         <parm name="GPRSInfoProtocolType" value="2" />
         <parm name="GPRSInfoL2ProtocolType"  value="PPP" />
         <parm name="GPRSInfoAccessPointName"  value="internet3.thephone-company.com" />
         <parm name="GPRSInfoAddress"  value="" />
         <parm name="GPRSInfoDataCompression"  value="1" />
         <parm name="GPRSInfoHeaderCompression"  value="1" />
         <parm name="GPRSInfoParameters" value="" />
      </characteristic>
    </characteristic>
  </characteristic>
</wap-provisioningdoc>

Set up a Proxy Server

<wap-provisioningdoc>
<characteristic type="CM_ProxyEntries">
    <characteristic type="HTTP-{A1182988-0D73-439e-87AD-2A5B369F808B}">
      <parm name="SrcId" value="{A1182988-0D73-439e-87AD-2A5B369F808B}" />
      <parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
      <parm name="Proxy" value="proxyservername:80" />
    </characteristic>
</characteristic>
</wap-provisioningdoc>

Backlight Settings AC and Battery

<wap-provisioningdoc>
<characteristic type="DeviceInformation">
   <parm name="BacklightACTimeout" value="300" />
</characteristic>
<characteristic type="DeviceInformation">
   <parm name="BacklightBatteryTimeout" value="60" />
</characteristic>
</wap-provisioningdoc>