Home | Blog | Screencasts | Projects
# Monday, October 13, 2008

I’ve put together a screencast that demonstrates how to configure a web application so that it can host MOSS MySites.

 

The basic steps are:

  • Create the web application
  • Create a site collection to be hosted in the newly created web application, make sure this is based on the ‘My Site Host Template’
  • Create a managed path for the MySites
  • Change the MySite settings in the SSP central admin to reflect the URL and managed path that was setup in the previous steps
  • Enable self service site creation so that new MySites are created when the user clicks on the My Site link

The high quality version can be found here or the youtube version:

 

Monday, October 13, 2008 7:48:00 AM (E. Australia Standard Time, UTC+10:00)  #    Comments [0] - Trackback
configuration | MySites | Screencast | Sharepoint
# Tuesday, October 07, 2008

Normally I wouldn’t recommend bulk creating a MySites, but what if you were bringing ten thousand plus users onto your portal at a single time? Imagine if they all hit the My Site link within a small time frame, would your server melt?

Maybe you would like to bulk create the MySites at a time that suits you to avoid this meltdown.

The following code might help you out:

 

   1: class Program
   2:     {
   3:         static void Main(string[] args)
   4:         {            
   5:             using (SPSite site = new SPSite("http://my.sharepoint.url"))
   6:             {
   7:                 ServerContext context = ServerContext.GetContext(site);
   8:  
   9:                 //initialize user profile manager
  10:                 UserProfileManager profileManager = new UserProfileManager(context);
  11:  
  12:                 //this just creates a mysite for everyone in the profile database                             
  13:                 foreach (UserProfile profile in profileManager)
  14:                 {
  15:                     Console.WriteLine("Creating a Personal Site for " + profile["PreferredName"] + "...");
  16:                     try
  17:                     {
  18:                         profile.CreatePersonalSite();
  19:                         Console.Write("Succcess!\n");
  20:  
  21:                     }
  22:                     catch (PersonalSiteExistsException)
  23:                     {
  24:                         Console.Write("Site already exists!\n");
  25:                     }
  26:                 }
  27:             }
  28:         }
  29:     }

 

It simply iterates through each user profile and calls the CreatePersonalSite() method on each user profile.

 

Of course the other big issue to consider is the impact of the content databases, these should all be created and some thought should be given as to the potential size of these databases. If you say have 10000 users each with 100MB Quota your potentially looking at a 100GB database, which might be a little hard to work with. So you should have an idea of the total number of users, the quota size of each MySite and then setup the content database limits. These values can be viewed from the ‘Content Databases’ Option under ‘SharePoint Web Application Management’ in the Application Management section of central admin:

ContentDatabases

 

The above page will let you control how your sites are distributed across your databases.

Tuesday, October 07, 2008 10:46:00 PM (E. Australia Standard Time, UTC+10:00)  #    Comments [0] - Trackback
Sharepoint | MySites
Statistics
Total Posts: 134
This Year: 0
This Month: 0
This Week: 0
Comments: 20