Is anyone else doing this? If all the MS documentation still says its necessary, it feels like one of those “Failed Successfully” situations that they could make an unannounced correction to at any point.
|
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Michael Kurzdorfer
Sent: Saturday, May 31, 2025 10:08 AM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Using gMSA accounts for SQL Clusters
CAUTION: This message was sent from outside of Canal Insurance. Please do not click links or open attachments unless you recognize the source of this email and know the content is safe. Please report all suspicious emails to "inf...@canal-ins.com" as an attachment.
To view this discussion visit https://groups.google.com/d/msgid/ntsysadmin/CA%2BZZigb7RAVGnfvCrCG5qik%3DJtNyzcRcmcO7sxxQYZ4XPcQ0gA%40mail.gmail.com.
Huh. Yeah I get an error if that
Install-ADServiceAccount command isn’t run, so it never occurred for me to try the gMSA without running it. I’ll have to give it a shot the next time I set a server up for it.
But I also know MS is good at “This error message is expected and can safely be ignored” in its logging, too. I once went on a mission to evict 100% of error and warnings from Windows logs on a fresh server and was utterly foiled. “This error means we’re checking
for something that doesn’t apply to this server..”
Dave

You mentioned the NTFS permissions but what about the share/SMB permissions? Is SQL_Agent_RWXD included there?
--
John Wright
IT Support Specialist
![]()
1800 Old Bluegrass Avenue, Louisville, KY 40215
Please submit IT requests to Hazelwoo...@bluegrass.org
24 Hour Helpline 1.800.928.8000
CONFIDENTIALITY NOTICE: This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited.
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com> On Behalf Of Mike Leone
Sent: Tuesday, June 3, 2025 12:51 PM
To: NTSysAdmin <ntsys...@googlegroups.com>
Subject: [ntsysadmin] Re: Using gMSA accounts for SQL Clusters
An update:
So I made the 2 gMSAs, used them to install SQL, that all worked fine. So YAY!
But what's not working fine is the SQL Agent, and I'm unsure why ....
So my DBA apparently makes a maintenance plan, which writes out a BAK to a local drive (in our case, H:).
Then he makes a SQL Agent job that moves said BAK to a separate server (in this case
\\DC1_LogShip02).
And that move is failing (this is what he IMed me:
H:\MSSQL16.MSSQLSERVER\MSSQL\Backup\ Access is denied. 0. Process Exit Code 0. The step succeeded.
So I figured "OK, maybe the SQL Agent acct needs to be on the NTFS security of that BACKUP folder". So I have an AD group (SQL_Agent_RWXD) which has all the SQL Agent gMSAs in it - currently just 1, this one I'm testing with.
So I added that group to the BACKUP folder NTFS, and gave it RWXD rights.

He says it's still failing.(I verified that the same AD group is on the NTFS for the target of the move job).
Have I missed something? I don't see anything in Event Logs (not that I expected to). I don't see anything in SQLAGENT.OUT, which is where the SQL Agent has listed as an error log.
The actual SQL Server Agent job step is:
Robocopy "H:\MSSQL16.MSSQLSERVER\MSSQL\Backup"
\\dc1_logship02\TEST /mov /NFL /NDL /NJS /NJH /NS /NC
$directory = "H:\MSSQL16.MSSQLSERVER\MSSQL\Backup"
$directoryInfo.count
if($directoryInfo.Count -gt '0')
{
Throw "One or more files not copied"
}
Thoughts? Is it something simple I've just overlooked, since this is the first time I am trying to use gMSAs?
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2BhDo0o2iouQKsg8M9JU41eAsfFh6wSdszCrOdNqUxq09Q%40mail.gmail.com.
Did you restart the Agent service after adding it’s gMSA to the AD group? Needs a restart for the SQL agent account to pick up the new group token.
Dave
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Mike Leone
Sent: Tuesday, June 3, 2025 9:51 AM
To: NTSysAdmin <ntsys...@googlegroups.com>
Subject: [ntsysadmin] Re: Using gMSA accounts for SQL Clusters
CAUTION: This email originated from outside of OCHIN’s network
Do not click links or open attachments unless you recognize the sender and know the content is safe. If you suspect this email is phishing or a scam, use the report button in the Outlook toolbar to report it to Desktop Support.
An update:
So I made the 2 gMSAs, used them to install SQL, that all worked fine. So YAY!
But what's not working fine is the SQL Agent, and I'm unsure why ....
So my DBA apparently makes a maintenance plan, which writes out a BAK to a local drive (in our case, H:).
Then he makes a SQL Agent job that moves said BAK to a separate server (in this case
\\DC1_LogShip02).
And that move is failing (this is what he IMed me:
H:\MSSQL16.MSSQLSERVER\MSSQL\Backup\ Access is denied. 0. Process Exit Code 0. The step succeeded.
So I figured "OK, maybe the SQL Agent acct needs to be on the NTFS security of that BACKUP folder". So I have an AD group (SQL_Agent_RWXD) which has all the SQL Agent gMSAs in it - currently just 1, this one I'm testing with.
So I added that group to the BACKUP folder NTFS, and gave it RWXD rights.

He says it's still failing.(I verified that the same AD group is on the NTFS for the target of the move job).
Have I missed something? I don't see anything in Event Logs (not that I expected to). I don't see anything in SQLAGENT.OUT, which is where the SQL Agent has listed as an error log.
The actual SQL Server Agent job step is:
Robocopy "H:\MSSQL16.MSSQLSERVER\MSSQL\Backup"
\\dc1_logship02\TEST /mov /NFL /NDL /NJS /NJH /NS /NC
$directory = "H:\MSSQL16.MSSQLSERVER\MSSQL\Backup"
$directoryInfo.count
if($directoryInfo.Count -gt '0')
{
Throw "One or more files not copied"
}
Thoughts? Is it something simple I've just overlooked, since this is the first time I am trying to use gMSAs?
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion visit
https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2BhDo0o2iouQKsg8M9JU41eAsfFh6wSdszCrOdNqUxq09Q%40mail.gmail.com.



Looks like a normal day in Sysadmin land to me! LOL.
What’s the thinking behind having a different account for the SQL server and the SQL agent? Seems like unnecessary granularity, but I don’t know your environment.
My gMSA’s are set up the following ways:
-OR-
As with everything, 742 ways to skin a cat. Biggest limitation on gMSA’s is the 15 character name limit, but hey, it’s only 2025.
Dave
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Mike Leone
Sent: Tuesday, June 3, 2025 12:39 PM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Re: Using gMSA accounts for SQL Clusters
CAUTION: This email originated from outside of OCHIN’s network
Do not click links or open attachments unless you recognize the sender and know the content is safe. If you suspect this email is phishing or a scam, use the report button in the Outlook toolbar to report it to Desktop Support.
OK, so I'm an idiot ...

Notice that I am running the SQL Server using the SQL_Agent gMSA acct. And running the SQL Agent using the SQL Server gMSA acct. I completely have it backwards. LOL
No wonder the SQL Agent couldn't access the source file; the NTFS security AD group didn't contain the gMSA that the Agent was actually running.
On Tue, Jun 3, 2025 at 2:43 PM Mike Leone <tur...@mike-leone.com> wrote:
D'OH!
That is the acct for the SQL SERVER gMSA, not the acct for the SQL Agent gMSA!
Now why would it do that? Meanwhile, I added the group the "Tst_SQL_SvcAcct" in in, to the acct "SQL_Agent_RWXD" which is on the security of the folder mentioned above.
I may have to restart SQL ...
On Tue, Jun 3, 2025 at 2:30 PM Mike Leone <tur...@mike-leone.com> wrote:
This is what he is sending me:
And yet that directory has the SQL Agent AD group (well, that AD group has a group in it. And that nested group has the gMSA of the SQL Agent).
I'll try adding the gMSA directly to that folder. You know what? I don't think it's on the NTFS of the folders above. I'll add the AD group there FIRST, then if that doesn't work, try adding just the acct.
On Tue, Jun 3, 2025 at 2:15 PM Mike Leone <tur...@mike-leone.com> wrote:
On Tue, Jun 3, 2025 at 1:03 PM Wright, John M <John....@newvista.org> wrote:
>
> You mentioned the NTFS permissions but what about the share/SMB permissions? Is SQL_Agent_RWXD included there?
They were not. I will try that ...
--
Mike. Leone, <mailto:tur...@mike-leone.com>
PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Photo Gallery: <http://www.flickr.com/photos/mikeleonephotos>
--
Mike. Leone, <mailto:tur...@mike-leone.com>
PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Photo Gallery: <http://www.flickr.com/photos/mikeleonephotos>
--
Mike. Leone, <mailto:tur...@mike-leone.com>
PGP Fingerprint: 0AA8 DC47 CB63 AE3F C739 6BF9 9AB4 1EF6 5AA5 BCDF
Photo Gallery: <http://www.flickr.com/photos/mikeleonephotos>
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
ntsysadmin+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2Bi%3D5G%2BLWrCKNYDRYZzbiDBNmF4_RQobCYQhEHnHo0BDbg%40mail.gmail.com.
Looks like a normal day in Sysadmin land to me! LOL.
What’s the thinking behind having a different account for the SQL server and the SQL agent? Seems like unnecessary granularity, but I don’t know your environment.
My gMSA’s are set up the following ways:
- One gMSA for all similar functions for a given (like SQL or IIS) server, and the gMSA account name would reflect it (svc.<servername>)
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2BibDG177KMuFzNv_2S2TF53n2METXt4BrsUy9AiaR%3D1QQ%40mail.gmail.com.
Charlie Sullivan
Principal Windows Systems Administrator
I strongly prefer having the standard local accounts when possible. When the SQL Server has to access files on other boxes, we use gMSAs for that and we do generally create them per server, per service. That is because our SQL Servers tend to be department/purpose specific and this allows you to finely control to what it has access. When we have a cluster/farm, we use the same account there (obviously for cluster).
From: 'Charles F Sullivan' via ntsysadmin <ntsys...@googlegroups.com>
Sent: Wednesday, June 4, 2025 10:24 AM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Re: Using gMSA accounts for SQL Clusters
|
EXTERNAL EMAIL: This email originated from outside of Pitt County Government. Do not click any links or open any attachments unless you trust the sender and know the content is safe. |
To view this discussion visit https://groups.google.com/d/msgid/ntsysadmin/CAEuHzzm4Ln4WjKsEr7tMbo6%2B7rs6Fz7LVSySNksLYemg98LBow%40mail.gmail.com.
I strongly prefer having the standard local accounts when possible. When the SQL Server has to access files on other boxes, we use gMSAs for that and we do generally create them per server, per service.
To view this discussion visit https://groups.google.com/d/msgid/ntsysadmin/068f38f355c844cd99a20df4405d6168%40pittcountync.gov.
FYI we just flipped the last chunk of our SQL servers to gMSA’s last week and found (aka rediscovered) a couple of cases the service account needed additional permissions for performance reasons. Our fix was to add them to the AD group
that a GPO for this leverages. Probably an edge case for most but figured I’d throw it out there while it’s fresh in my tiny brain.
Local Policies/User Rights Assignment
Dave
From: ntsys...@googlegroups.com <ntsys...@googlegroups.com>
On Behalf Of Mike Leone
Sent: Wednesday, June 4, 2025 8:52 AM
To: ntsys...@googlegroups.com
Subject: Re: [ntsysadmin] Re: Using gMSA accounts for SQL Clusters
CAUTION: This email originated from outside of OCHIN’s network
Do not click links or open attachments unless you recognize the sender and know the content is safe. If you suspect this email is phishing or a scam, use the report button in the Outlook toolbar to report it to Desktop Support.
On Wed, Jun 4, 2025 at 10:31 AM Mayo, Bill <Bill...@pittcountync.gov> wrote:
To view this discussion visit https://groups.google.com/d/msgid/ntsysadmin/CAHBr%2B%2Biw11j_cFwKVe9VH2jYwBfPUZbS46EDFn7FQvQ2izMh9g%40mail.gmail.com.