Microsoft Windows SharePoint Services
HomeBackForwardPrint

Show AllShow All

Configure antivirus settings

Configure antivirus settings

You can specify antivirus settings by using SharePoint Central Administration or by using the command line.

Use SharePoint Central Administration to configure antivirus protection

  1. Click Start, point to Programs, point to Administrative Tools, and then click SharePoint Central Administration.
  2. On the SharePoint Central Administration page, under Security Configuration, click Configure antivirus settings.
  3. Select the Scan documents on download box.
  4. Select the Scan documents on upload box.
  5. If desired, select the Attempt to clean infected documents box.
  6. If you want to allow users to save potentially infected files locally, select the Allow users to download infected documents check box.
  7. In the Time out scanning after ___ seconds box, type the number of seconds to allow before timing out the scanning process.

    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.

  8. In the Allow scanner to use up to ___ threads box, type the number of threads to allow the scanning process to use.

    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.

  9. Click OK.

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
avallowdownloadSpecifies 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.

Related Topic

About virus protection

See Also

Windows SharePoint Services Partners Site
©2003 Microsoft Corporation. All rights reserved.