Problem: Many customers who work with remote synchronization run the process on the master daily, or multiples times per day. The program can be set up to run from a command line as defined in sup023, but in doing that the synchronization program has to be open and running as an active program. On machines that are running the operation system Windows NT or Windows 2000 Server the synchronization program can be set up as a SERVICE on the machine which would then allow users to not have the program open in a session of Windows.
There are two downsides to running synchronization as a SERVICE:
First: if you run synchronization sending synchronization files through Outlook email you cannot run synchronization as a service. The SERVICE will not log into email and send the sync files out through the active Outlook profile. In our testing we have been unable to make this work. Creative customers have found that setting synchronization up to run as a Windows Scheduled Task will work properly with Outlook to process synchronization files in email. See sup238 for more information on setting synchronization up as a Scheduled Task.
Second: if there is an issue in synchronization causing the sync at the master to stop, the service must be stopped, synchronization must be manually run and any error messages can be clicked through, then the service for synchronization can be restarted.
How to Create a Windows NT user-defined service for Windows 2000
1. Create a folder in the Local Drive of the server. You can name this folder anything, just don’t have any spaces in the name. In the example below the folder is called FOLDERCREATED.
2. Copy into this folder the following files: instsrv.exe and srvany.exe (you can get these two files in the Windows 2000 Profesional Resource Kit or the Internet).When done, run the following command from command prompt :
C:\FolderCreated\instsrv.exe SERVICENAME c:\FolderCreated\srvany.exe
The syntax will reflect the complete Fully Qualified path where SERVICENAME is the name that you are going to call this specific service.
3. You will get a screen telling you that the service has been successfully created, exit from command prompt.
4. You can verify this service going to Services and find the new service you created.
The next step is to create a Key in the registry under the Service you just created.
1. Run regedt32.exe (Start + Run and type in “regedit”) and go to:
2. From the Edit menu select AddKey, type the following and click OK:
Key Name: Parameters
When done Select the Parameters Key
3. From the Edit menu, select Add Value. Type the following and click OK:
Value Name: Application
Data Type: REG_SZ
String: in this field you will copy the target run command from the properties icon application at determined using sup023
Note: In our testing the /user had to be a one word value “Jon Doe” would not work while “jdoe” would work fine. There must be an issue with the space in the user name. Do not use a user name with a space in it when setting up the service.
Once you have completed this go back to SERVICES and select the new service and START to run synchronization.
Contact Silent Partner for more information.