Backup Fails with WMI Errors
Category: Acronis Troubleshooting | Windows System Issues
Priority:CRITICAL
Last Updated:November 2025
Problem
Acronis backup operations fail due to Windows Management Instrumentation (WMI) malfunctions. The backup process cannot retrieve critical system information about disks, volumes, and operating system configuration, causing the entire backup to abort.
WMI serves as a core Windows service that provides standardized access to system information. When WMI becomes corrupted or fails, Acronis cannot query essential details needed to create consistent backups, resulting in failures with error code 1012 and "WMI ExecQuery failed" messages.
Symptoms
Common Error Messages
You may encounter one or more of these WMI-related error messages during backup operations:
Error Pattern 1 - ExecQuery Failed:
Error code: 1012 Module: 20 LineInfo: 0xC523D9A02D03D55C Fields: {"Query":"SELECT * FROM Win32_OperatingSystem","$module":"mms_vsa64_3917"} Message: WMI 'ExecQuery' failed.
Error Pattern 2 - Query Failed with Details:
Error code: 1012 Module: 20 LineInfo: 0xC523D9A02D03D55C Fields: {"$module":"mms_vsa64_12420","Query":"SELECT * FROM Win32_OperatingSystem"} Message: WMI 'ExecQuery' failed for query '%ls'.
Error Pattern 3 - Repository Corruption:
A Windows Management Instrumentation (WMI) query has failed. The WMI repository may be corrupted or it works incorrectly.
Backup Behavior
-
Backup plans fail immediately or shortly after starting
-
Error appears consistently across different backup types (full, incremental, differential)
-
Other Windows applications relying on WMI may also malfunction
-
System information may be incomplete in Windows Event Viewer or Task Manager
Impact on Operations
-
Scheduled backups fail automatically
-
Manual backup attempts produce WMI errors
-
Device information may not display correctly in Acronis console
-
System monitoring and reporting features fail
Solution
Step 1: Confirm WMI Malfunction
Before attempting repairs, verify that WMI is indeed malfunctioning.
Method A: WMI Control Test
-
Press Win + R to open Run dialog
-
Type
wmimgmt.mscand press Enter -
Right-click WMI Control (Local) in the left pane
-
Select Properties
Method B: Computer Management
-
Open Control Panel → Administrative Tools → Computer Management
-
Expand Services and Applications
-
Right-click WMI Control
-
Select Properties
Expected Results: - ✅ WMI Working: "Successfully connected to WMI" message appears - ❌ WMI Broken: "Invalid class", "Access denied", or connection timeout error
Step 2: Enable WMI Event Tracing
Enable detailed WMI logging to diagnose the specific failure:
-
Press Win + R and type
eventvwr.msc, press Enter -
Click View menu → Select Show Analytic and Debug Logs
-
Navigate to: Applications and Service Logs → Microsoft → Windows → WMI-Activity
-
Right-click Trace log → Select Properties
-
Check Enable Logging checkbox
-
Click OK
Reproduce the Issue: 1. Attempt to run a backup that previously failed 2. Return to Event Viewer 3. Review entries in WMI-Activity log 4. Look for error events with detailed failure information
Some events may contain specific resolution instructions based on the error type.
Step 3: Check WMI Repository Consistency
Open an elevated Command Prompt (Run as Administrator):
winmgmt /verifyrepository
Possible Results:
|
Result |
Meaning |
Action |
|---|---|---|
|
"WMI Repository is consistent" |
✅ Repository healthy |
Skip to Step 5 |
|
"WMI Repository is inconsistent" |
❌ Repository corrupted |
Continue to Step 4 |
|
"WMI Repository verification failed" |
❌ Severe corruption |
Continue to Step 4 |
Step 4: Repair WMI Repository
⚠️ IMPORTANT WARNING:
Rebuilding the WMI repository may affect third-party applications that store configuration in WMI. Document installed applications and be prepared to reinstall or reconfigure them if necessary.
Create System Restore Point (Recommended):
wmic.exe /Namespace:\\root\default Path SystemRestore Call CreateRestorePoint "Before WMI Repair", 100, 7
4a. Stop WMI Service:
sc config winmgmt start= disabled net stop winmgmt /y
4b. Salvage Existing Repository:
winmgmt /salvagerepository
This attempts to recover data from the corrupted repository.
4c. Reset Repository:
winmgmt /resetrepository
This rebuilds the repository from scratch using system defaults.
4d. Verify Repository Folder:
Navigate to %windir%\System32\wbem\ and check for the repository folder:
-
If the folder exists and is very large (>100MB), consider backing it up, then renaming it:
cd %windir%\System32\wbem\ rename repository repository.old
4e. Re-enable WMI Service:
sc config winmgmt start= auto net start winmgmt
4f. Verify Repair:
winmgmt /verifyrepository
Should now return: "WMI Repository is consistent"
Step 5: Rebuild WMI Repository Completely (If Step 4 Fails)
If the repository remains inconsistent, perform a complete rebuild:
5a. Stop Dependent Services:
net stop winmgmt /y net stop iphlpsvc /y
5b. Rename Repository Folder:
cd %windir%\System32\wbem rename repository repository.broken
5c. Re-register WMI Components:
for /f %s in ('dir /b *.dll') do regsvr32 /s %s for /f %s in ('dir /b *.mof') do mofcomp %s
5d. Start Services:
net start winmgmt net start iphlpsvc
5e. Verify:
wmimgmt.msc
Test by right-clicking WMI Control and selecting Properties.
Step 6: Restart Acronis Services
After WMI repair:
-
Open Services management console (
services.msc) -
Locate these services: Acronis Managed Machine Service Acronis Agent Service Acronis VSS Provider
-
Right-click each service and select Restart
Or use Command Line:
net stop mms net stop AcrSch2Svc net stop afcdpsrv net start mms net start AcrSch2Svc net start afcdpsrv
Step 7: Test Backup Operation
-
Open Acronis management console or agent
-
Run a test backup (can be a small file-level backup)
-
Monitor the backup log for any WMI errors
-
Verify backup completes successfully
Prevention
Regular WMI Health Monitoring
Weekly Verification Schedule:
Create a scheduled task to check WMI health:
-
Open Task Scheduler (
taskschd.msc) -
Create a new task: Actions → Create Task
-
Configure to run weekly as SYSTEM account
-
Add action: Run
winmgmt /verifyrepositoryand log results
PowerShell Monitoring Script:
# WMI Health Check Script $result = winmgmt /verifyrepository if ($result -notlike "*consistent*") { # Send alert email or write to event log Write-EventLog -LogName Application -Source "WMI Monitor" ` -EventId 1001 -EntryType Error ` -Message "WMI Repository inconsistency detected" }
System Maintenance Best Practices
-
Windows Updates:
-
Install all critical and security updates
-
Restart systems after updates to ensure WMI components initialize correctly
-
Review update release notes for WMI-related fixes
-
-
Antivirus Exclusions: Add these WMI-related paths to antivirus exclusions:
%windir%\System32\wbem\ %windir%\System32\wbem\repository\ C:\ProgramData\Acronis\
-
Avoid WMI Corruption:
-
Don't use aggressive system "optimization" tools
-
Avoid force-shutting down systems during backups
-
Ensure adequate disk space (10GB+ free on system drive)
-
Don't manually edit WMI repository files
-
-
Capacity Planning:
-
Monitor WMI repository size (typically 10-50MB)
-
If repository exceeds 100MB, investigate excessive WMI providers
-
Clean up unused WMI classes periodically
-
Pre-Backup Environment Checks
Before deploying Acronis in production:
-
Verify WMI functionality on all target systems
-
Test WMI queries manually:
wmic os get caption -
Check Event Viewer for existing WMI errors
-
Ensure Windows is fully patched
-
Verify adequate free disk space
-
Document baseline WMI repository size
Proactive Monitoring
Enable WMI Activity Logging Permanently:
On critical systems, keep WMI tracing enabled: 1. Event Viewer → WMI-Activity → Trace 2. Properties → Enable Logging 3. Increase maximum log size to 100MB or more 4. Configure log retention policies
Create Alerts: - Configure Event Viewer subscriptions for WMI errors - Set up SCOM or other monitoring tools to track WMI health - Create alerts for error code 1012 in Acronis logs
Enterprise Deployment Guidelines
For Large Organizations:
-
Baseline Testing:
-
Test Acronis on representative systems from each hardware model
-
Document WMI behavior on different Windows versions
-
Create compatibility matrix for your environment
-
-
Staged Rollout:
-
Deploy to test group first (5-10% of systems)
-
Monitor for WMI issues over 2-4 weeks
-
Address issues before broader deployment
-
-
Standard Operating Procedures:
-
Document WMI repair procedures for your helpdesk
-
Create runbooks for common WMI failures
-
Train support staff on WMI troubleshooting
-
-
Backup Strategy:
-
Don't rely solely on one backup solution
-
Consider hybrid approaches for critical systems
-
Test recovery procedures regularly
-
Additional Resources
-
Microsoft Documentation:
WMI Troubleshooting
-
Microsoft Support:
How to rebuild the WMI repository
-
Acronis Knowledge Base:
WMI Requirements for Backup Operations
-
Related Article:
Device Not Appearing in Console
Understanding WMI
What is WMI?
Windows Management Instrumentation (WMI) is Microsoft's implementation of Web-Based Enterprise Management (WBEM), an industry standard for accessing management information in enterprise environments.
Key Functions: - Provides standardized access to system information - Enables remote management capabilities - Supports scripting and automation - Powers many Windows administrative tools
How Acronis Uses WMI
Acronis Cyber Protect uses WMI to: - Enumerate disks and volumes: Identify storage devices and partitions - Query OS information: Determine Windows version, architecture, service pack - Monitor services: Check status of backup-related services - Retrieve system state: Gather configuration data for consistent backups - Track changes: Detect system modifications between backups
Common WMI Failure Causes
-
Corrupted Repository: Database corruption from improper shutdowns
-
Insufficient Permissions: WMI service running with incorrect credentials
-
Disk Space: Not enough space for WMI operations
-
Third-Party Conflicts: Poorly written WMI providers from other software
-
Malware Damage: Malicious software corrupting system components
-
Failed Updates: Windows updates that don't complete properly
Troubleshooting Decision Tree
Is WMI working? (wmimgmt.msc test) ├─ YES → Check Acronis-specific logs │ └─ Review network connectivity │ └─ Verify Acronis service status │ └─ NO → Is repository consistent? (winmgmt /verifyrepository) ├─ YES → Check WMI service status │ └─ Restart WMI service │ └─ Check Event Viewer for clues │ └─ NO → Attempt repair ├─ Try /salvagerepository ├─ Try /resetrepository └─ If still failing → Full rebuild
Related Issues
-
Device not appearing in backup management console
-
Backup agent registration failures
-
System information not displaying correctly
-
Scheduled backups failing automatically
-
Incremental backups reverting to full backups
Keywords
WMI error, ExecQuery failed, error code 1012, WMI repository corrupted, Windows Management Instrumentation, backup fails, WMI repair, repository inconsistent, module 20, winmgmt, backup error 1012
Need Additional Help?
If WMI repair does not resolve backup failures: 1. Collect Windows Event Logs (System and Application) 2. Gather WMI-Activity logs with tracing enabled 3. Export Acronis logs from C:\ProgramData\Acronis\Agent\var\log\ 4. Run msinfo32 and save system information report 5. Contact Acronis Support with all collected diagnostics