Partager via


Setting a Security Policy Example

4/8/2010

To change the default security settings you must create a custom security policy document with provisioning XML to specify the security policies and policy values for the Windows Mobile device, as shown in the following example. The name and value attributes specify the policy ID and value, respectively. For certain security policies, the value is a security role that you reference using a decimal value.

Note

If the provisioning document will be delivered in a Cab Provisioning Format (.cpf) file, the file must be named _setup.xml.

Note

An XML provisioning document may not install on a Windows Mobile device if the .cab file containing the document is not signed. You must use the Microsoft Authenticode tools to sign .cab files. For information about Microsoft Authenticode tools, see the Authenticode documentation under "Security" in the MSDN library.

Code Example

The following example shows how to disable Service Loading (SL) by changing from the default value to zero (0). For more information about this policy, see Security Policy Settings.

<characteristic type="SecurityPolicy">
   <parm name="4108" value="0"/>
</characteristic>

Remarks

One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the OMA Client Provisioning file. **

See Also

Tasks

SecurityPolicy Configuration Service Provider Examples for OMA Client Provisioning