r/SQLServer • u/bippy_b • Feb 24 '26
Solved Is using AD account still a thing?
Hired at a company less than a year ago. Infrastructure team is 3 ppl. Data team is 3 ppl. That small. They have 4 production SQL Servers and 1 DEV. I have slowly been applying best practices guide by the SQL Assessment Powershell module. Not once has it suggested that;
” SQL isn’t running under AD account, you should change that.”
So with the changes to how services run in W2k22 and W2k25…is running as an AD user not needed any more? Is there a benefit to running it under an AD account?
Thanks.
Edit:
==
To clear things up..
AD account to run the service
•
u/AutoModerator Feb 24 '26
After your question has been solved /u/bippy_b, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
34
u/agiamba Feb 24 '26
You should use a gmsa account. Its more secure, and has fewer potential issues. Running it under an ad user introduces a lot of possible problems where issues with that account (locked out, password expired, etc) or network issues reaching the DC will usually take SQL server down
I don't know of any compelling reasons not to use a gmsa. I'm sure there is one but it's probably for a very specific situation
4
u/dbrownems Microsoft Employee Feb 24 '26 edited Feb 24 '26
If each server is dedicated to SQL Server and you’re not using clustering, just use the default virtual service account. If SQL Server needs network access it will use the computer account.
If there are multiple services on the server requiring network access, then it's possible that the computer account would accumulate too many privileges.
If you use clustering, you want the same service identity regardless of the active node.
Otherwise using a domain account serves no security purpose, and you can just use the default virtual service accounts.
3
u/g3n3 Feb 24 '26
The benefit is external resources. Ideally you’d used gMSA. nt service accounts are ok too
3
u/aSystemOverload Feb 24 '26
We use AD for people, service accounts for services... We use azure SQL server
0
u/[deleted] Feb 24 '26
[deleted] — view deleted comment