Set people picker property

STSADM.exe -o setproperty -pn peoplepicker-searchadforests -pv “Forest1,Domain1\account,password; Forest2,Domain2\account,password” -url https://mysitesURL

This allowed the user policy of the new Mysites web application to search through the two domains where AD users reside. Once I added them I was good, no more errors.
One thing to note, I have two web apps using the same wildcard cert and running off port 443 SSL.

Set people picker property

Cannot open SPTimerV4 service on computer ‘.’.

You are performing an Sharepoint upgrade (via PSConfig.exe) but got the error message “Cannot open SPTimerV4 service on computer ‘.’.”

Details are:

An error has occurred while validating the configuration settings. An exception of type System.InvalidOperationException was thrown. Additional exception information: Cannot open SPTimerV4 service on computer ‘.’.

Solution: Make sure you are running the Powershell with “Run as Administrator” even if the account you are using has local Admin rights.

Cannot open SPTimerV4 service on computer ‘.’.

SPweb default associated groups + access requests

Auto-create the default groups

If you want to create the three default groups automatically call the SPWeb.CreateDefaultAssociatedGroupsmethod, or if you are not a developer just visit the http://yourserver/sites/yoursite/_layouts/permsetup.aspx page.

 

SharePoint 2013 Update Access Requests Associated Owner Group

I had a requirement to programmatically change the group that handles the access requests.  Below is the code that I used to do it.  By default the access request can only be accepted/handled by the OOTB site owners group.  To change it, you need to

  • give the SharePoint group permission to “Access Requests” list
  • update “vti-associatedownergroup” property in the root web’s AllProperties.

web.AllProperties[(“vti_associateownergroup”] = oGroup.ID.ToString();

SPweb default associated groups + access requests