Skip to content

KB2267602 showing non-compliant on my Windows Server — failing for two weeks

0

I’m seeing KB2267602 marked as non-compliant on my Windows Server for the past two weeks.

This is causing my patch compliance checks to fail.

The update doesn’t seem to install successfully, even though it worked fine in the past.

KB2267602 appears to be a Microsoft Defender definition update.

Has anyone faced this issue before?

Why would KB2267602 fail repeatedly?

How can I troubleshoot or remediate this in an AWS Systems Manager Patch Manager setup?

asked a year ago1.2K views

2 Answers
0

The KB2267602 update is a Microsoft Defender Antivirus definition update that appears to be failing on your Windows Server. This is causing it to be marked as "Non-Compliant" in AWS Systems Manager Patch Manager.

There are several possible reasons for this persistent failure:

  1. Corrupted Windows Update components: The Windows Update service or related components might be corrupted, preventing successful installation of updates.

  2. The patch might have been replaced: Microsoft sometimes replaces patches with newer versions. You can verify this by checking the Microsoft Update Catalog for KB2267602 to see if it has been replaced by other updates.

  3. Resource constraints: If you're running on a smaller instance type (like a "large" instance), there might not be sufficient resources for the update to complete successfully.

  4. Windows Update service issues: The required services for Windows Update might not be running properly.

To troubleshoot and resolve this issue:

  1. Reset Windows Update components:
  • Rename the SoftwareDistribution folder: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
  • Rename the catroot2 folder: ren C:\Windows\System32\catroot2 catroot2.old
  • Restart the required services:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
  1. Check for corrupted updates: The last Cumulative Security Update or Service Stack Update might be corrupted, preventing new updates from installing. You could try uninstalling the last Cumulative Update and then attempt to install the latest one.

  2. Manually install the update: You might need to download the update directly from Microsoft and install it manually using DISM.

  3. Consider instance sizing: If you're using a smaller instance type, consider temporarily scaling up to a larger instance type (like xlarge) to complete the update process.

Remember that for Windows Server, a patch can be in a "Non-Compliant" state when it's marked as "MISSING" (approved in the baseline but not installed) or "FAILED" (approved but couldn't be installed).
Sources
Patch compliance state values - AWS Systems Manager
How do I troubleshoot and deep dive windows patching / updates installation failures on EC2 Windows Instances? | AWS re:Post
Troubleshooting Patch Manager - AWS Systems Manager
windows update not installing using image builder when using large instance type. Same works with instance type as xlarge. | AWS re:Post

answered a year ago

0

There are several common causes and solutions for this problem.

Understanding KB2267602

KB2267602 is a Microsoft Defender Antimalware Platform Update that updates the antimalware engine itself (not just definitions). It's critical for security but can sometimes fail due to various reasons.

Common Causes and Solutions

1. Check Windows Update Service Status

# Check if Windows Update service is running
Get-Service -Name wuauserv
Get-Service -Name BITS
Get-Service -Name cryptsvc

# Restart services if needed
Restart-Service -Name wuauserv -Force
Restart-Service -Name BITS -Force
Restart-Service -Name cryptsvc -Force

2. Clear Windows Update Cache

# Stop Windows Update service
Stop-Service -Name wuauserv -Force

# Clear the update cache
Remove-Item -Path "C:\Windows\SoftwareDistribution\*" -Recurse -Force

# Restart Windows Update service
Start-Service -Name wuauserv

3. Manual Microsoft Defender Update

# Update Defender definitions manually
Update-MpSignature -UpdateSource Microsoft

# Check Defender version
Get-MpComputerStatus | Select-Object AMProductVersion, AMEngineVersion, AntivirusSignatureLastUpdated

4. Reset Windows Update Components

# Run Windows Update troubleshooter
Get-WindowsUpdateLog

# Reset Windows Update components
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver

ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old

net start wuauserv
net start cryptSvc
net start bits
net start msiserver

AWS Systems Manager Specific Solutions

1. Check SSM Agent Status

# Verify SSM Agent is running and updated
Get-Service -Name AmazonSSMAgent
Get-ItemProperty -Path "HKLM:\SOFTWARE\Amazon\SSM" -Name Version

2. Review Patch Manager Configuration

  • Check your Patch Baseline to ensure it includes security updates
  • Verify the Maintenance Window configuration
  • Review Patch Groups and instance targeting

3. Manual Patch Installation via SSM

{
  "documentName": "AWS-RunPowerShellScript",
  "parameters": {
    "commands": [
      "Install-WindowsUpdate -AcceptAll -AutoReboot"
    ]
  }
}

4. Check Patch Manager Logs

Review logs in:

  • C:\ProgramData\Amazon\PatchBaselineOperations\Logs
  • Windows Event Viewer → Applications and Services Logs → Amazon SSM Agent

Advanced Troubleshooting

1. Download and Install Manually

# Download the latest platform update
$url = "https://go.microsoft.com/fwlink/?LinkID=121721&arch=x64"
$output = "C:\temp\mpam-fe.exe"
Invoke-WebRequest -Uri $url -OutFile $output

# Install the update
Start-Process -FilePath $output -ArgumentList "/quiet" -Wait

2. Check for Conflicting Software

  • Disable third-party antivirus temporarily
  • Check for pending reboots: Test-PendingReboot
  • Verify disk space availability

3. Registry Check

# Check if Windows Update is disabled
Get-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -ErrorAction SilentlyContinue

Recommended Remediation Steps

  1. Immediate Actions:

    # Run these commands in sequence
    Stop-Service -Name wuauserv -Force
    Remove-Item -Path "C:\Windows\SoftwareDistribution\DataStore\*" -Recurse -Force
    Start-Service -Name wuauserv
    Update-MpSignature -UpdateSource Microsoft
  2. Schedule a Maintenance Window:

    • Plan a reboot after clearing caches
    • Re-run patch compliance scan
  3. Monitor and Verify:

    # Check compliance after remediation
    Get-WUList | Where-Object {$_.KB -eq "KB2267602"}
    Get-MpComputerStatus

Prevention Strategies

  1. Regular Maintenance:

    • Schedule monthly Windows Update cache clearing
    • Monitor Defender engine versions
    • Keep SSM Agent updated
  2. Automation:

    • Create SSM documents for automated remediation
    • Set up CloudWatch alarms for patch compliance failures
  3. Baseline Management:

    • Review and update patch baselines regularly
    • Test updates in dev environments first

If these steps don't resolve the issue, you may need to:

  • Check for OS corruption: sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth
  • Consider reinstalling Windows Defender
  • Contact AWS Support for SSM-specific issues
EXPERT

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.