Wednesday 30 September 2009

Manage Central Administration (CA) Administrators

How do I give an administrator his Central Administration (CA) permissions?

Add users to the Central Administration site:

  1. On the Central Administration Home page, on the 'Site Actions' menu, click 'Site Settings'.
  2. On the Site Settings page, under 'Users and Permissions', click 'People and groups'.
  3. On the People and Groups: Farm Administrators page, on the 'New' menu, click 'Add Users'.
  4. On the Add Users: Central Administration page, in the 'Add Users' section, in the 'Users/Groups' box, enter user names, group names, or e-mail addresses. Separate each entry with a semicolon.
  5. In the 'Give Permission' section, select one of the following:

    Add users to a SharePoint group. Select this option to give users permissions by adding them to a group that has pre-defined permissions. If you select this option, click a SharePoint group in the corresponding list.

    Give users permission directly.
    Select this option to give permissions to users directly. If you select this option, select the check boxes next to the permission level that you want to give to users.
  6. Click 'OK'.

Source: Microsoft Technet

Tuesday 29 September 2009

Message in the Information bar in IE7 & 8 when you browse to a MOSS 2007 site

You are hosting a Publishing Website in MOSS 2007? But your customers are complaining about ActiveX error messages when they're viewing you beautifull pages?

Consider the following scenario. You use Windows Internet Explorer 7 to browse to a Microsoft Windows SharePoint Services 3.0 site or to a Microsoft Office SharePoint Server 2007 site. The SharePoint site is located in the Internet zone. Additionally, the SharePoint site has online presence enabled. When you browse to the SharePoint site, you receive the following message in the Information bar in Internet Explorer 7:

The Web site wants to run the following add-on: 'Name ActiveX Control' from 'Microsoft Corporation'. If you trust the Web site and the add-on and want to allow it to run, click here...



The Problem
This issue occurs if the Name ActiveX control (Name.dll) is not added to the list of preapproved controls in Internet Explorer 7. The Name ActiveX control is included in the 2007 Microsoft Office system.

Microsoft however gives you a couple of client-side work around methods:
  1. Add the SharePoint site to the Trusted Sites list in Internet Explorer 7 on the Windows client computer.
  2. Add a registry subkey to the Windows client computer.
  3. Configure the master page of the SharePoint site on the front-end Web server.

    (Please browse to http://support.microsoft.com/kb/931509 for more information about above methods.)
The 3th method sounds like the right solution, because you can handle this server side. And it is in my opinion!

Unfortunatly Microsoft tells you to commend a few javascript functions. Correcting the problem this way may cause new problems though. Some other feature, method etc. can trie to use one of these methods and cause a javascript error.

Instead of removing the whole functions from the DOM, commend only the lines of code in these functions. Other features, methods etc., can still access the function, but does nothing, instead of causing more problem.

An other thing I don't prefer is changing the masterpage, because Microsoft notes there solution maight not always works.

This changes the method into the following steps:

If the SharePoint site does not require online presence, configure the master page of the SharePoint site to use the InitNoPresence.js file. To do this, follow these steps:

  • Copy the contents of the Init.js file to the Backup Init.js file on the front-end Web server.
    i Note! The Init.js file is located in the Drive:\Program Files\Common Files\Microsoft Shared\Web server extensions\12\Template\Layouts\1043 folder. (or 1033 ;-)
  • Start Notepad, and then open the Init.js file.
  • In the Init.js file, locate the following line of code.
    function ProcessImn()
    {
    if (EnsureIMNControl() && IMNControlObj.PresenceEnabled)
    {
    imnElems=document.getElementsByName("imnmark");
    imnElemsCount=imnElems.length;
    ProcessImnMarkers();
    }
    }

    function ProcessImnMarkers()
    {
    for (i=0;i<imnMarkerBatchSize;++i)
    {
    if (imnCount==imnElemsCount)
    return;
    IMNRC(imnElems[imnCount].sip,imnElems[imnCount]);
    imnCount++;
    }

    setTimeout("ProcessImnMarkers()",imnMarkerBatchDelay);
    }
  • Replace the code that you located in step 1c with the following lines of code.
    function ProcessImn()
    {
    /* if (EnsureIMNControl() && IMNControlObj.PresenceEnabled)
    {
    imnElems=document.getElementsByName("imnmark");
    imnElemsCount=imnElems.length;
    ProcessImnMarkers();
    }*/
    }

    function ProcessImnMarkers()
    {
    /* for (i=0;i<imnMarkerBatchSize;++i)
    {
    if (imnCount==imnElemsCount)
    return;
    IMNRC(imnElems[imnCount].sip,imnElems[imnCount]);
    imnCount++;
    }

    setTimeout("ProcessImnMarkers()",imnMarkerBatchDelay);*/
    }
Source: http://support.microsoft.com/kb/931509

Tuesday 8 September 2009

Changing My Site User Storage Free Space

Problem
Some users where recieving a message from the SharePoint server about there My Site:

You are receiving this e-mail message because you are an administrator of the
following SharePoint Web site, which has exceeded the warning level for storage: http://yoursite.domain.com/. To see how muchstorage is being taken up by this site, go to the View site collectionusage summary: http://yoursite.domain.com/_layouts/Usage.aspx.

If you would browse to the _layouts/usage.aspx page, you will find information about the space the user is allocating. My My Site however is just created, so you won't find a mess in there (yet ;-)
















But how do we change the Storage Space of a My Site when the free space is empty?

Tempory solution
The owner of the My Site can browse to the ‘storage space allocation page’ and clean up some mess, like empting the recycle bin or removing old/unnessasery files.



Solution
Every My Site is created in it's own site collection. This way it's possible to change the storage available for your site.

Browse to the Central Administration (CA) and select the 'Application Management'-tab and browse to 'Site collection Quotas and locks'.

Or go to http://[CA-url]/_admin/sitequota.aspx



First choose the right site collection by clicking on the url in the right upper corner and then clicking 'Change Site Collection'.





Next you need to change the selected web application into the web application that is hosting the My Sites. Last you need to select the site collection of the right My Site and click OK.

Note: In the top of the page there is telling you
there are more then 10 site collections. You can use the arrow
to browse through all site collections.

Change the 'Site Quota Information' by changing the 'Current quota template' to Individual Quata and change the maximal storage space to 250 mb, for example.