Created: 1/24/23

Updated: 1/24/23

Something I found myself doing recently was to harden M365 services such as Sharepoint from malware. Below is a PowerShell command to prevent the download of infected files from Sharepoint.

  1. Open PowerShell in an elevated state
  2. Set-SPOTenant -DisallowInfectedFileDownload $True
  3. verify that the setting is enabled with “Get-SPOTenant”