Share via


rapiconfig.exe Access Denied

In case you are doing some Windows Mobile development on an HTC device, and you want to install the sample certificates onto your device or emulator. So, in C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Tools, you do

rapiconfig.exe /p sdkcerts.xml

you may see "Access Denied". Well, the device is locked for some reason.

To get around (credit: Stuart Preston's blog):

You must use a registry editor signed by something the phone trusts already!  RegEditSTG https://blogs.conchango.com/stuartpreston/files/regeditSTG.zip will do the trick as it is already signed by HTC.

Copy the exe onto the device, launch it and change the policies as follows:

      Navigate to HKLM\Security\Policies\Policies\ 
      Click "Values" soft-key 
      Change "00001001" value to 1 (decimal) (recovery note: default is 2)
      Change "00001005" value to 40 (decimal) (recovery note: default is 16)
      Reboot device.

Then the sdkcerts.xml can be installed on the device. After that, you can change the security configuration of the device by copying the cpf file (under \Securityconfiguration) onto the device and run it.