arnaudperfect | Pour la gestion des alimentation j'avais écris ca :
Code :
- :: Créé le : 03/01/2012
- :: MAJ : 30/01/2017
- :: ********************************************************************************
- :: (Usage normal): 381b4222-f694-41f0-9685-ff5bb260df2e
- :: (Performances élevées): 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
- :: (Economie d’energie): a1841308-3541-4fab-bc81-f71556f20b4a
- :: ********************************************************************************
- @echo off
- set BALANCED=381b4222-f694-41f0-9685-ff5bb260df2e
- set HIGHPERFORMANCE=8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
- set POWERSAVER=a1841308-3541-4fab-bc81-f71556f20b4a
- :: ********************************************************************************
- :: Désactive l’Hibernation
- :: ********************************************************************************
- c:\Windows\Temp\PowerCfg.exe -h OFF
- :: ********************************************************************************
- :: Configure la fermeture du capot du PC portable
- :: 0 = Ne rien faire, 1 = Veille, 2 = Hibernation, 3 = Arret
- :: ********************************************************************************
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0
- :: ********************************************************************************
- :: Configure l’action du boutton Power
- :: 0 = Ne rien faire, 1 = Veille, 2 = Hibernation, 3 = Arret
- :: ********************************************************************************
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 0
- :: ********************************************************************************
- :: Configure l’action du boutton de mise en veille
- :: 0 = Ne rien faire, 1 = Veille, 2 = Hibernation, 3 = Arret
- :: ********************************************************************************
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 96996bc0-ad50-47ec-923b-6f41874dd9eb 1
- :: ********************************************************************************
- :: Configure l’action du boutton d’arret au menu démarrer
- :: 0 = Veille, 1 = Hibernation, 2 = Arret
- :: ********************************************************************************
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %HIGHPERFORMANCE% 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %BALANCED% 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2
- c:\Windows\Temp\PowerCfg.exe -setdcvalueindex %POWERSAVER% 4f971e89-eebd-4455-a8de-9e59040e7347 a7066653-8d6c-40a8-910e-a1f54b84c7e5 2
- :: ********************************************************************************
- :: Configure à ne pas se mettre en veille lorsque je suis branché sur le secteur
- :: ********************************************************************************
- c:\Windows\Temp\PowerCfg.exe -setacvalueindex %BALANCED% 238c9fa8-0aad-41ed-83f4-97be242c8f20 29f6c1db-86da-48c5-9fdb-f2b67b1f44da 0
- :: ********************************************************************************
- :: Configure les temps de mise en veille ou arrêt des disques durs
- :: ********************************************************************************
- c:\Windows\Temp\PowerCfg.exe -SETACTIVE %HIGHPERFORMANCE%
- c:\Windows\Temp\PowerCfg.exe -change /monitor-timeout-dc 10
- c:\Windows\Temp\PowerCfg.exe -change /monitor-timeout-ac 20
- c:\Windows\Temp\PowerCfg.exe -change /disk-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /disk-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -change /standby-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /standby-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -change /hibernate-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /hibernate-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -SETACTIVE %POWERSAVER%
- c:\Windows\Temp\PowerCfg.exe -change /monitor-timeout-dc 10
- c:\Windows\Temp\PowerCfg.exe -change /monitor-timeout-ac 20
- c:\Windows\Temp\PowerCfg.exe -change /disk-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /disk-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -change /standby-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /standby-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -change /hibernate-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /hibernate-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -SETACTIVE %BALANCED%
- c:\Windows\Temp\PowerCfg.exe -change /monitor-timeout-dc 10
- c:\Windows\Temp\PowerCfg.exe -change /monitor-timeout-ac 20
- c:\Windows\Temp\PowerCfg.exe -change /disk-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /disk-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -change /standby-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /standby-timeout-ac 0
- c:\Windows\Temp\PowerCfg.exe -change /hibernate-timeout-dc 0
- c:\Windows\Temp\PowerCfg.exe -change /hibernate-timeout-ac 0
|
|