Skip to content

Commit 8c4dad3

Browse files
Get-DbaInstalledPatch: Add Hotfixes that are named GDR (#10107)
1 parent fb0e145 commit 8c4dad3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/Get-DbaInstalledPatch.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function Get-DbaInstalledPatch {
7272
foreach ($computer in $ComputerName.ComputerName) {
7373
try {
7474
$patches = Invoke-Command2 -ComputerName $computer -Credential $Credential -ScriptBlock {
75-
Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like "Hotfix*SQL*" -or $_.DisplayName -like "Service Pack*SQL*" } | Sort-Object InstallDate
75+
Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object { $_.DisplayName -like "Hotfix*SQL*" -or $_.DisplayName -like "Service Pack*SQL*" -or $_.DisplayName -like "GDR*SQL*" } | Sort-Object InstallDate
7676
}
7777
} catch {
7878
Stop-Function -Message "Failed" -Continue -Target $computer -ErrorRecord $_

0 commit comments

Comments
 (0)