![]() | |||||
![]() ![]() ![]() ![]() ![]() |
You can specify antivirus settings by using SharePoint Central Administration or by using the command line.
Use SharePoint Central Administration to configure antivirus protection
Note The default time is 300 seconds, or 5 minutes. This should be enough time to allow the antivirus processes to finish without affecting performance. The default time is recommended, but you can adjust this time if you are experiencing performance issues.
By default, the number of threads is set to five, which should be sufficient for even a large number of sites. It is recommended that you use the default number of threads, but you can adjust the number of threads to modify performance.
Use the command line to configure antivirus protection
You can also configure antivirus protection by setting properties on the command line. To set a property, you use the Stsadm.exe tool with the setproperty operation. The following properties are available for use in configuring antivirus protection.
Property name | Description | Values |
avallowdownload | Specifies whether users can download infected documents to their client computers. | yes/no |
avcleaningenabled | Specifies whether antivirus cleaning is enabled or disabled. | yes/no |
avdownloadscanenabled | Specifies whether documents are scanned on download. | yes/no |
avnumberofthreads | Specifies the number of threads to use for antivirus processes. | A numerical value—the number of threads to use |
avtimeout | Specifies how long to wait before timing out an antivirus process. | A numerical value, in seconds. |
avuploadscanenabled | Specifies whether documents are scanned on upload. | yes/no |
The following example shows the syntax to use when setting an antivirus property:
stsadm.exe -o setproperty -pn property_name -pv property_value
For example, to set the avtimeout property to 200 for http://server_name, use the following syntax:
stsadm.exe -o setproperty -pn avtimeout -pv 200
For more information about setting properties using the command line, see the SharePoint Portal Server 2003 Resource Kit.