Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

how to enable anonymouse login in sharepoint server 2010

share|improve this question
add comment

3 Answers

Or, in Powershell:

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

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

$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
add comment

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
add comment

Your Answer

 
discard

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