Advanced Settings for Document library in SharePoint 2010 using PowerShell

In this article we will be seeing how to change the Advanced Settings for Document library in SharePoint 2010 using PowerShell and c#.

Go to Document Library => Library Settings => General Settings =>Advanced Settings.



















Using C#:

  1. using (SPSite site = new SPSite("http://serverName:1111/"))           

  2. {

  3. using (SPWeb web = site.RootWeb)               

  4. {

  5. SPList docLibrary=web.Lists["Doc Library"];

  6. // Change the advanced settings

  7. // Update the changes                   

  8. docLibrary.Update();               

  9. }           

  10. }