We can use the script below to provide anonymous access for list.
$web = get-spweb “http://abc.com”
$list = $web.Lists[“TopWebsites”]
$list.BreakRoleInheritance($true)
$list.AnonymousPermMask = $list.AnonymousPermMask -bor ([int][Microsoft.SharePoint.SPBasePermissions]::ViewFormPages)
$list.Update()
Like this:
Like Loading...
Author: "Sharepoint Thoughts"
I’m a Microsoft Certified IT Professional with 5+ Years Experience on SharePoint Technologies. Worked extensively on “SharePoint 2007”, “SharePoint 2010”, “SharePoint 2013” & “SharePoint 2016” on Implementation, Configuration & Troubleshooting several Projects.
View all posts by "Sharepoint Thoughts"