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
Category Administration, PowerShell, Sharepoint |
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.
Category Html, Web |
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.
Category Administration, PowerShell, Sharepoint |
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
Tags: Welcome
Category Announcements |