AirV's Blog

Just another blog

Variable USERPROFILE sous XP

From http://windowsxp.mvps.org

Rename the User Profile folder using Windows Explorer

  • Logon to an admin account that is not the account being renamed.
  • Open the Documents and Settings folder, by typing this in Start, Run dialog:
    %systemdrive%\Documents and Settings
  • Select the corresponding folder of the user account that you want to rename.

Notify the system that the user profile path has changed.

  • Changing the ProfileImagePath value in the registry :
    HKEY_LOCAL_MACHINE \ SOFTWARE\ Microsoft\ Windows NT \ CurrentVersion \ ProfileList
  • Changer dans la base de registre le répertoire par défaut de l’ensemble des profils (valeur ProfilesDirectory de la clé HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList)
  • Changer individuellement dans la base de registre le répertoire de chaque profil (valeur ProfileImagePath de la clé HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\[SID de l'utilisateur])

Local drives to remote machines

From HowToGeek :

sshot-11

Have you ever had a file on a flash drive that you needed to use on a machine that is situated in another building or even halfway across the world? You can do that by plugging it into your local machine and then forwarding the drive through your remote session to that machine. Here’s how to do it.

Press the Windows Key and R to bring up a run box, and type mstsc to launch the Remote Desktop Connection Dialog, or you can just search for Remote Desktop in the Start Menu.

Click on the arrow next to options to see some of the more advanced options.

Once the interface has extended, switch to the Local Resources tab.

Now click on the more button, to see a more extensive list of things that you can forward to the remote machine.

Once you have clicked and expanded the drives, you will see a list of all the devices in your PC, you can forward anything from your CD/DVD drive to a USB drive that you have connected. Check the box next to any of the drive that you want to forward.

Now you can connect to the remote machine as you normally would.

Now if you open explorer on the remote machine you will see you drive, it will appear as if it has been mapped.

Commande windows : psexec

Psexec est une commande de M…. à la W….. mais qui est bien pratique pour le déploiement d’applications.

Voir le document sur Google
liens :

http://technet.microsoft.com/fr-fr/sysinternals/hh205954

http://www.windowsitpro.com/article/remote-computing/psexec

http://certcollection.org/forum/topic/53966-psexec-and-the-nasty-things-it-can-do/

http://szone.berlinwall.org/win32/DeployinganInstallationPackagetoMultipleClients

7zip

7zip SFX Maker

Utilitaire permettant de créer des fichiers auto extractibles et surtout de préciser le chemin d’extraction.

  • Créer une archive avec 7zip
  • Lancer 7zip SFX Maker
  • Ajouter l’archive créée
  • Préciser les paramètres souhaités

Powershell

Tutoriel dur le powershell from Labo-Microsoft.org

 

Windows : Virutal Machine

From HowToGeek.com :

Beginner: How to Use Virtual PC to Install Windows 7 into a Virtual Machine

    Continuing in our series covering how to use Virtual PC, this week we’ll be showing you how to install Windows 7 into a virtual machine. It’s a very simple process, but here’s the step-by-step guide for beginners.

    If you haven’t already read it, you should check out our guide on how to create a new virtual machine using Virtual PC.

    Creating a Windows 7 Virtual Machine

    To see all you can configure in it, you should open your Virtual Machines folder, select your new virtual machine and right click it to select Settings.

    vpc15

    Now you will see you have two options to load your Windows 7 installation files.

    You can load your installation DVD on your PC and select in the DVD drive menu Access a physical drive as shown in the picture below:

    vpc16

    Or you can select Open an ISO image if you have a .iso copy of the installation DVD in your computer:

    vpc16a

    Once you have selected your installation option, you can double click on the virtual machine and it will start and it will load your installation files.

    vpc17

    After loading the installation files, you should configure your language options.

    vpc18

    Whenever you click on the virtual machine window, Virtual PC will let you know that the mouse will be captured by the virtual machine and will also show you how to release the mouse to use it on your host operating system again.

    vpc19

    You can now click on Install now.

    vpc20

    You can select whether you want to make a custom installation or an upgrade. Since you won´t have any previous operating systems installed, you should select Custom.

    vpc21

    Select the drive where to install the virtual machine. You can also select Drive options for more advanced configuration settings.

    vpc22

    On the Drive options menu, you will see options for formatting the drive, creating or deleting partitions, change the partition size, etc..

    vpc23

    Once you click on Next, the installation process will begin.

    vpc24

    After the installation has finished, your virtual machine will start for the very first time.

    vpc25

    When the operating system has loaded, you will be seeing a toolbar on the upper side of the window. Select Tools and click on Install Integration Components.

    vpc26

    It will ask you to install the Integration Components as shown below.

    vpc27

    It will open a virtual DVD drive from where you should choose to run the setup file.

    vpc28

    This will open the Integration Components wizard that will integrate your virtual machine with your host operating system.

    vpc29

    You will see that while it installs the integration components, the virtual pc will begin to recognize your devices and install the drivers.

    vpc31

    It will ask you to restart your system for the configuration changes to take effect.

    vpc33

    After rebooting, if the Integration Components have not been automatically activated, you can go to Tools and enable them.

    vpc34

    After enabling the Integration Components, you will see all the devices connected to your host operating system in the new USB menu from where you can attach them and use them as if they were connected to your virtual machine.

    vpc36

    You will also see a new View Full Screen option and you can now enable Aero and other features.

    vpc37

    If you want to select what other features you want to integrate between your host computer and your virtual machine, you can go to the virtual machine Settings and select them from the Integration Components menu.

     

    Windows 7 language

    Si vous n’avez pas Windows 7 Ultimate ou Windows 7 Entreprise et que vous voulez changer la langue du système d’exploitation, la fonction n’est pas disponible.
    Il faut utiliser Vistalizator de logiciel.net


    Tout d’abord, ouvrez le programme.

    Il vous faudra télécharger le langage voulu sur cette page.

    Ensuite cliquez sur <<Add languages>> et choisissez le langage.

    Vous allez devoir cliquer <<Ok>> sur plusieurs écrans de confirmations qui apparaitront.

     

    Ubuntu look like Windows Seven

    From HowToGeek :

    Installing the Win7 Theme

    sudo wget http://web.lib.sun.ac.za/ubuntu/files/help/theme/gnome/win7-setup.sh

    sudo chmod 0755 ~/win7-setup.sh

    ~/win7-setup.sh

     

    Sticky Note

    From HowToGeek :

    How to Attach Sticky-Note Reminders to Windows and Applications

    image

    Some applications come with a boatload of keyboard shortcuts; these can make you very fast, but can be difficult to remember, especially if you customized some of them. What if you could have your own little cheat sheet that would pop up next to the application every time your ran it? Read on to see how you can make one.

    We’re going to be using an excellent (and free) application called Stickies. If you don’t have it yet, go to the Stickies homepage, download it, and install it.

    Creating Your First Cheat Sheet

    The first thing we’re going to do is create the sticky note containing whatever info you want to have on hand. With Stickies running, hit Win+S. You should see a blank sticky note, much like the one below.

    screenshot_174

    Yours may not have the current date and time in the caption – that’s a setting you can toggle, but we don’t need it for now.

    Next, set the title for your sticky by clicking it and pressing Ctrl+Shift+T. You can also right-click the caption and select Set Title from the context menu.

    image

    Now that you’ve set the title (say, Total Commander Tips), fill in the text with whatever you’d like to remember. Use Ctrl + and Ctrl – to increase or decrease the font size, Ctrl+B for bold, Ctrl+I for italics. You can also select just a portion of the text to make it larger (think subheadings).

    With your sticky note all ready, it’s now time to attach it to the window. Make sure the “target application” is running, so we’d have a window to attach the note to. Then, right-click the note’s caption and select Attach.

    image

    In the Attach Sticky window, locate your application in the list and click it. You can also toggle the box that says “Only if visible” to have the note visible only when the application window isn’t minimized.

    image

    The sticky note you created will now appear whenever you run your application, and disappear when you close the app. If you’d like to make the note always on top, click it and hit Ctrl+T. This way no other windows would cover it. That’s it – you now have a handy application-specific cheat-sheet.

     

    Licence Windows

    From WindowsMicrosoft.com :

    • Sous XP
    1. Ouvrez l’ Outil de mise à jour de clé de produit Windows.
    2. Lorsque vous êtes invité à exécuter ou à enregistrer le programme d’installation de l’outil de mise à jour de clé de produit Windows, cliquez sur Exécuter.
    3. Suivez les instructions dans le programme d’installation.

      NB : Testé, garde le numéro du support d’installation.

    • Autre méthode sous XP
    1. Dans l’ éditeur de registre système, ouvrez : HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsNTCurrentVersionWPAEvents
    2. Dans le panneau de droite, faites un clic droit sur la valeur binaire : WPAEvent puis sélectionnez  » Modifier données binaires ». Dans  » Données de la valeur « , supprimez une des valeurs suivantes : CA 82 B8 55 D4 04 B5 CF
    3. Fermez le registre système et cliquez sur  » Démarrer « –  » Exécuter  » puis tapez : %systemroot%system32oobemsoobe.exe /a
    4. Validez par OK et sélectionnez l’ option numéro 2 ( là où l’on parle de passer un coup de fil à Microsoft ) puis  » Suivant « .
    5. Dans la fenêtre qui s’ ouvre, optez pour le choix  » Changer de clé de produit  » et encore  » Suivant « .
    6. Entrez votre nouvelle clé et sélectionnez le dernier bouton en bas sur la droite. Vous revenez à la fenêtre de départ.
    7. Quittez puis redémarrez votre ordinateur ( en cliquant sur la petite croix placée en haut à droite ). Là encore, cliquez sur  » Démarrer « , puis  » Exécuter  » et tapez à nouveau : %systemroot%system32oobemsoobe.exe /a
    8. Vous aurez droit à un message de félicitations vous indiquant que Windows est déjà activé.

      NB : valeur de la clé non trouvée sous un poste XP

    • Sous Seven
    1. Cliquez sur le bouton DémarrerImage du bouton Démarrer, puis cliquez avec le bouton droit sur Mon ordinateur.
    2. Cliquez sur Propriétés, puis sur Modifier la clé de produit. Si un message vous demande de confirmer votre intention de poursuivre le processus, cliquez sur Continuer.
    3. Suivez les instructions pour changer votre clé de produit et activer votre copie de Windows 7.

     

    Page suivante »