Skip to content

Do not allow infected files to be downloaded from SharePoint Online

Last updated on Sep 30, 2021

Do not allow infected files to be downloaded from SharePoint Online

Office 365 helps protect your environment by detecting viruses and malware in file that users upload to SharePoint Online. Files are scanned for viruses after they are uploaded. If a file is found to be infected, a property is set so that users can’t download or sync the file.

To get started, a connection to SharePoint Online needs to be established. The SharePoint PowerShell Module can be downloaded here.

Once the PowerShell Module has been installed, run the following to connect to SharePoint Online.

Enter Global Admin username and Password

A screenshot of a cell phone Description automatically generated

Now that a connect has been established, let’s go ahead and view the current settings for Infected Files.

A close up of a logo Description automatically generated

As per the above image, you will notice that the default configuration allows for the infected file to be downloaded.

Now let go ahead and change this setting to Disallow Infected Files to be downloaded.

A close up of a logo Description automatically generated

To view the changes run:

A picture containing screenshot Description automatically generated

Sharing is caring!

Published inOffice 365PowerShellSharePoint OnlineThatLazyAdmin Blog

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *