Undocumented ActiveSync Registry Keys

GuestOnly

Allows new devices (i.e., those that don’t already have a partnership with the PC) to establish a guest partnership with a pc without being prompted to establish a partnership. Devices that have an existing partnership with the PC will still connect and synchronize as they did before.

GuestOnly is a DWORD value that resides at HKLM\Software\Microsoft\Windows CE Services. The key is missing by default. Create the value and then set its value to 1.

AutoStartOnConnect

When a device connects to the system, ActiveSync enumerates all string values under the AutoStartOnConnect key and attempts to launch the specified applications. AutoStartOnConnect is also a key that resides under HKLM\Software\Microsoft\Windows CE Services.

So, in order to launch an app on a device’s connection, we must create a new name/string value pair (any unique name will be fine) under the key, and then set the value to the path of our custom sync application.

e.g. Name=MyApp, Type=REG_SZ, Data="C:\Program Files\MyApp.exe"

AutoStartOnDisconnect

AutoStartOnDisconnect is also a key that resides under HKLM\Software\Microsoft\Windows CE Services.  Just as with AutoStartOnConnect, when a device disconnects from the system, ActiveSync enumerates all string values under the AutoStartOnDisconnect key and attempts to launch the specified applications.

So, just as we did above, create a new name/string value pair under the key, and then set the value.

Advertisements