Recycle-bin-cleanup-enabled : propriétés Stsadm (Office SharePoint Server)
Mise à jour : 2007-11-08
Description
Specifies whether a cleanup to the recycle bin occurs.
A value of true sets the "After" option and a value of false sets the "Never" option when the recycle-bin-retention property is used and sets the "Off" option when the second-stage-recycle-bin-quota property is used. This is an independent setting from the Recycle-bin-retention-period and Second-stage-recycle-bin-quota properties. You can have a number of days specified for the retention period and the recycle-bin-cleanup-enabled property can be set to "Never". If this scenario exists, and the number of days elapsed, a cleanup to the Recycle Bin would not occur as the cleanup-enabled property is set to "Never".
You also can have the quota amount specified for second stage Recycle Bin and the recycle-bin-cleanup-enabled property can be set to "Off". If this scenario exists, the functionality to the second stage Recycle Bin is turned off and no items in the second stage Recycle Bin would be deleted.
This property is equivalent to the Delete items in the Recycle Bin ** user interface setting that is located on the Web Application General Settings page of the SharePoint Central Administration Web site.
Syntax
The syntax for the setproperty operation is:
stsadm -o setproperty
-propertyname recycle-bin-cleanup-enabled
-propertyvalue {On | Off}
[-url] <URL>
The syntax for the getproperty operation is:
stsadm -o getproperty
** propertyname recycle-bin-cleanup-enabled**
[-url] <URL>
Remarque : |
---|
You can substitute -pn for -propertyname and -pv for -propertyvalue. |
Values
The following table shows possible values.
Name | Value |
---|---|
propertyname |
Gets or sets the name of the property. |
propertyvalue |
On: Enables the cleanup of the Recycle Bins. Sets the After option. This is the default. Off: Disables the cleanup of the Recycle Bins. Sets the Never option. |
url |
Typically, a path to the URL of the Web application, in the form http://*server_name*. |
Examples
To disable the Recycle Bin cleanup, use the following syntax:
stsadm -o setproperty -pn recycle-bin-cleanup-enabled -pv off
To view the current setting of the recycle-bin-cleanup-enabled property, use the following syntax:
stsadm -o getproperty -pn recycle-bin-cleanup-enabled