In this article we will be seeing how to change the Advanced Settings for list in SharePoint 2010 using PowerShell and C#.
Go to List =>List Settings => General Settings =>Advanced Settings.
using (SPSite site = new SPSite("http://serverName:1111/"))
using (SPWeb web = site.RootWeb)
// Change the advanced settings
// Update the changes
# Change the advanced settings
Read all items = 1 Read items that were created by the user = 2
list.ReadSecurity = 2;
Create and Edit access
Create and edit all items = 1 Create items and edit items that were created by the user = 2 None = 4
list.WriteSecurity = 4;
$list.ReadSecurity = 2
$list.WriteSecurity = 4
list.EnableAttachments = false;
$list.EnableAttachments = $false