Setting Active Sync settings from code (C#)

P

patrik.loren

Hi, I need to be able to set upp a phone (both Windows Mobile 6 &
Windows Mobile 6 Professional) with specific settings for Active Sync.
I need to do this with C#.
The settings I need to set are:
Exchange server
Domain
SSL-connection
Scheduling of sync (both setting up times and sync interavalls)
SyncWhenRoaming (Found this in a good place in registry)
Which parts to sync:contacts, agenda (timespann), mail (timespann,
messageformat, size), tasks

I know some of these things are in the registry but have maybe
different keys on different phones, i need a good way of doing
this...Is it possible to connect to an activesync-object to set these
things...???

regards
Patrik Loren
 
P

patrik.loren

Hi Peter! Thank's for the link!

I've looked into these xml-configurations... Having some
securityproblems I guess...
After I've run the .cpf I get an sms telling me that is failed and not
authorized...

Should i use registry enries for some to reduse risk of security
issues...
The xml I try to config with is this:
<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Calender">
<parm name="CalenderAgeFilter" value="4"/>
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Connection">
<parm name="AllowSSLOption" value="0"/>
<parm name="Domain" value="eur.corp.vattenfall.com"/>
<parm name="Server" value="sync.vattenfall.de"/>
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Mail">
<parm name="EmalAgeFilter" value="4"/>
<parm name="Enabled" value="1"/>
<parm name="MailBodyTruncation" value="2048"/>
<parm name="MailFileAttachments" value="0"/>
</characteristic>
<characteristic type="Settings">
<parm name="OffPeakFrequency" value="0"/>
<parm name="PeakStartTime" value="08:00"/>
<parm name="PeakEndTime" value="17:00"/>
<parm name="PeakFrequency" value="60"/>
<characteristic type="PeakDays">
<parm name="Sun" value="0"/>
<parm name="Mon" value="1"/>
<parm name="Tue" value="1"/>
<parm name="Wed" value="1"/>
<parm name="Thr" value="1"/>
<parm name="Fri" value="1"/>
<parm name="Sat" value="0"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>

/Patrik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top