Windows8

De wiki.nexiat.fr
Aller à la navigation Aller à la recherche
Fiche express
Domaine Personnalisation de Windows 8
Contexte Menu Démarrer, arrêt/redémarrage, démarrage automatique

Astuces de personnalisation pour Windows 8 (certaines restent valables sur les versions ultérieures, notamment les dossiers de démarrage automatique).

Ajouter des boutons Redémarrer / Éteindre à l'écran Démarrer

Le script VBScript ci-dessous crée deux raccourcis (Redémarrer / Éteindre) dans le menu Démarrer. À enregistrer sous icones.vbs puis double-cliquer.

r = MsgBox("Voulez-vous installer les boutons dans l'écran Démarrer ?", 1, "Windows 8 Power Off")
if r = 1 then
    set WShell = WScript.CreateObject("WScript.Shell")
    StartMenuPath = WShell.SpecialFolders("StartMenu")

    set oLink = WShell.CreateShortcut(StartMenuPath & "\Redemarrer PC.lnk")
    oLink.TargetPath = "%systemroot%\System32\shutdown.exe"
    oLink.Arguments = "-r -t 0"
    oLink.WindowStyle = 1
    oLink.WorkingDirectory = "%systemroot%\System32\"
    oLink.IconLocation = "%systemroot%\System32\shell32.dll,238"
    oLink.Description = "Redemarrer PC"
    oLink.Save

    set oLink = WShell.CreateShortcut(StartMenuPath & "\Eteindre PC.lnk")
    oLink.TargetPath = "%systemroot%\System32\shutdown.exe"
    oLink.Arguments = "-s -t 0"
    oLink.WorkingDirectory = "%systemroot%\System32\"
    oLink.IconLocation = "%systemroot%\System32\shell32.dll,27"
    oLink.Description = "Eteindre PC"
    oLink.WindowStyle = 1
    oLink.Save

    MsgBox "Les raccourcis ont ete crees dans : " & StartMenuPath
End If

Les raccourcis reposent simplement sur shutdown.exe :

%systemroot%\System32\shutdown.exe -s -t 0   :: eteindre
%systemroot%\System32\shutdown.exe -r -t 0   :: redemarrer

Dossiers de démarrage automatique

Placer un raccourci dans ce dossier lance l'application à l'ouverture de session :

C:\Users\<utilisateur>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Racine du menu Démarrer de l'utilisateur :

C:\Users\<utilisateur>\AppData\Roaming\Microsoft\Windows\Start Menu