Link to home
Start Free TrialLog in
Avatar of Mauro Cazabonnet
Mauro CazabonnetFlag for United States of America

asked on

SQL connectivity with GMSA

I have a GMSA account that's starting a service
The service code is in powershell

Looking to authenticate to sql server but seems to fail to login
GMSA account is dbo of the database

Should this work?

A standard windows service account works fine


$SqlConnection = New-Object System.Data.SqlClient.SqlConnection
	$SqlConnection.ConnectionString = "Server = $sqlServer; Database = $SQLDBName; Integrated Security = True;"
	$Command = New-Object System.Data.SqlClient.SqlCommand
	$Command.CommandTimeout = 0
	$Command.Connection = $SqlConnection

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Mauro Cazabonnet
Mauro Cazabonnet
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mauro Cazabonnet

ASKER

closing