Skip Ribbon Commands
Skip to main content
Benoit s Corner

Benoit's corner

Dec 10
SharePoint – August cumulative update and search results from anonymous web site (follow up)

Following my previous post about this issue (http://blog.hametbenoit.info/Lists/Posts/Post.aspx?ID=162), the script provided by the Microsoft Support has been updated and works fine.

 

[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
$siteUrl = "<site collection URL>";
$site = New-Object Microsoft.SharePoint.SPSite($siteurl);
$web = $site.OpenWeb();
$enumPerms = [Microsoft.SharePoint.SPBasePermissions];
Write-Host $web.AnonymousPermMask64;
$web.AnonymousPermMask64 = $enumPerms::ViewListItems -bor $enumPerms::ViewVersions -bor $enumPerms::ViewFormPages -bor $enumPerms::Open -bor $enumPerms::ViewPages -bor $enumPerms::UseClientIntegration -bor $enumPerms::OpenItems
$web.Update();
Write-Host $web.AnonymousPermMask64;
$web.Dispose();
$site.Dispose();
​​

You have to run this script for each site collection which has anonymous access enabled

​Due to a bug in the product, anonymous comments is currently disabled

Sorry about that

 Error

Web Part Error: Access denied. You do not have permission to perform this action or access this resource. Correlation ID: b15dd09c-abc3-6045-8e4c-d8090b452854.

​Privacy Information

This blog is using tracking code for analytics purpose.

No personal data are stored and maintained.

 ‭(Hidden)‬ Blog Tools

 Copyright

 Follow Me On

 Share This

 Translation Tool

Translate this page