Enable service logon

This article describes how to enable service logon permission for System Center - Service Manager accounts. Security best practice is to disable interactive and remote interactive sessions for service accounts. Security teams across organizations have strict controls to enforce this best practice to prevent credential theft and associated attacks.

System Center - Service Manager (SM) supports hardening of service accounts, and doesn't require granting the Allow log on locally user right for several accounts, required in support of SM.

You must provide service logon permission to the following accounts that are used by SM management server and data warehouse management server.

Account Purpose Service logon permission
Service Manager Services account System Center Data Access Service and System Center Management Configuration service Required
Service Manager Workflow account Runs the MonitoringHost.exe process (all workflows) Required
Service reporting and analysis services accounts Reporting and analysis Not required

Note

We recommend that you provide service logon permission to the accounts used by various SM connectors (AD, OM, SCO, CM, VMM, exchange connectors).

Enable service logon as log on type

You can grant service logon permission in two ways:

Identify the accounts that need service logon permission

If you don't grant service logon permission to the required accounts, monitoringhost.exe doesn't run under those accounts. This condition prevents some workflows, such as SLA and SLO, from running. The Operations Manager event log records the following error event:

The Health Service couldn't log on the RunAs account XXXXXXX for management group XXXX because it hasn't been granted the Log on as a service.

Here's a sample error:

Screenshot of the Operations Manager event log error showing an account that needs service logon permission.

Enable service log on through a local group policy

Follow these steps:

  1. Sign in with administrator privileges to the computer from which you want to provide Log on as Service permission to accounts.

  2. Go to Administrative Tools and select Local Security Policy.

  3. Expand Local Policy and select User Rights Assignment. In the right pane, right-click Log on as a service and select Properties.

  4. Select Add User or Group option to add the new user.

  5. In the Select Users or Groups dialog, find the user you want to add and select OK.

  6. Select OK in the Log on as a service Properties to save the changes.

    Screenshot of the Log on as a service Properties dialog with a user added in Local Security Policy.

Change logon type from a default value

The default logon type is Service log on. After a new installation of SM or an upgrade, the logon type is Service log on by default.

You can change the default logon type by using the following steps:

  1. Sign in with administrator privileges to the computer from which you want to provide Log on as Service permission to accounts.

  2. Run gpedit.msc.

  3. Under Computer Configuration, expand Administrative Templates.

  4. Select System Center – Operations Manager.

  5. Right-click Monitoring Action Account Logon Type, select Edit, and select Enabled.

  6. Choose Logon Type from the dropdown menu.

    Screenshot of the Monitoring Action Account Logon Type policy setting with the logon type dropdown menu.