Forum Discussion

AbsolutelyFreeWeb's avatar
AbsolutelyFreeWeb
Copper Contributor
Nov 17, 2024

How to download a file from onedrive that is marked as virus-infected?

I have a source file that is (I believe erroneously) marked as virus-infected. OneDrive does not allow me to download it. I have even renamed it to a .txt extension, but it still refuses any download. If I try the "open in text editor" option it gives me the following error:

 

To protect your pc and other files we've removed open share and other commands. Contact your admin for options or learn more

 

The learn more link is really not that helpful. As a personal OneDrive user I don't really have an admin to turn to. Google searching tells me the way to download the file is to use PowerShell Get-SPOMalwareFileContent. However, that command is only accessible to SharePoint admins. 

 

But I'm only a consumer personal OneDrive user. What I see is that the site seems to indicate that I should be able to download the file regardless of all warnings, but none of the download options and buttons do anything. They don't give an error, clicking on download just does nothing at all.

 

Can anyone help?

  • bitdruid's avatar
    bitdruid
    Copper Contributor

    just writing here because this error still persists. i stored a lot of files for my university in onedrive. some files related to mobile security containing android malware and some windows executables to sideload. onedrive blocked all zip containers and i was not even able to download them using the web ui. this is the biggest **bleep** i have ever seen. THANK YOU MICROSOFT!!!!! What will happen now: i will buy a google-one plan and cancel my xbox in favour of steam, will use an open-source office replacement and for sure will remove all files from your cloud. cant believe this. if there is one thing i hate most then it is when a company thinks it has to patronise me.

  • Digging a bit more, I looked at the url being called when clicking download. The domain called is:

     

    https://my.microsoftpersonalcontent.com/personal/

     

    with a parameter AVOverride=1

     

    However, that parameter seems not to work as the error from that url is:

     

    {"error":{"code":"malwareDetected","message":"Malware detected"}}

     

    At this point, it looks like a bug that the AVOverride parameter is ignored

Resources