Skip to content
Documentation
Updated 10 minutes to read
Markdown

Empower your Nodinite environment with secure, least-privilege service account management. This guide explains how to configure 'Logon as a Service' rights for Nodinite applications and services running on Windows Servers, ensuring compliance, security, and smooth operations across your infrastructure.

  • ✅ Step-by-step instructions for setting 'Logon as a Service' rights
  • ✅ Ensures least-privilege, secure deployments
  • ✅ Supports multi-server and multi-environment scenarios
  • ✅ Best practices for password, policy, and account management

First, issue the following command from an elevated command prompt on the Windows Server to update group policies:

Terminal window
gpupdate /force

Nodinite provides many applications and services that you can install on one or more Windows Servers, potentially with multiple Environments:

The Nodinite services above require different access rights on hosting Windows Servers and SQL Server Databases. You choose the service identities in the Nodinite Portal, in the Service Account Defaults of the Auth step, per Core Service in the Servers step, and per agent in the Agents step; the CLI then configures the IIS application pools with those identities. Each identity still needs the Windows rights on this page.

We designed Nodinite Monitoring Agents and services to run with minimum permissions (least privilege):

graph TB subgraph "Privilege Levels" direction TB LocalSystem["fa:fa-crown Local System<br/>Avoid - too privileged"] LocalAdmin["fa:fa-user-shield Local Administrator<br/>Some agents only"] DomainAccount["fa:fa-user-tie Domain Service Account or gMSA<br/>Recommended"] BuiltIn["fa:fa-user Built-in Accounts<br/>ApplicationPoolIdentity"] end subgraph "Required Rights" direction TB LogonService["fa:fa-key Logon as a Service"] SQLAccess["fa:fa-database SQL Server Access"] SPNReg["fa:fa-shield-halved SPN Registration"] FileAccess["fa:fa-folder File System Access"] end DomainAccount --> LogonService DomainAccount --> SQLAccess DomainAccount --> SPNReg DomainAccount --> FileAccess LocalAdmin --> LogonService LocalAdmin --> SQLAccess LocalAdmin --> FileAccess BuiltIn --> LogonService style LocalSystem fill:#c33d34,color:#fff style LocalAdmin fill:#FFD525 style DomainAccount fill:#93d16d style BuiltIn fill:#93d16d style LogonService fill:#2678BD,color:#fff style SQLAccess fill:#2678BD,color:#fff style SPNReg fill:#2678BD,color:#fff style FileAccess fill:#2678BD,color:#fff

Diagram: Nodinite service account privilege model. Green accounts (domain service accounts, gMSA, and built-in accounts) provide least-privilege access. Yellow accounts (local administrator) only for specific Monitoring Agents. Red accounts (Local System) should be avoided. The blue boxes are the rights each account needs: Logon as a Service, SQL Server access to the Configuration Database and Log Databases, SPN registration, and file system access.

  • Each Windows Service can run with the same account, or you can use different accounts for each instance/service installed.
    • Separate accounts increase security and allow fine-tuned access.
  • The BizTalk and Windows Server Monitoring Agents require their account to be part of the local administrators group; the other services and agents don't. Review the prerequisites page for each agent.
  • Some agent service accounts require interactive logon (e.g., agents that install or update their Monitoring Agent Database). The Core Services don't; see IIS Application Pool Identities.
  • Always use dedicated service accounts—never assign accounts used by physical persons.
  • Custom domain accounts require Service Principal Names (SPN) for Kerberos authentication in distributed environments or when NTLM is disabled.
  • Manage service account passwords as part of your policy and maintenance.

Eliminate Password Expiration with gMSA Accounts

Section titled “Eliminate Password Expiration with gMSA Accounts”

Nodinite v7 supports Group Managed Service Accounts (gMSA): Active Directory handles password rotation automatically, and no administrator ever knows the password. The trade-off is that you provision the secret-encryption certificate yourself in the LocalMachine store, from your own PKI; see Install Certificates for gMSA.

A gMSA still needs the Log on as a service right described below. For the comparison with traditional accounts and the setup steps, see Configure Group Managed Service Accounts (gMSA).

What are the minimum user permissions required to install a Windows service?

Section titled “What are the minimum user permissions required to install a Windows service?”

You must be a Local Administrator to run the Nodinite CLI (Step 7: Run the CLI Workflow) and to install Nodinite Windows Services.

Only processes with Administrative privileges can open handles to the SCM (Service Control Manager) that can be used by the CreateService and LockServiceDatabase functions (see the following MSDN 'Service Security and Access Rights' article for details).

What are the minimum user permissions required to run a Windows service?

Section titled “What are the minimum user permissions required to run a Windows service?”

The minimum user permission required to run a Windows service is the Log on as a service right — one of the core Service Account rights — a local policy set by a Local Administrator on the server or via group policy.

This security setting allows a security principal to Log on as a service. Windows Services can run under built-in accounts (Local System, Local Service, Network Service), which have this right by default. Any service running under a different user account must be assigned the Log on as a service right.

How to add a service account to a local policy

Section titled “How to add a service account to a local policy”
  1. Open the Server Manager, click Tools, and select Local Security Policy.
  2. In Local Security Policy, open Local Policies > User Rights Assignment.
    Local Security Policy console with User Rights Assignment
    Example of the Local Security Policy console, where the Log on as a service policy lives under User Rights Assignment.
  3. Add the account to the policy 'Log on as a service'. If the account is already in use, log on/restart to get the new privileges.
    Adding a service account to the Log on as a service policy
    Example of adding the Nodinite service account; for a gMSA, include the trailing $.

On Windows Server, every Nodinite v7 Core Service (the Web Client, Web API, Log API, Logging Service, Monitoring Service, and MCP Server) runs as an IIS application pool identity. Give those identities the least privileges they need:

Right How the identity gets it What you do
Log on as a service IIS adds the application pool identity to this policy itself when the worker process starts (Microsoft) Nothing on the server. When a Group Policy defines Log on as a service for the server, its list replaces the local one, so add every pool identity (or the gMSA) to that Group Policy too
Log on as a batch job and Impersonate a client after authentication Granted to the IIS_IUSRS group by default; IIS adds IIS_IUSRS to the worker process at run time (Microsoft) Make the identity a member of the IIS_IUSRS group, as Microsoft recommends for a custom identity. IIS starts a worker process as a batch logon by default, so when a Group Policy defines Log on as a batch job, keep IIS_IUSRS in its list
Allow log on locally Not needed for an application pool Don't grant it to the Core Services identities
Membership in the local Administrators group Not needed Don't grant it. One exception: the Event Log Alarm Plugin source below

Least privileges for the application pool identities of the Core Services on Windows Server.

Two settings and one Windows object complete the least-privilege setup:

  • Load User Profile = True on each application pool. The secret-encryption certificate lives in the identity's own CurrentUser store, which needs the profile (Secret Management).
  • Write access to the service's own appsettings.json. Each service rewrites its settings file with the protected values on start.
  • The Event Log source of the Event Log Alarm Plugin. The plugin creates its source the first time it writes, and only a local administrator can create one. Create the source once as an administrator, or alarms through that plugin fail for a least-privilege identity.

Agents installed as Windows services are different: their identity still needs Log on as a service and Allow log on locally, and some agent identities, such as the BizTalk and Windows Server agents, must be local administrators; see each agent's prerequisites. In the container runtimes (Runtime Environments), the Core Services run without IIS, so none of these Windows rights apply.

Nodinite Service Accounts are used for:

Follow these steps to add an account to the Local Administrator group on a Windows Server. Repeat on all servers hosting Nodinite Monitoring Agents that require elevated privileges, such as the BizTalk and Windows Server agents. The Core Services don't need it.

  1. Open the Server Manager
  2. Click Tools in the right corner of Server Manager and select Computer Management
    Computer Management
  3. Expand Local Users and Groups and select Groups. Double-click on the Administrators group
    Local Users and Groups
  4. Add the AD service accounts that should be part of the highly privileged local Administrator's group
    Administrators Properties

If you need to work on the Domain Controller, you cannot find the Local Users and Groups in 'Computer Management'. To add any account to the local Administrator group on the domain controller, open Active Directory Users and Computer or use an Administrative command prompt:

Terminal window
net localgroup Administrators /add {domain}\{user}

Replace {domain}\{user} with the account to be added (without the brackets).

Add Service Account on Read Only Domain Controller (RODC)

Section titled “Add Service Account on Read Only Domain Controller (RODC)”

If your Domain Controller is installed as a Read-Only Domain Controller, follow the steps for delegating local administration on an RODC to add the service account(s) local admin rights.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...