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

check of last successful installation of updates in the past 5 days is not valid #315

Closed
svndh opened this issue Mar 15, 2023 · 1 comment
Milestone

Comments

@svndh
Copy link

svndh commented Mar 15, 2023

Operating System
Windows Server 2016
Build 14393.5648

Time of the generated report
15.03.2023 13:19 Uhr

AuditTAP Version
5.5

Issue
The following setting check generates an incorrect result (shows compliant although it is not, because last successful installation of update was on 03.02.2023 )
Windows Base Security
SBD-017 | Check if the last successful installation of updates was in the past 5 days

Screenhots
image

image

image

@svndh svndh changed the title check of last successful installation of updates in the past 5 days is not validcls check of last successful installation of updates in the past 5 days is not valid Mar 15, 2023
@TuemmlerKelch TuemmlerKelch added this to the 5.5 milestone Mar 15, 2023
@svndh
Copy link
Author

svndh commented Mar 15, 2023

Update:

i performed the following command manually which provides the result in the report and got back as a result that the last update was installed successfully on 15.03.2023
(New-Object -com "Microsoft.Update.AutoUpdate").Results.LastInstallationSuccessDate

After checking the Update History again and also the WindowsUpdateClient Section in Event Log, i can confirm that that no update was successfully installed, instead i found a failed installation attempt on that date --> the result of the current used command is consequently not valid

Proposed Solution
Please use the following command and use the first entity, which will provide a valid result
get-wmiobject -class win32_quickfixengineering | Sort-Object -Property InstalledOn -Descending

qngngyn added a commit that referenced this issue Mar 15, 2023
qngngyn added a commit that referenced this issue Mar 15, 2023
qngngyn added a commit that referenced this issue Mar 15, 2023
SteffenWinternheimer added a commit that referenced this issue Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants