This documentation is archived and is not being maintained.

How to: Provision a Device with a Security Model 

You can set the security model of a device explicitly to test an application under the various security models. If the device is already locked by the original equipment manufacturer (OEM), then provisioning a different security model might not be possible. However, if the device is not locked, you can provision it with any security model.

The following security model XML files are included with Visual Studio 2005. The default location is \Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools\SecurityModels.

  • Locked.xml sets the following two-tier security model:

    • Prompt before running applications.

    • Do not run unsigned applications.

  • Prompt.xml sets the following two-tier security model:

    • Prompt before running applications.

    • Run unsigned applications as unprivileged.

  • Open.xml sets the following one-tier security model:

    • Do not prompt.

    • Run all applications, including unsigned, as privileged.

For more information, see Provisioning for Windows Mobile-Based Devices.

The following components are needed in order to provision the device with a security model:

  • ActiveSync.

  • RapiConfig.exe, located by default at \Program Files\Microsoft Visual Studio 8\SmartDevices\SDK\SDKTools.

  • Security XML file.

To provision a device with a security model

  1. Establish an ActiveSync connection to the device.

  2. Type the following command at the command prompt, where securityfile.xml is the security model XML file:

    RapiConfig.exe /P /M <securityfile.xml>
    

See Also

Show: