From c279ba06642d90652a5552407e59020016a6ff4b Mon Sep 17 00:00:00 2001 From: "Dariy.Nurgaleev" Date: Wed, 18 Mar 2020 00:16:00 +0700 Subject: [PATCH] added software markdon --- .../scripts/Installers/Validate-SQLExpress.ps1 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/images/win/scripts/Installers/Validate-SQLExpress.ps1 b/images/win/scripts/Installers/Validate-SQLExpress.ps1 index 951e7048b..fc54a4d06 100644 --- a/images/win/scripts/Installers/Validate-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Validate-SQLExpress.ps1 @@ -25,6 +25,7 @@ function Test-SqlConnection { $sqlConnection = New-Object System.Data.SqlClient.SqlConnection $connectionString $sqlConnection.Open() Write-Host -Object "Connection to database: {0} in in was successful. Version of SQL Express is: {1}" -f $sqlConnection.Database,$sqlConnection.ServerVersion + return $sqlConnection.ServerVersion } catch { Write-Host -Object "Connection to SQL Express cannot be established." exit 1 @@ -34,4 +35,17 @@ function Test-SqlConnection { } } $instanceName = "$env:computername\SQL2019" -Test-SqlConnection -ServerName $instanceName -IntegratedSecurity "false" -UserName "sa" -Password "P@ssword!!" \ No newline at end of file +$version = Test-SqlConnection -ServerName $instanceName -IntegratedSecurity "false" -UserName "sa" -Password "P@ssword!!" + +# Adding description of the software to Markdown +$SoftwareName = "Git" + +$Description = @" +_Version:_ $version
+_InstanceName:_ SQL2019
+_Username:_ sa
+_Password:_ P@ssword!!
+_Default Path:_ C:\Program Files (x86)\Microsoft SQL Server +"@ + +Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description