Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update-DbaInstance not installing latest security update for a CU #9327

Open
dokier opened this issue Apr 22, 2024 · 0 comments
Open

Update-DbaInstance not installing latest security update for a CU #9327

dokier opened this issue Apr 22, 2024 · 0 comments
Labels
bugs life triage required New issue that has not been reviewed by maintainers

Comments

@dokier
Copy link

dokier commented Apr 22, 2024

Verified issue does not already exist?

I have searched and found no existing issue

What error did you receive?

WARNING: [10:28:44][Get-SqlInstanceUpdate] 14.0.3460 on computer [mysqlserver.domain.com] is already the latest available.

Steps to Reproduce

I have a SQL Server 2017 instance I was trying to patch to the latest available build version (14.0.3465.1) This is 5029376 Security update for SQL Server 2017 CU31: October 10, 2023. You can also refer to https://sqlserverbuilds.blogspot.com/

# provide your command(s) executed pertaining to dbatools
Update-DbaInstance -ComputerName mysqlserver -Restart -Path \\share\Updates -Confirm:$false
# please include variable values (redacted or fake if needed) for reference

Please confirm that you are running the most recent version of dbatools

2.1.14

Other details or mentions

dbatools-buildref-index.json has the latest information

{ "CU": "CU31", "Version": "14.0.3456", "KBList": "5016884" }, { "Version": "14.0.3460", "KBList": "5021126" }, { "Version": "14.0.3465", "KBList": "5029376" },

but because the last two elements do not have "CU" tags, these are not installed. This all comes down to Get-SqlInstanceUpdate calling Test-DbaBuild on line 109.

$latestCU = Test-DbaBuild -Build $currentVersion.BuildLevel -MaxBehind '0CU'

If this is by designed, should we have an option in Update-DbaInstance to override this so that it includes security updates for a CU? You can always specify the KB in the cmdlet but that doesn't scale well when you're passing a long list of servers that includes different versions of SQL.

What PowerShell host was used when producing this error

Windows PowerShell (powershell.exe)

PowerShell Host Version

Name Value


PSVersion 5.1.20348.2227
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.2227
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

SQL Server Edition and Build number

SQL 2017, (14.0.3465.1) now, but that's because I ended up using Update-DbaInstance by specifying the KB number.

.NET Framework Version

PSChildName Version


Client 4.8.04161
Full 4.8.04161
Client 4.0.0.0

@dokier dokier added bugs life triage required New issue that has not been reviewed by maintainers labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs life triage required New issue that has not been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

1 participant