added svc account

This commit is contained in:
Alexander (Sasha) Nosov
2024-06-06 15:45:26 -07:00
committed by GitHub
parent 3f479bbfbb
commit 0e2ae65786
@@ -12,6 +12,10 @@ param (
[Parameter (Mandatory=$true)] [Parameter (Mandatory=$true)]
[string]$SqlServerAdminPassword, [string]$SqlServerAdminPassword,
[Parameter (Mandatory=$true)] [Parameter (Mandatory=$true)]
[string]$SqlServerSvcAccount,
[Parameter (Mandatory=$true)]
[string]$SqlServerSvcPassword,
[Parameter (Mandatory=$true)]
[string]$SqlServerVersion, [string]$SqlServerVersion,
[Parameter (Mandatory=$true)] [Parameter (Mandatory=$true)]
[string]$SqlServerEdition, [string]$SqlServerEdition,
@@ -151,10 +155,11 @@ try {
/FEATURES=SQL /FEATURES=SQL
/INSTANCEDIR=C:\SQL /INSTANCEDIR=C:\SQL
/SQLSYSADMINACCOUNTS='$($SqlServerAdminAccount)' /SQLSYSADMINACCOUNTS='$($SqlServerAdminAccount)'
/SQLSVCACCOUNT='$($SqlServerAdminAccount)' /SAPWD='$($SqlServerAdminPassword)'
/SQLSVCPASSWORD='$($SqlServerAdminPassword)' /SQLSVCACCOUNT='$($SqlServerSvcAccount)'
/AGTSVCACCOUNT='$($SqlServerAdminAccount)' /SQLSVCPASSWORD='$($SqlServerSvcPassword)'
/AGTSVCPASSWORD='$($SqlServerAdminPassword)' /AGTSVCACCOUNT='$($SqlServerSvcAccount)'
/AGTSVCPASSWORD='$($SqlServerSvcPassword)'
/IACCEPTSQLSERVERLICENSETERMS /IACCEPTSQLSERVERLICENSETERMS
/PID='$($SqlServerProductKey)' /PID='$($SqlServerProductKey)'
/SQLSERVERUPDATE='$($SqlServerCU)' /SQLSERVERUPDATE='$($SqlServerCU)'