Change AIMMS PRO Service Account

By running a process using a particular account, you can access resources particular to that account. AIMMS jobs are started on the PRO service using the same account that the PRO service is running on. To specify a different account for AIMMS jobs, we need to run the PRO service on the new account.

This article explains the procedure to change the PRO account that runs the AIMMS jobs.

Warning

When you run on an account that is not the system account, it can affect access to resources and cause errors. In this case, please consult with your system administrator. For instance, this may affect the Single-Sign On. See Link to Active Directory for Non-AD Member Servers, but you may also want to check here or this one

Overview

AIMMS jobs are run on the PRO server with the name AimmsPROSession.exe.

../../_images/AimmsPROSession1.png

The default account for these jobs is SYSTEM.

To change the account for the service, you’ll follow this process:

  1. Stop the PRO services.

  2. Change the service in Windows Services.

  3. Start the PRO services again.

  4. Test the job and verify the change in Windows.

We’ll go step-by-step in more detail below.

Stopping the Service in PRO

Before making changes to the service, it is a good idea to stop those services.

Log in as an admin on the PRO service and stop the services.

../../_images/StartStopServices1.png

Changing the Service in Windows Services

  1. Open up the Services app on your Windows system. (You can find it by typing “services” in the Windows menu search.)

  2. Select the AIMMS PRO 2 service. By default, the SYSTEM account is used for this service.

    ../../_images/SelectAIMMSPROService1.png
  3. Right-click on the process and select Properties from the menu.

    ../../_images/SelectProperties0.png
  4. Go to the tab Log On and select the account the AIMMS PRO 2 service will use next time it is started.

    ../../_images/PropertyTabLogOn0.png

You can fill in another account, such as a service account. Find out more in Microsoft Documentation: Service accounts.

Restarting the Service in PRO

Log in again as an admin on the AIMMS PRO service and start the services again:

../../_images/StartStopServices1b.png

Verifying the Change in Windows Services

Open up the Services app again.

../../_images/SelectAIMMSPROService1b.png

The service is now using the new account (in this example, chris).

Verifying the change in Windows Task Manager

Start the same job again. Then open the Windows Task Manager and go to the Details tab:

../../_images/AimmsPROSession1b.png

The account used for this AIMMS job is now chris.

Test Project

To test for yourself, you can use the simple WinUI model WaitABit.zip.

After publishing and launching this app, just press the huge button to start an AIMMS job that waits for five minutes on the AIMMS PRO server.