Skip to main content

Posts

Problem installing service pack 1 for SharePoint Foundation 2010

I have a SharePoint farm with one application server, two WFE servers and one db server. When I ran the configuration wizard after I installed service pack 1 on the application server and the WFE servers I got an error that said that the service pack was missing on the WFE servers. Solution: Open your powershell editor and execute the following command on the WFE servers. Get-SPProduct –local Then run the configuration wizard again.

Adding Site Administrators to a Site Collection

If you want to add a SiteAdministrator to a SiteCollection you can't add the user to the SPUserCollection SPWeb.SiteAdministrators . SPWeb.SiteAdministrators.Add() SPUserCollection SPWeb.SiteAdministrators is of type SPUserCollectionType.UCT_SiteAdmins (6), which appears that SharePoint is not taking care of. If it's a bug, i don't know. Instead you have to set the property IsSiteAdmin of the SPUser to True; SPWeb web = SPContext.Current.Web; SPUser user = web.AllUsers["loginName"]; user.IsSiteAdmin = true; user.Update();