logo
search
Data Protection Issues

How to Fix Trojan Warning Returning in OneDrive Temp Folder

Maira MehtabMaira Mehtab Sep 20, 2026 869 views

Question details

The user experiences a recurring Trojan warning from Vipre antivirus in the local C:\OneDriveTemp folder that reappears whenever OneDrive resynchronizes.

Product
Microsoft OneDrive
Device & OS
Windows
Scenario
Syncing files using OneDrive while a third-party antivirus is actively scanning the local drive.
Observed behavior
A Trojan warning is triggered in the C:\OneDriveTemp folder. Deleting the file and pausing sync removes the threat temporarily, but it returns upon resyncing. The flagged file is not visible on the OneDrive web version.
Before you start

Temporarily pause your OneDrive synchronization to prevent the suspicious file from repeatedly downloading while you investigate the flagged threat.

Solution 1Recommended

Scan and Verify with Microsoft Defender

Use Microsoft Defender to get a second opinion on the detected file, as third-party antivirus alerts can sometimes be false positives.

Because temporary synchronization files are often encrypted or fragmented, some third-party antivirus programs may incorrectly identify them as Trojans. Running a scan with built-in Windows security tools can help determine if the threat is genuine.

1
Pause OneDrive Sync

Click the OneDrive cloud icon in your system tray, click the Gear (Help & Settings) icon, and select 'Pause syncing'.

2
Open Windows Security

Click the Start menu, type 'Windows Security', and press Enter to launch the built-in antivirus dashboard.

3
Run a Custom Scan

Navigate to 'Virus & threat protection', click 'Scan options', select 'Custom scan', and then click 'Scan now'. Select the C:\OneDriveTemp folder to check for genuine threats.

False Positives: If Microsoft Defender does not flag the folder, the Vipre warning is likely a false positive caused by the way OneDrive handles temp files.
Free Microsoft Office alternative

Switch to WPS Office for Secure Cloud Syncing

If you are dealing with OneDrive sync issues and third-party antivirus conflicts, WPS Office provides a free, lightweight, and highly compatible alternative to Microsoft Office. Enjoy seamless document editing with reliable, integrated cloud storage.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for your PC.
  2. 2. Install and Launch: Follow the on-screen instructions to install the suite and easily open your existing Office files.
  3. 3. Sync Securely: Sign in to enable WPS Cloud, allowing you to safely back up and synchronize your documents without third-party folder conflicts.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Integrated WPS Cloud for secure and conflict-free document synchronization.Lightweight software with a familiar interface for seamless migration from Microsoft Office.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Trojan warning only appear in the OneDriveTemp folder?

The OneDriveTemp folder is used to temporarily store data chunks during synchronization. Some third-party antivirus programs mistakenly flag these incomplete or fragmented files as malicious, triggering a localized warning.

Why isn't the detected file visible on the OneDrive website?

The file in the Temp folder is likely an incomplete data fragment or a hidden system cache file generated during the local sync process. Because it hasn't been fully assembled or uploaded, it will not appear as a standard document on the cloud server.

Can I safely delete the contents of the OneDriveTemp folder?

Yes, you can safely delete the contents of this folder after pausing your OneDrive synchronization. Once the folder is cleared, you can resume syncing, and OneDrive will recreate the necessary temporary files properly.