- Newest
- Most votes
- Most comments
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:
-
Corrupted Windows Update components: The Windows Update service or related components might be corrupted, preventing successful installation of updates.
-
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.
-
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.
-
Windows Update service issues: The required services for Windows Update might not be running properly.
To troubleshoot and resolve this issue:
- 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
-
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.
-
Manually install the update: You might need to download the update directly from Microsoft and install it manually using DISM.
-
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
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
-
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 -
Schedule a Maintenance Window:
- Plan a reboot after clearing caches
- Re-run patch compliance scan
-
Monitor and Verify:
# Check compliance after remediation Get-WUList | Where-Object {$_.KB -eq "KB2267602"} Get-MpComputerStatus
Prevention Strategies
-
Regular Maintenance:
- Schedule monthly Windows Update cache clearing
- Monitor Defender engine versions
- Keep SSM Agent updated
-
Automation:
- Create SSM documents for automated remediation
- Set up CloudWatch alarms for patch compliance failures
-
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 /scannowandDISM /Online /Cleanup-Image /RestoreHealth - Consider reinstalling Windows Defender
- Contact AWS Support for SSM-specific issues
