How to download files marked as malware from Onedrive

$ rclone.exe version
rclone v1.57.0
- os/version: Microsoft Windows 10 Pro 1903 (64 bit)
- os/kernel: 10.0.18362.10024 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount

I'm syncing from my Microsoft Onedrive business account to my harddrive with

$ rclone.exe sync -P "onedrive:" ".\"

I'm getting these errors that prevent me from downloading files marked as malware.

2022-01-11 20:45:12 ERROR : dir/to/file/filename: Failed to copy: failed to open source object: malwareDetected: Malware detected

I know that with google drive, I can do --drive-acknowledge-abuse to download files flagged as malware, but I don't see any such options in the docs in Onedrive.
How can I do this with Onedrive?

hello and welcome to the forum,

as of now, using rclone, there is not a way to download such a file.
have you seen this

for sure, can download via onedrive website.

there might be a way using office365 admin portal to disable that feature.

I don't have access to the admin portal (I think?), so I can't test that..
I guess I'll download the files manually later after the sync ends, since there's only about 10 files that got flagged.
Thanks for the reply!

the odds are that:
if microsoft onedrive considers the files to be malware, then microsoft windows os will do the same.

I disabled Windows Defender, so I think it'll be alright, thanks for the concern : )
(I do use 3rd party antivirus that doesn't cause me any trouble)

sure, imho, i depend on my antivirus to give me trouble.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.