Installing a Service Using SERVINST
SERVINST is used to install a service such as a mailbox agent or gateway. This allows the service to be controlled by the service control manager.
To install a mailbox agent service
-
Create an object in the directory for the service using a utility such as MBINST or GWINST. See MBINST: Installing a Mailbox Agent and GWINST: Installing a Mail-Gateway Object.
-
To install a mailbox agent, fill in the parameters with the information particular to that mailbox agent. For example, type the following command to install a mailbox agent named MB1 at the Microsoft Northwest site:
SERVINST /SITEDN=/o=Microsoft /ou=Northwest /DISPLAY_NAME=MB1 /OBJNAME=SampleMBA /OBJTYPE=AGENT
/SERVICE=MB1 /EXE=C:\BKOFFICE\SAMPLES\EXCHANGE\WIN32\DEBUG\SMBAGENT.EXE
/SERVER=MYSERVER /ACCOUNT=MYDOMAIN\<username> /PASSWORD=<password>
-
Verify that each service has been installed by checking for its name in Services under the Control Panel.
-
Use the PROFINST sample application if you want to create a profile for the service to use each time it starts. Such a profile allows you to examine the mailbox for a service. See PROFINST: Installing a MAPI Profile.
-
If the mailbox agent or gateway is designed to use an extension DLL, create a directory and copy the extension DLL into the directory. Use the EXTNINST sample application to install the DLL. See EXTNINST: Installing an Administrator Extension.
After installing a service, you can control it with the Windows NT service control manager. Using SERVINST has no effect on objects in the directory.