Programmatically modifying SureLock Settings

By 42Gears Team

One of the common requests we received from some of our customers was for a solution to make it possible for a third party application to programmatically change the SureLock Security password on the device.

We have implemented a generic solution to update SureLock settings on the device without having to reinstall the SureLock CAB files. Solution includes a new module, Supervisory Update (supupd.exe) which takes new SureLock settings (like security password) as command line parameters. For e.g. an application can change the password by launching supupd.exe with the following parameters:

Program FilesSureLocksupupd.exe /changepwd

Here is a sample code (.NET C#):

Process proc1 = new Process();
string oldPassword = "0123";
string newPassword = "9876";
proc1.StartInfo.FileName = "\Program Files\SureLock\supupd.exe";
proc1.StartInfo.Arguments = "/changepwd " + oldPassword + " "+ newPassword ;
proc1 .Start();

In future we will add more options to let applications change other SureLock settings, like adding and removing "approved" applications.

“Written with expertise and passion to help you understand the topic better.”

4
42Gears Team – Content Author
Published on November 21, 2009

Subscribe to our newsletter

Stay updated with the latest news, articles, and resources on enterprise mobility.

Weekly articles
Actionable insights delivered once a week. No noise.
No spam
Your privacy matters. Unsubscribe anytime.