From 371b9e42b3085f31eaa4bbea48e1683e698c62c8 Mon Sep 17 00:00:00 2001 From: Chris Share Date: Tue, 19 May 2026 13:23:00 +0100 Subject: [PATCH] Restart named instances of SQL server as well as the default --- Installation/ImportSQL.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Installation/ImportSQL.ps1 b/Installation/ImportSQL.ps1 index 0f6ede7..e3ee5ac 100644 --- a/Installation/ImportSQL.ps1 +++ b/Installation/ImportSQL.ps1 @@ -42,7 +42,7 @@ if($CertInStore){ } # The thumbprint must be in all lowercase, otherwise SQL server doesn't seem to accept it?! Set-ItemProperty $regKey.PSPath -Name "Certificate" -Value $NewCertThumbprint.ToLowerInvariant() - Restart-Service MSSQLSERVER -Force -ErrorAction Stop + Restart-Service 'MSSQL*' -Force -ErrorAction Stop "Cert thumbprint set to SQL and service restarted" }catch{ "Cert thumbprint was not set successfully"