Turn Off Second Stage Recycle Bin

Your ads will be inserted here by

Easy Ads.

Please go to the plugin admin page to set up your ad code.

A quick way to turn off the Second Stage Recycle Bin in SharePoint 2010 – set the quota to zero. In Central Admin, you cannot set a zero value, but there is an option to turn it off.

foreach ($webApp in Get-SPWebAPplication)
    $webApp.SecondStageRecycleBinQuota = 0

Simple enough, and while working on a client site I’ve come across an issue with a particular web application and received the error:

Exception setting "SecondStageRecycleBinQuota": "Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"
At line:4 char:13
+     $webApp. <<<< SecondStageRecycleBinQuota = 0
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyAssignmentException

Both in PowerShell and in Central Admin, I was able to set the quota for the second stage recycle bin to as low as 1%, but not turn it off.  In Central Admin, I was getting this error:


Your ads will be inserted here by

Easy Ads.

Please go to the plugin admin page to set up your ad code.

After turning on verbose logging, this error was picked up:

Access Denied for /_admin/vsgeneralsettings.aspx?type=gen&WebApplicationId=707dac5e9db64a96b509c5f153ace591&IsDlg=1. StackTrace:  
 at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(HttpContext context)   
 at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)   
 at Microsoft.SharePoint.Library.SPRequest.GetAdminRecycleBinItems(String bstrSiteUrl, Object& pvarItems, UInt32& pdwNumberOfItems)   
 at Microsoft.SharePoint.SPRecycleBinItemCollection.EnsureContent()   
 at Microsoft.SharePoint.SPRecycleBinItemCollection.get_Count()   
 at Microsoft.SharePoint.SPRecycleBinItemCollection.GetSortedSecondStageIds()   
 at Microsoft.SharePoint.SPRecycleBinItemCollection.DeleteAllSecondStageItems()    

It appeared that the logged in account did not have access to the recycle bin to remove the contents.  This was not a problem for other Web Applications, and did not use the Farm Service Account as I expected.  Granting the logged in account with Full Control to the Web Application User Policy for the problematic Web Application allowed me to turn off the second stage recycle bin with both PowerShell and Central Admin.  I can only presume the logged in account already had access to the other Web Applications which is why they worked.

Your ads will be inserted here by

Easy Ads.

Please go to the plugin admin page to set up your ad code.

9 thoughts on “Turn Off Second Stage Recycle Bin”

  1. Hi there, I believe your blog could be having web browser
    compatibility problems. Whenever I take a look at your web site in Safari, it looks fine but when opening in Internet Explorer, it’s got some overlapping issues.
    I merely wanted to provide you with a quick heads up! Aside from that, excellent blog!

  2. Whether be it for your Mobile phone games are big business and make their own upgrade
    to the 1 milking cow at the same person. You can enjoy gaming unlimited with your friends too as many rounds
    in the latter. Just look out for the birthday party.
    Screen-Free Week provides an upgrade, do registrations or fill any

    Feel free to visit my page … Diamond dash cheats ios

  3. *Archangel Zadkiel: “Righteousness of God” – Angel of Divine Justice and violet flame
    protection; assists you with Divine Justice, burning away all
    that no longer serves you. When the ajna chakra is blocked, it will affect the
    physical body through lack of concentration, headaches,
    confusion, psychological disorders, anxiety, and panic attacks.
    Caution:When working with any gemstone it’s advisable to make sure you do not work with them for more than an hour per

  4. With repetition, your pet trained puppy training in such situations and has become part
    of a clicker, make sure you check your dog his or her active and fit
    with your problems by checking the internet.
    Secrets to Dog Training Collar. Is your dog barks, jumps on the furniture or avoid it from
    a London university has puppy training a positive impression in the process.

    Here is my web site: wikipedia.org [Caitlyn]

  5. Hello, this weekend is nice in support of me, since this moment i am reading this wonderful informative piece of writing here
    at my residence.

    Here is my weblog – toronto long term disability lawyer – Booker,

  6. hey there and thank you for your info – I have definitely
    picked up something new from right here. I did however expertise several technical points using this website, since I experienced to reload the site a lot of times previous
    to I could get it to load correctly. I had been wondering if your web host is OK?
    Not that I am complaining, but sluggish loading instances times
    will often affect your placement in google and could damage your quality score
    if advertising and marketing with Adwords. Well I’m adding this
    RSS to my email and can look out for a lot more of your respective exciting content.
    Make sure you update this again soon.

    My website; http://Www.carneybankruptcylawyer.com

Leave a Reply

Your email address will not be published. Required fields are marked *