web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Unable to resolve "New-ADServiceAccount: The specified account already exists"

(0) ShareShare
ReportReport
Posted on by 45

Hello all,

I don't know if this is the right forum to post this question, I have to post it all the same to get the opinion of others in this challenge I'm encountering.

I created a group managed service account (GMSA as ADUsers) or rather thought I created them. However I found out that each time I ran the Install-ADServiceAccount svc-FRAS, It tells me it can't install ADServiceAccount. When I run the Test-ADServiceAccount, it comes out as false.

Now I removed those users, and created new ADComputer. When I run the New-ADServiceAccount -Name $gMSA_Name -DNSHostName $gMSA_FQDN -PrincipalsAllowedToRetrieveManagedPassword $gMSA_HostsGroup, it tells me that  "The specified account already exists" I don't know how to resolve this, and I can't move forward with my installation of finance and operation without creating group managed service account.

I will be grateful if someone can advise me on how to resolve this. If this is not the right forum to post this question, please kindly direct me on which forum I should post this question to. 

Thank you.

I have the same question (0)
  • Suggested answer
    A.Prasanna Profile Picture
    8,223 on at

    Bit confusing, however, if you are completed parameters configtemplate.xml properly then run below in PowerShell  to Create GSMA accounts

    Import-Module .\D365FO-OP\D365FO-OP.psd1

    New-D365FOGMSAAccounts -ConfigurationFilePath .\ConfigTemplate.xml

  • Squash1986 Profile Picture
    45 on at

    Yes I am talking about D365FO. Yes that was the command I ran which made me suspect that I probably didn't configure the gMSA properly. I tested the ADServiceAccount, and it came out false.

    I then removed gMSAs with the Remove-ADServiceAccount $gMSA_Name, and when I tried configuring the gMSAs again, but this time around as ADComputer rather than ADUser, I got this errors, and have been stuck there.

  • Squash1986 Profile Picture
    45 on at

    I ran your commands, and this is what I got. I also attached a copy of my configtemplate.xml.

    I want to ask. Do I create the gMSA accounts as Users or as Computers in my active directory?

    Thanks for your help.

    1122.Capture.PNG

    5025.config.PNG

  • Suggested answer
    A.Prasanna Profile Picture
    8,223 on at

    you don't need to create those accounts manually script will do.

    Follow the instruction carefully given in the below links

    1.www.linkedin.com/.../
    2
    .https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/deployment/setup-deploy-on-premises-pu12

  • Suggested answer
    A.Prasanna Profile Picture
    8,223 on at

    also, make sure you run Powershell as an administrator,

    Refer this to sort out MSA acccount issues as first step :

    docs.microsoft.com/.../setup-deploy-on-premises-pu12

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans