File-Level Antivirus Scanning and SharePoint 2010
In order to prevent unexpected behaviour or performance issues I am going to exclude various files and folders from scanned by my Antivirus software. This process will differ depending on the Antivirus solution in place so instead of providing a step by step guide I’ll just include a list of the files and folders that shouldn’t be scanned.
Note: You may need to replace C: drive with the drive letter relevant to your installation
Exclusions for SharePoint Foundation
- C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions
- C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
- C:\Users\<service account>\AppData\Local\Temp\WebTempDir
- C:\Windows\Syswow64\LogFiles (or C:\Windows\system32\LogFiles for 32 bit systems)
As I use specific accounts for SharePoint services or application pool identities I’ll be excluding the following folders:
- C:\Users\<ServiceAccount>\AppData\Local\Temp
- C:\Users\Default\AppData\Local\Temp
Exclusions for SharePoint Standard/Enterprise servers
- C:\Program Files\Microsoft Office Servers\14.0\Data
- C:\Program Files\Microsoft Office Servers\14.0\Logs
- C:\Program Files\Microsoft Office Servers\14.0\Bin
Exclusions for SQL servers
- *.MDF
- *.LDF
- *.NDF
- *.BAK
- *.TRN