use gMSA account to login to SQL Server Management studio

Thanakodi, Guru Prashanth 61 Reputation points
2020-05-27T07:42:26.793+00:00

Hi All

gMSA account can be configured as a service account for SQL Server service. Is there a way to
use gMSA account to login to SQL server using SQL Server management studio like other SQL server users?

Some articles like shown below are using gMSA as sysadmin user. But I am not able to find an article from microsoft website.

https://cloudiqtech.com/windows-2016-docker-containers-using-gmsa-connect-to-sql-server/

Thanks
Guru

Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Leon Laude 86,026 Reputation points
    2020-05-27T07:43:43.883+00:00

    Hi,

    Q&A currently supports the products listed over here https://learn.microsoft.com/en-us/answers/products (more to be added later on).

    You can reach the experts in the dedicated SQL Server forum over here:
    https://social.technet.microsoft.com/Forums/en-US/home?category=sqlserver

    (Please don't forget to accept helpful replies as answer)

    Best regards,
    Leon

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Suman Bhowmik 76 Reputation points
    2020-11-26T14:40:54.367+00:00

    Hi,

    There is no way to use gMSA to login manually as you can't provide gMSA password manually.

    0 comments No comments

  2. AS 0 Reputation points
    2024-08-02T11:26:22.5166667+00:00

    On the server that is registered to retrieve the gMSA password (-PrincipalsAllowedToRetrieveManagedPassword Parameter for the New-ADServiceAccount command; check with "Get-ADServiceAccount gmsa-name -Properties *") use Sysinternals psexec:
    PsExec.exe -u domain\gmsa-name$ -i "C:\Program Files (x86)\Microsoft SQL Server Management Studio 20\Common7\IDE\Ssms.exe". If psexec asks for a password just hit enter.

    grafik

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.