Antivirus Settings in SharePoint 2010

Antivirus settings in sharepoint environment can be enabled in Central Administration as well as through Powershell. In this blog, I will provide the powershell commands to enable the antivirus settings.
 
 
# Get a reference to the Administration
 
$adminService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
 
# Set  antivirus settings
$adminService.AntivirusSettings.AllowDownload = $false
 
# Enable Download Scan
$adminService.AntivirusSettings.DownloadScanEnabled = $true
 
# Enable upload scan
$adminService.AntivirusSettings.UploadScanEnabled = $true
 
# Enable Cleaning
$adminService.AntivirusSettings.CleaningEnabled = $true
 
Happy SharePointing :-) 
Ebook Download
View all
Learn
View all