Fix 'File in Use by Another Program' Error in Command Prompt - Windows Defender 0x80070020 Troubleshooting Guide-OneDrive Sync Error Authentication Failed Guide

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.