SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

how to enable anonymouse login in sharepoint server 2010

share|improve this question

Or, in Powershell:

$wa = get-spwebapplication http://{url}
$zone = [Microsoft.SharePoint.Administration.SPUrlZone]::Extranet
$i = $wa.IisSettings[$zone]
$i.AllowAnonymous = $true

$w = Get-SPWeb http://{url}
$w.AnonymousState = [Microsoft.SharePoint.SPWeb+AnonymousState]::On

$l = $w.Lists["Comments"]
$l.AnonymousPermMask64 = {BasePermissions as appropriate}
share|improve this answer
Just to be safe, it is a good idea to use Start-SPAssignment / Stop-SPAssignment with disposable SharePoint objects: Start-SPAssignment -Global <NEWLINE> $w = Get-SPWeb http://{url} <NEWLINE> #more code here <NEWLINE> Stop-SPAssignment -Global – Anders Rask Jun 28 '10 at 13:18
When processing many SPWeb's, I agree. Most dev's that I teach find the SPAssignment model confusing, so I leave that out of snippets that I post. [Closing the PowerShell console will clean-up memory ;)] – Paul Schaeflein Jun 28 '10 at 16:12
Yeah thats what i ment with just to be safe. You never know where the code is going to run, and you never now when your IT pro will close that console again ;-) Global assignment collections is simple, but SemiGlobal can get confusing when you start piping it to Get-SPWeb :-) – Anders Rask Jun 28 '10 at 18:59
The AnonymousState enum is written as [Microsoft.SharePoint.SPWeb+WebAnonymousState]::On in 2013 – Eric Herlitz Oct 14 '14 at 9:56
up vote 0 down vote accepted

answer is here


share|improve this answer

You can check out an article here

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – John Chapman Oct 11 '12 at 14:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.