Check Which Process Locked a File Using PowerShell - Troubleshooting Error 0x80240034 in Windows Defender-Windows 10 Command Prompt DLL Error Fix

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