All my IT stuff
Tuesday May 29th 2012

Problem synchronising thumbnails from ActiveDirectory in Sharepoint 2010

Yesterday, we were trying to synchronise the user pictures from Active Directory with our Sharepoint 2010.
The goal of this operation is to have a picture profile in User Profile.

So after having configured and triggered a full synchronisation, we were thinking that an image will appear… But no, still the same default image.
No errors on logs and interface, what strange…

Actually, after having import all profiles in Sharepoint (including images), you need to execute PowerShell script. This script will generate thumbnails useable by Sharepoint as profile image

1
Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation "http://mysite.address.com"

After having execute this script, go back to your profile and you will see your beautiful image.(This is subjective, I know ;) )

Thanks to Adam Preston Blog for his post about Import User Profile Photos from Active Directory into SharePoint 2010

Avoid rendering problem of a layout with IE8

You did a wonderful layout perfecly compatible with IE7… Great performance :)

But the new IE8 is going to destroy all of your hard work and you don’t have the time to correct the layout for having a full compatibility IE8.
So just put this line BEFORE all CSS in the head of your html pages:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

It simply indicates to the browser that it must use the compatibility mode IE7. And this is done without any human intervention.

Change homepage of webs

In Sharepoint 2010, a homepage is set on each site you create.
By default this page is default.aspx.

This afternoon I had to set a new homepage on about 150 sites… A script should be useful.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Add-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue 
 
$lines = Get-Content "D:\Sharepoint2010\Scripts\ChangeHomePage\ListSites.txt" #| Sort-Object
 
foreach($url in $lines)
{   
    $spWeb = Get-SPWeb -Identity $url 
 
    $spFolder = $spWeb.RootFolder
    $spFolder.WelcomePage = "Pages/NewHomepage.aspx"
 
    $spFolder.Update() 
    $spWeb.Dispose() 
 
    Write-Host "Done->$spWeb.Url"
}

In this example $lines comes from an external file in wich each line is an url of an SPWeb.

The script iterates each url of the file and set NewHomepage.aspx as homepage.

The story begins here…

This is finally the start… After having talk a lot about creating a blog to share my modest knowledge and have a big notepad to write down all my experiences. I finally done it.

The goal of this one is to share all my discoveries, my experiences, … on IT subjects

Also to share something to other who searches help on web. Blogs and forums are very helpful for me in my “binary” life to solve some problems, so why not also share my solutions?

System or development, I like a lot of things in IT. By this fact, you might found stuff going from C#, Sharepoint 2010 snippets or PowerShell scripts to system or network tips. From Linux, MacOsX or Windows…

So, welcome and enjoy reading those (coming) post.

Caes

PS : Don’t hesitate to correct me on some post that I would be in error or on my english ;) (It’s a choice to do it in English to improve my writing…)
It’s a good way learn new things :)

Latest Topics

Problem synchronising thumbnails from ActiveDirectory in Sharepoint 2010

Yesterday, we were trying to synchronise the user pictures from Active Directory with our Sharepoint 2010. The goal of [Read More]

Avoid rendering problem of a layout with IE8

Avoid rendering problem of a layout with IE8

You did a wonderful layout perfecly compatible with IE7… Great performance But the new IE8 is going to destroy [Read More]

Change homepage of webs

Change homepage of webs

In Sharepoint 2010, a homepage is set on each site you create. By default this page is default.aspx. This afternoon I [Read More]

The story begins here…

The story begins here…

This is finally the start… After having talk a lot about creating a blog to share my modest knowledge and have a [Read More]

Recent Comments

Vgdmemfj had this to say

Will I get paid for overtime? Lolita Top 100 Amazing and hot!!! Nude Lolita Yeah I Like That Baby Lolita Boys Read the post

viagra comprar online had this to say

rfdccfga, viagra pil, viagra pil, http://gsiestates.com viagra pil, arxlsbdb, viagra generico españa, viagra Read the post

levitra pas cher had this to say

bmlcuspg, Generieke viagra pillen, Generieke viagra pillen, http://gsiestates.com Generieke viagra pillen, lkcjqlfb, Read the post

levitra had this to say

uznwlbpy, viagra afhalen, viagra afhalen, http://gsiestates.com viagra afhalen, enihnxpn, acheter cialis tadalafil, Read the post

vente levitra sans ordonnance had this to say

zbvcsbzl, viagra, viagra, http://gsiestates.com viagra, hlilkbcl, viagra, viagra, http://bonusescom.com viagra, Read the post

Popular Topics

Welcome

Pages

Insider

Archives