Monday, March 5, 2012

Windows 8: Create a Shutdown Tile in Metro

Win8_thumb13_thumb1

gb_thumb2_thumb1 English version

Don't want to click a dozen times to shut your machine down?
     1. Navigate
        to:C:\Users\/[USERID]/\AppData\Roaming\Microsoft\Windows\Start
        Menu\Programs
     2. Right-Click & select New -> Shortcut
     3. Type the location of the item: C:\Windows\System32\shutdown.exe
        /s /t 0
     4. Click Next
     5. Type a name for this shortcut: “Shutdown”
     6. Click Finish
     7. Press Windows Key to return to Start Page
     8. Right-Click on the new tile
     9. Click Open file location
    10. Click Change Icon
    11. Click OK when you get the error message.
    12. Click the Shutdown Icon
    13. Click OK
    14. Click Apply
    15. Click OK

SNAG-0012

Thanks to David Sebban for this tip !


fr_thumb_thumb1 Version Française

Marre de devoir faire une douzaine de clic pour arrêter votre machine?
     1. Naviguez dans:
        C:\Users\/[USERID]/\AppData\Roaming\Microsoft\Windows\Start
        Menu\Programs
     2. Faites un clic droit puis “New shortcut”
     3. Saisissez dans le champ location la valeur suivante: C:\Windows\System32\shutdown.exe
        /s /t 0
     4. Cliquez Next
     5. Donnez un nom au raccourci: “Shutdown”
     6. Cliquez sur “Finish”
     7. Appuyer sur la touche Windows pour revenir à la page de démarrage
     8. Faites un click droit sur la nouvelle tuile
     9. Cliquez Open file location
    10. Cliquez Change Icon
    11. Cliquez sur OK lors de l’apparition d’un message d’erreur.
    12. Cliquez sur l’icone Shutdown
    13. Cliquez sur OK
    14. Cliquez sur Apply
    15. Cliquezsur  OK

SNAG-0012

Merci à David Sebban pour cette astuce !

Thursday, March 1, 2012

Windows 8: Boring Screen Saver

Win8_thumb13_thumb

gb_thumb2_thumb English version

As soon as I used Windows 8 on my laptop I’m being bored by the screen saver that appear after one minute of inactivity… So I decided to change that using a standard way :

SNAG-0009

Well I was happy until I saw that the default configuration was still in place !!!

SNAG-0010

I think what I found is a BUG ! ^^

So utlimate solution… Using Group Policy to enforce screen saver configuration with gpedit.msc

SImply navigate to User Configuration >> Administrative Templates >> Control Panel >> Personalization and set Enable Screen Saver to Disabled

Here is the result

SNAG-0011


fr_thumb_thumb Version Française

Depuis mon passage récent à Windows 7, je n’en pouvais plus de la configuration de l’écran de veille qui se déclenchait après 1 minute d’inactivité… J’ai donc décidé de modifier les paramètres par la façon “normale” de procéder :

SNAG-0009

Tout allait bien jusque je me rende compte que la configuration n’avait pas été sauvegardé !!!

SNAG-0010

Je crois que je viens donc de découvrir un BUG ! ^^

Donc solution ultime… Forcer la configuration de l’écran de veille en utilisant les politiques de groupes via gpedit.msc

Naviguez simplement sous User Configuration >> Administrative Templates >> Control Panel >> Personalization et modifier l’option Enable Screen Saver à Disabled

Et voici le résultat

SNAG-0011

Windows 8: Error 0x800F0906 while enabling Microsoft .NET Framework 3.5.1 (Can't connect to Windows Update)

Win8_thumb13

gb_thumb2 English version

Copy the SXS folder from the Windows 8 ISO to the C:\Temp folder.
Then run:

dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:c:\temp\sxs /LimitAccess


fr_thumb Version Française

Copiez le répertoire SXS de l’ISO de Windows 8 dans un répertoire temporaire (exemple: C:\Temp), puis exécutez la ligne de commande suivante :

dism.exe /online /enable-feature /featurename:NetFX3 /All /Source:c:\temp\sxs /LimitAccess

Lync Server 2010 : Address Book Isolation - How it works ?

MSLync-logo-3

fr French version below

Everything is in the question. One of my colleague ask me, a week ago : “How can Lync isolate address books in case of hosted environment with several customers?” My first reaction was: “Don’t know maybe this will be possible with Service Pack 1”. Finally we look for an answer on internet and we found some ideas. The best one was by using the Active Directory Lync Attribute msRTCSIP-GroupingID.

The msRTCSIP-GroupingID, in Lync Server 2010 RTM is “null” by default as you can see on the picture below:

Some information are in the following TechNet article : http://technet.microsoft.com/en-us/library/gg429725.aspx 

But everything is not in… Looking for a script to update the msRTCSIP-GroupingID was an impossible mission no-one over the internet seems to post something like that until now Smile with tongue out

To update the msRTCSIP-GroupingID you need to know the objectGUID of your parent Active Directory Object (an OU). Very simple in Powershell:

$Grouping_ID = ((Get-ADOrganizationalUnit -Identity $OU_Path).ObjectGUID).ToByteArray()

Do not forget the “ToByteArray()” it’s very important to convert the GUID string to ByteArray, if you don’t do that de $Grouping_ID will be wrong and it don’t work at all.

Then after an Active Directory Lookup in the parent simply set the attribute using [ADSI]  :

$User = [ADSI]$UserDN
$User.Put("msrtcsip-groupingid",$Grouping_ID)
$User.SetInfo()

You can download a copy of the full script HERE.

Well after isolating addresses book you can see in the Lync share folder that new entries has been created.

When looking for users in my Lync client I just see those who are in my parent OU.

And the best thing with this usage of the msRTCSIP-GroupingID attribute, is that Microsoft France confirmed the support of this kind of address book isolation Hot smile


gb English version above

Tout est dans la question. Il y a une semaine, un collègue vient me voir et me demande: “Tu sais comment isoler les carnets d’adresses dans Lync dans le cadre d’un environnement hosté?”. Ma première réaction fut: “Je ne crois pas… Surement avec le Service Pack 1”. Au final le problème étant intéressant, nous avons commencer nos recherches sur internet et avons trouvé quelques idées. La meilleure d’entre elle était d’utiliser l’attribut Active Directory msRTCSIP-GroupingID créé avec l’upgrade de schéma Lync.

L’attibut msRTCSIP-GroupingID, dans Lync Server 2010 RTM a pour valeur “null” par défaut comme le montre la capture d’écran ci-dessous :

Quelques explications se trouvent dans l’article Technet suivant : http://technet.microsoft.com/en-us/library/gg429725.aspx

Malheureusement tout n’était pas disponible… Si l’on recherche un script permettant de mettre à jour l’attribut msRTCSIP-GroupingID cela devient mission impossible, personne ne semblait avoir posté d’articles avec script sur Internet jusqu’à aujourd’hui Smile with tongue out

Le principe est simple pour mettre à jour le msRTCSIP-GroupingID, il est nécessaire de connaitre l’objectGUID de l’objet Active Directory parent (généralement un UO). Jusque la c’est très simple avec Powershell :

$Grouping_ID = ((Get-ADOrganizationalUnit -Identity $OU_Path).ObjectGUID).ToByteArray()

Très important, ne pas retirer le “ToByteArray()”, car c’est cette fonction qui va convertir la chaine de GUID dans un tableau de Byte compris et valide pour l’attribut AD. Sans l’appel la valeur contenue dans $Grouping_ID sera fausse et le script non fonctionnel.

Do not forget the “ToByteArray()” it’s very important to convert the GUID string to ByteArray, if you don’t do that de $Grouping_ID will be wrong and it don’t work at all.

Une fois la recherche AD effectuée sur les objets enfants il suffit de leur appliquer la valeur de l’attribut en utilisant [ADSI] :

$User = [ADSI]$UserDN
$User.Put("msrtcsip-groupingid",$Grouping_ID)
$User.SetInfo()

Vous pourrez télécharger le script complet ICI.

Une fois l’isolation terminée pour vos différentes UO vous pourrez constater la création de nouveau répertoire dans les répertoires partagés de Lync :

Enfin, lors de la recherche d’utilisateurs dans un client Lync seul ceux référencés dans l’UO parente seront visibles.

Le meilleur dans tout cela c’est que l’utilisation faite du msRTCSIP-GroupingID, est parfaitement supportée par Microsoft et confirmé par Microsoft France Hot smile

Windows 8 Consumer Preview…

Win8

gb English version

Windows 8 Consumer Preview has been released yesterday to public. You can download it at the following URL:

http://windows.microsoft.com/en-US/windows-8/download 

Some hours after the release I’ve installed it on my laptop and trust me this OS is amazing I already love it :)


fr Version Française

Windows 8 Consumer Preview a été rendu disponible au grand public hier. Vous pouvez le télécharger au lien suivant:

http://windows.microsoft.com/en-US/windows-8/download

Quelques heures apres la sortie, je l’ai installé sur mon portable et croyez moi ce nouvelle OS est fantastique, je l’aime déjà :)

SNAG-0001

SNAG-0002