Skip to main content
Level 4
Oct 27, 2026 1:35 PM UTC
Solved

Can we use gMSA account to run AEM application as windows as a service

Hi,

We are running AEM 6.5 on-premises as a Windows Service, and the service is currently configured to run under the Local System account.

We have a new requirement for the AEM application to access a shared folder located outside the AEM server. As part of enabling the necessary permissions, we have been advised to run the AEM Windows Service using a gMSA (Group Managed Service Account) instead of the Local System account.

Has anyone implemented this approach for AEM running as a Windows Service? Is using a gMSA considered a recommended or standard approach for accessing network resources such as shared folders?

Additionally, I would appreciate guidance on:

  • Any prerequisites or permissions required before making the change.
  • The steps involved in configuring the AEM Windows Service to run under a gMSA account.
  • Any potential risks or considerations when applying this change to production AEM instances.
  • Whether there are any AEM-specific considerations when moving from Local System to a gMSA account.

Thank you for any advice or experience you can share.

venumuvva2021Accepted solution
Level 2
Oct 28, 2026 9:15 AM UTC

Yes. AEM doesn't care which account runs the JVM, so a gMSA works as long as the Windows service is set up for it. Checklist: 1) install the gMSA on the AEM host (Install-ADServiceAccount, and Test-ADServiceAccount should return True); 2) set the service logon to DOMAIN\gmsaName$ with an empty password, e.g. sc.exe config "<service name>" obj= "DOMAIN\gmsaName$" password= ""; 3) give the account Modify rights on the whole AEM install folder (crx-quickstart, including repository and logs) plus "Log on as a service"; 4) grant it the rights it needs on the share. Try a restart in a lower environment first, because a missing permission on the repository folder will stop AEM from starting. And if a Cloud Service move is planned, keep the share access behind an interface, since AEMaaCS can't write to UNC paths.

6 replies

venumuvva2021Accepted solution
Level 2
Oct 28, 2026 9:15 AM UTC

Yes. AEM doesn't care which account runs the JVM, so a gMSA works as long as the Windows service is set up for it. Checklist: 1) install the gMSA on the AEM host (Install-ADServiceAccount, and Test-ADServiceAccount should return True); 2) set the service logon to DOMAIN\gmsaName$ with an empty password, e.g. sc.exe config "<service name>" obj= "DOMAIN\gmsaName$" password= ""; 3) give the account Modify rights on the whole AEM install folder (crx-quickstart, including repository and logs) plus "Log on as a service"; 4) grant it the rights it needs on the share. Try a restart in a lower environment first, because a missing permission on the repository folder will stop AEM from starting. And if a Cloud Service move is planned, keep the share access behind an interface, since AEMaaCS can't write to UNC paths.

Translate
SmrithiGoAuthor
Level 4
Oct 28, 2026 9:24 AM UTC

Thank you ​@venumuvva2021 .

We are planning to upgrade from 6.5 to 6.5 LTS, do you know if this will be compatible then?

Translate
Level 2
Oct 28, 2026 9:26 AM UTC

Hi SmrithiGo, yes. The gMSA is set at the Windows service level, so it carries over to 6.5 LTS. Three things to recheck during the upgrade: 1) 6.5 LTS runs on a newer Java (17 or 21), so the service will point to a new JDK folder; give the gMSA read and execute rights there. 2) If you install LTS into a new folder rather than upgrading in place, re-grant Modify on the new crx-quickstart folder. 3) Re-test the shared-folder access after the upgrade, since custom code built for the old Java can behave differently. The upgrade is also a good moment to run the Best Practices Analyzer: it shows what LTS needs and what a later Cloud Service move would need. Happy to help if you hit issues.

Translate
SmrithiGoAuthor
Level 4
Oct 28, 2026 9:36 AM UTC

thanks a lot for your support. :)

Translate
quirky_yogi0a37
New Member
Oct 28, 2026 1:11 PM UTC

Using a gMSA can be a reasonable approach here, since the Local System account generally accesses network resources using the computer account rather than a dedicated service identity.

Before making the change, I’d confirm the gMSA has the required share and NTFS permissions, and that the AEM server is authorized to use the account. Test the service startup and shared-folder access in a lower environment first.

Also, check that AEM’s service configuration, repository paths, log directories, temporary folders, and any scripts or integrations still have the necessary permissions. For production, keep a rollback plan in case the service fails to start or AEM loses access to required files.

Translate
SmrithiGoAuthor
Level 4
Nov 3, 2026 9:00 AM UTC

Hi,

Anytime I set the gMSAccount, it automatically enters a password and confirm password values in it. What happens when I start the AEM instance, will it fail to start? 

Translate