Files
runner-images/images/windows/scripts/build/Install-SQLPowerShellTools.ps1
Pavel Iakovenko 7eede67cd0 Validate authenticode signature using the certificate Subject (#12474)
* Use cerificate subject to verify authenticode signature

* Use function instead of script variables

* Switch all places to using Get-MicrosoftPublisher

* Remove SignatureThumbprint

* Use common subject for the Edge driver
2025-06-30 19:33:57 -06:00

20 lines
706 B
PowerShell

################################################################################
## File: Install-SQLPowerShellTools.ps1
## Desc: Install SQL PowerShell tool
################################################################################
$baseUrl = "https://download.microsoft.com/download/B/1/7/B1783FE9-717B-4F78-A39A-A2E27E3D679D/ENU/x64"
# install required MSIs
Install-Binary `
-Url "${baseUrl}/SQLSysClrTypes.msi" `
-ExpectedSubject $(Get-MicrosoftPublisher)
Install-Binary `
-Url "${baseUrl}/SharedManagementObjects.msi" `
-ExpectedSubject $(Get-MicrosoftPublisher)
Install-Binary `
-Url "${baseUrl}/PowerShellTools.msi" `
-ExpectedSubject $(Get-MicrosoftPublisher)