Windows / Intune error

0X80070020

The process cannot access the file because another process is using it.

Symbol / family
ERROR_SHARING_VIOLATION
Signed decimal
-2147024864
Unsigned decimal
2147942432

What it means here

A file lock or incompatible sharing mode prevented access.

Technical reference: Microsoft documentation or Microsoft-hosted support material

Resolution playbook

From symptom to verified fix

Start with evidence, change one variable at a time, and confirm the result before closing the incident.

1

Likely causes

  • A file lock or incompatible sharing mode prevented access.
  • The failing operation supplied invalid, missing, stale, or locked state.
  • A dependency, service, file, registry item, or resource was unavailable at the time of the call.
2

Recommended fix

  1. Identify the process holding the file handle.
  2. Stop or coordinate the competing operation instead of repeatedly retrying.
  3. Check antivirus, backup, indexing, and installer activity.
3

Verify

  1. Repeat the smallest operation that originally failed.
  2. Confirm the same HRESULT does not recur at the matching timestamp.
  3. Check the management console or service report for a fresh successful state, not only a client-side message.
4

Escalate when

  • The error persists after the relevant checks and a clean retry.
  • Multiple devices, users, or networks show the same failure, suggesting service or policy scope.
  • You can provide the exact UTC time, operation, device/build, correlation identifiers, and the relevant event or service logs.
Capture recent matching system errors
Get-WinEvent -FilterHashtable @{LogName='System'; Level=2; StartTime=(Get-Date).AddHours(-2)} | Select-Object -First 40 TimeCreated,ProviderName,Id,Message

Read-only. Narrow the time window to the failure before sharing the output.

← Search another error