---
title: "Configure Group Managed Service Accounts (gMSA) for Nodinite v7: Automated Password Security"
description: Configure Group Managed Service Accounts (gMSA) for Nodinite v7 with architecture guidance, prerequisites, setup steps, and links to migration and troubleshooting spoke pages.
---

# :fa-shield-check: Configure Group Managed Service Accounts (gMSA)

:new7.x:

Empower your :Nodinite: v7 environment with automated, secure service account management. A Group Managed Service Account (gMSA) provides automation for service account password rotation — eliminating password expiration issues, enhancing security, and is compatible with :Nodinite:'s certificate encryption features.

## What are Group Managed Service Accounts?

In traditional Windows service account management, administrators face a painful cycle: passwords expire, services break, and manual updates risk downtime. **Group Managed Service Accounts (gMSA)** solve this problem completely.

### The Traditional Service Account Problem

* :fa-clock: **Password expiration** - IT must manually update passwords before they expire (30, 60, or 90-day cycles)
* :fa-exclamation-triangle: **Service disruption** - Forgotten password updates cause production outages
* :fa-user-shield: **Security exposure** - Passwords stored in documentation or shared among team members
* :fa-sync-alt: **Manual coordination** - Updating passwords requires coordinating across multiple servers and services
* :fa-file-alt: **Audit complexity** - Tracking who changed what password when becomes difficult

### The gMSA Solution

gMSA accounts are special service accounts where **Active Directory automatically rotates the password every 30 days** without any manual intervention. No administrator ever sees or knows the password.

### Key Benefits

* ✅ **Eliminate password expiration management** - Passwords rotate automatically every 30 days for gMSA accounts  
* ✅ **Enhanced security** - Password never stored or known to administrators  
* ✅ **Certificate-based encryption compatible** - Works with :Nodinite: v7's [secret management][]  
* ✅ **Simplified compliance** - Automatic rotation meets security audit requirements  
* ✅ **Zero downtime** - No service restarts needed for password changes  
* ✅ **Multi-server support** - Same gMSA account across multiple servers  
* ✅ **Multi-service support** - Same gMSA account across multiple agents and services

## Understanding the gMSA Architecture

The diagram below shows how Group Managed Service Accounts work with Active Directory, Nodinite servers, and certificate-based encryption:

<div class="mermaid">
graph TB
    AD["fa:fa-building Active Directory Domain"]
    KDS["fa:fa-key KDS Root Key"]
    DC1["fa:fa-server Domain Controller 1"]
    DC2["fa:fa-server Domain Controller 2"]
    GMSA["fa:fa-user-shield gMSA Account"]
    SG["fa:fa-users Security Group<br/>(Server Members)"]
    SERVER["fa:fa-server Nodinite Server"]
    CERT["fa:fa-certificate LocalMachine<br/>Certificate Store"]
    IIS["fa:fa-globe IIS application pools<br/>(Core Services and agents)"]
    SVCWIN["fa:fa-gear Windows Services<br/>(agents installed with an MSI)"]
    AD --> KDS
    KDS --> DC1
    KDS --> DC2
    DC1 -.->|"10 hours replication"| DC2
    AD --> GMSA
    GMSA --> SG
    SG --> SERVER
    SERVER --> CERT
    CERT --> IIS
    CERT --> SVCWIN
    style GMSA fill:#93d16d
    style CERT fill:#FFD525
    style IIS fill:#2678BD,color:#fff
    style SVCWIN fill:#2678BD,color:#fff
    style KDS fill:#93d16d
</div>

*This diagram shows the gMSA architecture: Active Directory creates the KDS root key (green), which replicates to all domain controllers. The gMSA account (green) is installed on :Nodinite: servers through security group membership. The secret-encryption certificate in the `LocalMachine` store (yellow) is used by the [IIS][] application pools of the [Core Services][] and agents, and by agents that run as Windows Services (blue); see [Secret Management][] and [Install Certificates for gMSA][].*

>[!WARNING]
>:Nodinite: v7's certificate-based encryption requires **SHA-256 or higher** signature algorithms. SHA-1 certificates are deprecated and will cause installation failures. Always use modern hash algorithms (SHA-256, SHA-384, or SHA-512) when generating or obtaining certificates for gMSA accounts. See the [Qualys SHA-1 deprecation guidance](https://blog.qualys.com/product-tech/2014/09/09/sha1-deprecation-what-you-need-to-know)<sup>:fa-arrow-up-right-from-square:</sup> for details.

>[!IMPORTANT]
>When using gMSA accounts, you must **manually provision and manage the secret-encryption certificates** in the `LocalMachine` certificate store. Unlike traditional service accounts, where :Nodinite: auto-generates the certificate, gMSA accounts require certificates from your own PKI or certificate authority. See [Install Certificates for gMSA][] for PowerShell scripts and step-by-step instructions. This certificate is separate from the TLS certificate of the Core Services web sites, which you identify by subject in the [Core host Configuration][Step 4 Core host TLS].

## When to Use gMSA vs Traditional Service Accounts

|Feature|**gMSA (Recommended for v7+)**|**Traditional Service Account**|  
|---|---|---|  
|**Password Management**|✅ Automatic 30-day rotation|❌ Manual, subject to expiration policies|  
|**Certificate Management (v7)**|⚠️ Manual - You must provide and manage certificates|✅ Auto-generated and managed by Nodinite|  
|**Certificate Store Location**|LocalMachine (shared across services)|Personal (user profile)|  
|**Nodinite v7 Encryption**|✅ Fully compatible (with manual cert setup)|✅ Fully compatible (auto cert setup)|  
|**Setup Complexity**|⚠️ Requires AD configuration + manual certificate|✅ Simple (create account, set password)|  
|**Multi-Server**|✅ Same account across all servers|✅ Same account across all servers|  
|**Security Audits**|✅ Automatic password compliance|⚠️ Manual password rotation tracking|  

### Recommendation

* **Use gMSA** if you have automated certificate management infrastructure (e.g., internal PKI, cert renewal processes) and want automatic password rotation
* **Use Traditional Account** for simpler setup with :Nodinite:-managed certificates, or if you lack certificate management infrastructure

For traditional service account setup, see [How to set Logon as a Service right][LogonAsAService].

---

## Which Nodinite Services Support gMSA?

The following :Nodinite: components support gMSA accounts:  

* [Core Services][]  
  * [Log API][]  
  * [Logging Service][]  
  * [Monitoring Service][]  
  * [Web API][]  
  * [Web Client][] (IIS Application Pool)  
* [Monitoring Agents][]  
  * [Database Monitoring Agent][Database Agent] :new7.2.0:  
  * [Boomi Monitoring Agent][Boomi Agent] :new7.2.0:
  * [IBM MQ Monitoring Agent][IBM MQAgent] :new7.0.4:
  * [Log File Parser Agent][Log File Parser] :new7.0.4:
  * [Message Queuing Agent][] :new7.0.4:
  * [RabbitMQ Monitoring Agent][RabbitMQ Agent] :new7.0.4:
  * [Web Services Monitoring Agent][Web Services Agent] :new7.0.4:
* [Logging Agents][Logging]
  * [Pickup Log Events Service Logging Agent][Pickup Service] :new7.0.4:

In the Portal, agents that support gMSA show the **Use gMSA** option on their card in the [Agents step][Step 5 gMSA agents].

>gMSA accounts still require the **"Log on as a service"** right on each server, just like traditional accounts. See the [Logon as a Service][LogonAsAService] page for details on setting this local policy.
>
>Some [Monitoring Agents][] also require the gMSA account to be part of the **local Administrators group**. Review the prerequisites page for each agent you plan to deploy.

---

## Active Directory and Infrastructure Prerequisites

1. **Windows Server 2012 or higher** forest functional level
2. **Windows Server 2012 or higher** domain member servers (Windows 8 or newer domain-joined computers also supported)
3. **64-bit architecture** to run PowerShell commands to manage gMSA
4. **Active Directory PowerShell module** must be installed on the Domain Controller or management workstation
5. **Dedicated security group** (e.g., `gmsaservergroup`) created in Active Directory
   * Add all servers that will use the gMSA into this group

>[!TIP]
>Create one security group per gMSA account for better control. For example:
>
>* `Nodinite-Prod-Servers` for production environment gMSA
>* `Nodinite-Test-Servers` for test environment gMSA

---

## Step 1: Create the KDS Root Key

The **KDS (Key Distribution Service) root key** is required for domain controllers to generate and rotate gMSA passwords automatically.

>[!IMPORTANT]
>The KDS root key is a **one-time setup** for your entire Active Directory domain. If you have already created a KDS root key for other gMSA accounts, you can skip this step.

```powershell
# Check if KDS root key already exists
Get-KdsRootKey

# Create KDS root key effective immediately (production)
Add-KdsRootKey -EffectiveImmediately

# OR make it effective 10 hours in the past (lab/testing only)
Add-KdsRootKey -EffectiveTime ((Get-Date).AddHours(-10))
```

### Production vs Lab Environments

* **Production:** Use `-EffectiveImmediately` and wait **10 hours** for replication across all domain controllers before creating gMSA accounts
* **Lab/Testing:** Use `-EffectiveTime ((Get-Date).AddHours(-10))` to bypass the 10-hour wait and use the key immediately

>[!TIP]
>The 10-hour wait ensures the KDS root key replicates to all domain controllers in your forest. Skipping this wait in production can cause gMSA authentication failures on servers using domain controllers that haven't received the key yet.

<div class="mermaid">
flowchart LR
    A[Create KDS Root Key] --> B[Replicate to All DCs]
    B --> C{Production?}
    C --> | Yes | D[Wait 10 Hours]  
    C --> | No - Lab | E[Use Immediately]  
    D --> F[Create gMSA Accounts]
    E --> F
</div>

*This diagram shows the KDS root key replication process and when you can safely create gMSA accounts for the [Core Services][] and the [Monitoring Agents][] that support gMSA ([Step 5 gMSA agents][]).*

---

## Step 2: Create the gMSA Account

Run the following PowerShell command on a Domain Controller or management workstation with Active Directory PowerShell module installed:

```powershell
New-ADServiceAccount "testgmsa" `
  -DNSHostName "testgmsa.domain.com" `
  -PrincipalsAllowedToRetrieveManagedPassword "gmsaservergroup"
```

### Parameter Explanations

* `testgmsa` - The name of the gMSA account (use a descriptive name like `NodiniteProdSvc`)
* `DNSHostName` - Fully Qualified Domain Name (FQDN) for the gMSA account
* `PrincipalsAllowedToRetrieveManagedPassword` - The Active Directory security group containing all servers that are allowed to retrieve and use this gMSA's password

>[!TIP]
>
>* `NodiniteProdSvc` - Production environment services
>* `NodiniteTestSvc` - Test environment services
>* `NodiniteDevSvc` - Development environment services
>
>Using environment-specific names makes it easier to identify accounts in audit logs and certificate subject names.

### Example for Nodinite Production

```powershell
New-ADServiceAccount "NodiniteProdSvc" `
  -DNSHostName "NodiniteProdSvc.contoso.com" `
  -PrincipalsAllowedToRetrieveManagedPassword "Nodinite-Prod-Servers"
```

---

## Step 3: Verify the gMSA Account

After creating the gMSA account, verify it was created correctly:

```powershell
# Check if the gMSA exists
Get-ADServiceAccount -Identity "testgmsa"

# Get detailed properties of the gMSA
Get-ADServiceAccount -Identity "testgmsa" -Properties *
```

### Key Properties to Verify

* `Enabled` - Should be `True`
* `PrincipalsAllowedToRetrieveManagedPassword` - Should list your security group (e.g., `gmsaservergroup`)
* `DNSHostName` - Should match the FQDN you specified
* `ObjectClass` - Should be `msDS-GroupManagedServiceAccount`

>[!TIP]
>If you see `Enabled: False`, enable the account with:
>
>```powershell
>Set-ADServiceAccount -Identity "testgmsa" -Enabled $true
>```

---

## Step 4: Install the gMSA on Nodinite Servers

On **each Windows Server** that will run :Nodinite: services (Core Services, Monitoring Agents, Logging Agents), install the gMSA account:

>[!IMPORTANT]
>The server must be a member of the security group you specified in Step 2 (`PrincipalsAllowedToRetrieveManagedPassword`). If you just added the server to the group, run `gpupdate /force` and restart the server for group membership to take effect.

```powershell
# Install the gMSA on the local server
Install-ADServiceAccount -Identity "testgmsa"

# Test if the gMSA is available and working
Test-ADServiceAccount -Identity "testgmsa"
```

### Expected Result

* `Install-ADServiceAccount` - Should complete without errors
* `Test-ADServiceAccount` - Should return `True`

>[!WARNING]
>If `Test-ADServiceAccount` returns `False`, see [FAQ - gMSA Troubleshooting][].

---

## Step 5: Configure Nodinite Services to Use gMSA

Once the gMSA is installed and tested on the server, configure :Nodinite: to use the gMSA account.

How you set the identity depends on how the component is installed:

* **Installed by the v7 install package** - The [Core Services][] and the agents you add in the Portal run as [IIS][] web sites, each with its own application pool. You set the gMSA in the :Nodinite: Portal, and the CLI configures the application pools when you run the package.
* **Installed with an MSI as a Windows Service** - Agents installed this way on a remote server (see each agent's Install page) get the gMSA in the Windows **Services** console.

<div class="mermaid">
flowchart TB
    A["fa:fa-forward-step Step 2: Auth<br/>Service Account Defaults<br/>Domain mode, name ends with $"] --> B["fa:fa-forward-step Step 4: Servers<br/>optional per-service accounts"]
    B --> C["fa:fa-forward-step Step 5: Agents<br/>Use gMSA per agent"]
    C --> D["fa:fa-forward-step Step 6: Review and Download"]
    D --> E["fa:fa-terminal Step 7: Run the CLI<br/>configures the application pools"]
    style A fill:#2678BD,color:#fff
    style B fill:#2678BD,color:#fff
    style C fill:#2678BD,color:#fff
    style D fill:#E47528,color:#fff
    style E fill:#93d16d
</div>

*Diagram: the gMSA travels through the Portal wizard, from the [Service Account Defaults][Step 2 Service Account Defaults] and the optional per-service accounts in [Core platform services][Step 4 Core platform services] to the **Use gMSA** option in the [Agents step][Step 5 gMSA agents]; [Step 6: Review and Download][Step 6] builds the package, and the [CLI][Step 7] configures the IIS application pools.*

For existing installations, see [Migrate Traditional Account to gMSA][].

### Format for gMSA Account Names

When configuring services or IIS app pools, use the format:

**`DOMAIN\gMSAAccountName$`**

>[!IMPORTANT]
>Note the **trailing dollar sign ($)** - this is required for gMSA accounts and distinguishes them from regular user accounts.

#### Examples

* `CONTOSO\NodiniteProdSvc$`
* `FABRIKAM\testgmsa$`

### Configure IIS Application Pools in the Nodinite Portal

For everything the v7 install package installs, set the gMSA in the [Nodinite Portal](https://portal.nodinite.com)<sup>:fa-arrow-up-right-from-square:</sup>:

1. In [Step 2: Auth][Step 2 Service Account Defaults], keep **Domain** mode, select gMSA in **Service Account Defaults**, and enter the domain and the account name with the trailing `$`. The Portal refuses to generate the package if the `$` is missing.
2. In [Step 4: Servers][Step 4 Core platform services], clear **Same account for all Services** only if a Core Service needs a different account.
3. In [Step 5: Agents][Step 5 gMSA agents], turn on **Use gMSA** for each agent that supports it.
4. In [Step 6: Review and Download][Step 6], download the package.
5. Run the package with the [CLI in elevated PowerShell 7][Step 7] on each server. The CLI configures the application pools with the gMSA; leave no password anywhere.

Make sure the gMSA can read the private key of the secret-encryption certificate before you run the package; see [Install Certificates for gMSA][].

### Configure Windows Services (MSI-Installed Agents Only)

**On remote servers** where you installed a :Nodinite: agent with an MSI as a Windows Service, configure the service to use the gMSA account:

#### Configuration Steps

1. Open **Services** (services.msc)
2. Right-click on the :Nodinite: agent service (e.g., `Nodinite Log File Parser Agent`)
3. Select **Properties** → **Log On** tab
4. Select **This account**
5. Enter the gMSA account using the [format specified above](#format-for-gmsa-account-names) (e.g., `CONTOSO\NodiniteProdSvc$`)
6. **Leave the password fields EMPTY** - gMSA passwords are managed automatically by Active Directory
7. Click **OK** - Windows will validate the account
8. Restart the service

### Set "Log on as a Service" Right

Even though gMSA accounts manage passwords automatically, they still require the **"Log on as a service"** local policy right.

See [How to set Logon as a Service right][LogonAsAService] for step-by-step instructions.

### Add to Local Administrators Group (If Required)

Some [Monitoring Agents][] require the service account to be part of the local Administrators group. Check the prerequisites page for each agent you deploy.

To add the gMSA account to local administrators, use the same process as traditional accounts (see [Local Administrator][LogonAsAService] section), but remember to include the **trailing $** in the account name.

---

## Advanced gMSA Content (Spoke Pages)

This page is the **hub** for gMSA setup. The deep-dive procedures and troubleshooting are now separated into focused spoke pages to keep this guide easier to maintain and easier to scan.

### Migration and Certificate Deep Dive

Use [Migrate Traditional Account to gMSA][] for complete migration guidance, including:

* Exporting certificates from `Cert:\CurrentUser\My` under the old service account
* Importing certificates to `Cert:\LocalMachine\My` for gMSA
* Granting private key access to the gMSA identity
* Verifying app pool identities and encrypted configuration access

### Troubleshooting Deep Dive

Use [FAQ - gMSA Troubleshooting][] for detailed issue resolution, including:

* `Test-ADServiceAccount` returns `False`
* "Logon failure" and "Access is denied" patterns
* Password rotation behavior and post-rotation checks
* Certificate access and decryption failures

---

## :fa-hand-point-right: Next Steps

* :fa-certificate: [Install Certificates for gMSA][] - Provision the secret-encryption certificate  
* :fa-forward-step: [Step 2: Auth][Step 2 Service Account Defaults] - Service Account Defaults in the Portal  
* :fa-rocket: [Install Nodinite v7][InstallNodiniteV7]  
* :fa-right-left: [Migrate Traditional Account to gMSA][] - Full migration and certificate workflow  
* :fa-wrench: [FAQ - gMSA Troubleshooting][] - Detailed troubleshooting playbook  

## :fa-link-horizontal: Related Topics

* :fa-key: [Secret Management][] - Certificate-based encryption in :Nodinite: v7  
* :fa-user-plus: [How to set Logon as a Service right][LogonAsAService] - Service account rights  
* :fa-forward-step: [Step 5: Agents][Step 5 gMSA agents] - Agents with gMSA support  
* :fa-shield-alt: [Core Services][] - Services that support gMSA accounts  
* :fa-heartbeat: [Monitoring Agents][] - Agents that support gMSA accounts  
* :fa-file-alt: [Logging Agents][Logging] - Logging agents that support gMSA accounts  
* :fa-arrow-turn-up: [Windows Server Troubleshooting][Windows Overview]  
* :fa-wrench: [Troubleshooting][] - General installation and configuration help  
* :fa-book: [Microsoft: Group Managed Service Accounts Overview](https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/group-managed-service-accounts/group-managed-service-accounts/group-managed-service-accounts-overview)<sup>:fa-arrow-up-right-from-square:</sup>  

[Boomi Agent]:{ndr}/Logging%20and%20Monitoring/Boomi%20Integrations/Overview.md
[Core Services]:{ndr}/Core%20Services/Overview.md
[Database Agent]:{ndr}/Logging%20and%20Monitoring/Database/Overview.md
[FAQ - gMSA Troubleshooting]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA/FAQ%20-%20gMSA%20Troubleshooting.md
[IBM MQAgent]:{ndr}/Logging%20and%20Monitoring/IBM%20MQ/Overview.md
[IIS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/Overview.md
[Install Certificates for gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Install%20Certificates%20for%20gMSA.md
[InstallNodiniteV7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log File Parser]:{ndr}/Logging%20and%20Monitoring/Log%20File%20Parser/Overview.md
[Logging]:nodiniteDoc:/Logging
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogonAsAService]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[Message Queuing Agent]:{ndr}/Logging%20and%20Monitoring/Message%20Queueing/Overview.md
[Migrate Traditional Account to gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA/Migration%20from%20Traditional%20Account.md
[Monitoring Agents]:{ndr}/Administration/2.%20Monitor%20Management/2.%20Monitor%20Agents/Features/What%20is%20a%20Monitor%20Agent.md
[Monitoring Service]:{ndr}/Core%20Services/Monitoring%20Service/Overview.md
[Pickup Service]:{ndr}/Logging%20and%20Monitoring/Pickup%20LogEvents%20Service/Overview.md
[RabbitMQ Agent]:{ndr}/Logging%20and%20Monitoring/RabbitMQ/Overview.md
[Secret Management]:{ndr}/Install%20and%20Update/Troubleshooting/Secret%20Managment.md
[Step 2 Service Account Defaults]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md#service-account-defaults
[Step 4 Core host TLS]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-host-tls
[Step 4 Core platform services]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[Step 5 gMSA agents]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/05%20-%20Agents.md#net-10-agents-with-gmsa-support
[Step 6]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/06%20-%20Review%20and%20Download.md
[Step 7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/07%20-%20Install%20the%20Generated%20Package.md
[Troubleshooting]:{ndr}/Install%20and%20Update/Troubleshooting/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[Web Services Agent]:{ndr}/Logging%20and%20Monitoring/Web%20Services/Overview.md
[Windows Overview]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Overview.md