Recycle-bin-cleanup-enabled:Stsadm 屬性 (Office SharePoint Server)
描述
指定是否要清除資源回收筒。
使用 recycle-bin-retention 屬性時,true 值會設定 [之後] 選項,false 值會設定 [永遠不要] 選項;使用 second-stage-recycle-bin-quota 屬性時,則設定 [關閉] 選項。這是來自<Recycle-bin-retention-period>及<Second-stage-recycle-bin-quota>屬性的獨立設定。您可以指定保留期間的天數,recycle-bin-cleanup-enabled 屬性可設為 [永遠不要]。此案例如果存在,並已經過指定天數,因為 cleanup-enabled 屬性設為 [永遠不要],所以不會清除資源回收筒。
您也可以指定第二階段資源回收筒的配額量,recycle-bin-cleanup-enabled 屬性可設為 [關閉]。此案例如果存在,並已關閉第二階段資源回收筒的功能,則不刪除第二階段資源回收筒的任何項目。
此屬性相當於 [刪除資源回收筒中的項目]** 使用者介面設定,位於 SharePoint 管理中心網站的 [Web 應用程式一般設定] 頁面上。
語法
setproperty 作業的語法為:
stsadm -o setproperty
-propertyname recycle-bin-cleanup-enabled
-propertyvalue {On | Off}
[-url] <URL>
getproperty 作業的語法為:
stsadm -o getproperty
** propertyname recycle-bin-cleanup-enabled**
[-url] <URL>
注意
您可使用 -pn 替代 -propertyname,而以 -pv 替代 -propertyvalue。
值
下表顯示可能的值。
名稱 | 值 |
---|---|
propertyname |
取得或設定屬性名稱。 |
propertyvalue |
On:啟用資源回收筒的清除功能。設定 [之後] 選項。此為預設值。 Off:停用資源回收筒的清除功能。設定 [永遠不要] 選項。 |
url |
Web 應用程式的 URL 路徑一般會使用 http://*server_name* 格式。 |
範例
若要停用資源回收筒的清除功能,請使用下列語法:
stsadm -o setproperty -pn recycle-bin-cleanup-enabled -pv off
若要檢視 recycle-bin-cleanup-enabled 屬性目前的設定,請使用下列語法:
stsadm -o getproperty -pn recycle-bin-cleanup-enabled