I've moved my blog to http://blog.falchionconsulting.com!. Please update your links. This blog is no longer in use--you can find all posts and comments at my new blog; I will no longer be posting to this site and comments have been disabled.

Thursday, March 6, 2008

If you're trying to configure a site for anonymous access via stsadm you can get most of the way using the out of the box "extendvs" (or my createwebapp) and "authentication" commands. The problem is that this only enables the web application for anonymous access but it doesn't "turn it on" at the site collection or web level. To complete the process I created a new command: gl-setanonymousaccess. There are three levels that you can set: Entire Web, Lists and Libraries, and Nothing. If you set the access to Entire Web anonymous users will be able to view all pages in your site and view all lists and items which inherit permissions from the site. If you select Lists and Libraries anonymous users will be able to view and change items only for those lists and libraries that have enabled permissions for anonymous users. And of course, if you set the access to Nothing anonymous users will have no access. To make this change programmatically is really simple - it's just a matter of setting a single property on the web site of interest. I also added some additional code to enable breaking of the permissions inheritance if necessary:

Hi Gary,I deployed the custom WSP solution for MOSS gievn by you.Lapointe.SharePoint.STSADM.Commands.wsp. it was successful. I created a Survey list under my site collection. but i am not able to respond to my survey anonymously. i gave anonymous access for Survey list also. Can you please assist me regarding this. i found a lot but not able to get the answer.Thanks and RegardsAmreesh SharmaIndia.

Hi Gary, i deployed the custom WSP solution for MOSS, and excecuted gl-setanonymousaccess for the site http://www.ciat.cgiar.org but the search results won´t show anonymously, might i be missing something? Cheers

My Custom Commands & Cmdlets

Use of any tools included in the various downloads found at this site is at your own risk. Gary Lapointe cannot be held liable for any damage done to your environment through the use of any code or downloadable tools found on this site.

You may not repackage or sell any of the downloadable tools or associated source code. Downloading of the various tools implies that you acknowledge these restrictions.