Resetting Windows 8

This is my first post about Windows 8 and you can’t imagine at which point I am excited about this new product of Microsoft. My first impression of this preview is very good. So I decided to write about the History feature but I am totally unable to clear the settings I’ve just play with it. My first idea was to format and reinstall Windows but I search a “Reset” option and guess what? It exists. So let’s look this feature.

Opening the Control Panel

First step is opening the Control Panel. I’m discovering the product while writing these lines so I don’t know what is the most efficient way to open the Control Panel. Personally I use the Windows key on my keyboard then I tap “Recovery”. You can notice that the search box automatically appears when tapping a text with the keyboard. In the right search pane I select “Settings” to display items of the Control Panel. The first result is the good one.

Windows 8 Recovery - Control Panel

Update: the easy way to access the reset feature

You can reset your computer directly from the Metro UI. To do this, open the Control Panel from the Metro UI, then select the General Section. You will find a Reset option. By the way you can notice that the green bar of the recovery tool is more adapted to the Metro UI than in Desktop Mode.

 Reset your computer Metro UI

The Recovery Window

In the Recovery Windows you can now select the “Reset” option. What this feature does exactly? It enables you to delete all your personal stuff. Thanks to this you can easily reset your computer before selling it for example. This option is easier than formatting and reinstalling your computer. Nonetheless I’m wondering if this feature is secure or not? It would be interesting to check what files are exactly deleted.

Windows 8 Recovery - Recovery Window

Recovery Tool

 Then a Metro style Window asks from which drive you want to remove the files. You can choose between the disk where Windows is installed or all drives. I wish we can choose specific drives.

Windows 8 Recovery - Recovery Tool

Then another screen asks you for a confirmation. The PC is now restarting. Notice : you must have the installation media in order to perform this operation.


In my case the operation does not perform well since I needed to format and reinstall the system which refused to boot after the restart. I don’t retry and assume this is a bug of this preview on my environment. We can be sure that Microsoft will fix this in the next releases.

My first impression about this feature was pretty good but finally I think it will be used only by few users. I mean, you need the installation media to perform a reset and it takes the same amount of time than totally reinstalling the system with a USB key (10 minutes in my case). I think this feature would be great if the installation media wasn’t asked.


Get SPListItem from URL

Hi Guys! Today I decided to post a snippet of code that I find very useful.

This code retrieves a SPListItem from an absolute URL. The item can be associated to a document or not and the URL can be a display form or not. The main interest of such a code is to retrieve the item associated to an URL returned by the search engine for example.

The good thing is that it works with documents that does not have a IFilter associated. JPEG files for example are not fully indexed by the search engine. The content of the file is not read, only metadata are indexed unless you installed a IFilter supporting JPEG files. The side effect is the url returned by the search engine : this is the display form URL of the file, not the URL of the file itself. So this code handle this case and can be used in such a context.

SharePoint 2010 does not support FR-CA (local 3084)

I discover yesterday what I think is an important issue for users living in Canada and speaking French (like me by the way).

When a Language Pack is installed on a SharePoint 2010 Farm, the browser language is detected by the SharePoint sites on which MUI is enabled. To detect the user language, SharePoint inspects the HTTP request which contains the header “Accept-Language”. The value of this header can be configured in the Options of your browser. Talking about Internet Explorer you have to open “Internet Options” –> “Languages”.

Thus, if you install the French Language Pack and if your browser is configured to accept Fr-Fr (French – France), your SharePoint site will be displayed in French even with a site created in English.

So what’s the problem? This detection does not work with the locale “Fr-Ca” (French – Canada). It seems that SharePoint displays the correct default language only if the locale set in the browser matches exactly the locale of the SharePoint Language Pack. Of course there is only one French Language Pack and its locale is Fr-Fr.
This is very annoying for french users since the SharePoint sites will be displayed in English by default. They have to switch manually to French.

Fortunately the workaround is pretty simple : add the Fr-Fr locale in the languages of your browser. You can set it in second position after Fr-Ca. Of course you will have to deploy this setting to the users 🙂