File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 $_
You can’t perform that action at this time.
0 commit comments