Avcleaningenabled: Stsadm property (Windows SharePoint Services)

Windows SharePoint Services 3.0

Updated: September 13, 2007

Applies To: Windows SharePoint Services 3.0


Topic Last Modified: 2007-09-06

Specifies whether antivirus cleaning is enabled or disabled. This setting cleans infected documents that were discovered during scanning.

This property is equivalent to the Attempt to clean infected documents user interface setting that is located on the Antivirus page of the SharePoint Central Administration Web site.

stsadm -o setproperty

   -propertyname avcleaningenabled

   -propertyvalue {Yes | No}

   [-url] <URL>

The syntax for the getproperty operation is:

stsadm -o getproperty

   propertyname avcleaningenabled

   [-url] <URL>

You can substitute -pn for -propertyname and -pv for -propertyvalue.

The following table shows possible values.


Name Value


Gets or sets the name of the property.


Yes: Enables antivirus cleaning.

No: Disables antivirus cleaning. This is the default value.


Typically, a path to the URL of the Web application, in the form http://server_name.

To enable the avcleaningenabled property so that infected documents are cleaned, use the following syntax:

stsadm -o setproperty -pn avcleaningenabled -pv Yes

To view the current setting of the avcleaningenabled property, use the following syntax:

stsadm -o getproperty -pn avcleaningenabled