So we have spent an amount of time (hopefully not too much ha) configuring the User profile service and the synchronisation which imports profiles from AD. Our filters are in place so we only have valid profiles.
For the next step we would like to automatically create all the mysites in one hit.
This may or may not be a good idea depending on your exact business requirements but if it is what you want here is a script which will iterate through the profiles and create you a my site for each user.
$site = new-object Microsoft.SharePoint.SPSite("http://mysitehost");
$ServiceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($site);
$ProfileManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($ServiceContext);
$AllProfiles = $ProfileManager.GetEnumerator();
foreach($profile in $AllProfiles)
{
$profile.CreatePersonalSite();
}
Great fun don't you reckon.
My name is Phil Izod and I have been working with Microsoft 365 and related technologies (with a lot of SharePoint) since 2005. I thought it might be helpful to the community if I shared some of my experiences. Feel free to leave comments if you wish; it’s great to know whether the information is helpful or not.
Monday, 18 July 2011
Friday, 15 July 2011
SharePoint 2010 : Managed metadata refinement is missing from Search results
Problem
- Search service application was indexing correctly
- Out of the box Search site was returning content correctly as expected
- Some search refiners were missing. Specifically the ones mapped to Managed metadata and enterprise keyword columns.
Solution
After hunting about for a whole I found the solution which was actually very obvious on reflection but not so obvious when you have a farm sat in front of you.
Within the Search Service application, a crawl rule had been created which was set to include some items. There is a setting in there when including items to a specific path as follows:
- Crawl SharePoint content as http pages
As advised. Very simple and obvious. Once you know the solution
Subscribe to:
Posts (Atom)