Accueil > > > OPTI2 OU COMMENT OPTIMISER WINDOWS XP ET/2000 EN QUELQUES CLICS
OPTI2 OU COMMENT OPTIMISER WINDOWS XP ET/2000 EN QUELQUES CLICS
Information sur la source
Description
Opti2 est un soft d'optimisation de windows xp et/ou 2000. Il comprend une vingtaine d'optimisation a mettre en place en 1 clic Il comprend également un retour en arrière pour chaque optimisation.
Source
- # -*- coding: utf-8 -*-
- from Tkinter import *
- import _winreg
-
- def dll():
- "Vide les DLL du cache à la fermeture Windows"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
- _winreg.SetValueEx(key, 'AlwaysUnloadDLL',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def dll0():
- "Replace la valeur normal de la base de registre"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
- _winreg.SetValueEx(key, 'AlwaysUnloadDLL',0, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def doc():
- "Vide le menu document à la fermeture de Windows"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'ClearRecentDocsOnExit',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def doc0():
- "Replace la valeur normal dansle registre"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'ClearRecentDocsOnExit',0, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def demarrer():
- "Accelerer le menu demarrer"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key, 'MenuShowDelay',0, _winreg.REG_SZ,'0')
- _winreg.CloseKey(key)
-
- def demarrer0():
- "Replace la valeur normal dansle registre"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key,'MenuShowDelay',0, _winreg.REG_SZ,'400')
- _winreg.CloseKey(key)
-
- def autoendtasks():
- "Fermeture forcée des programmes à la fermeture de windows"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key,'AutoEndTasks',1, _winreg.REG_SZ,'1')
- _winreg.CloseKey(key)
-
- def autoendtasks0():
- "Replace la valeur normal dansle registre"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key,'AutoEndTasks',0, _winreg.REG_SZ,'0')
- _winreg.CloseKey(key)
-
- def waittokill():
- "Optimise le temps de blocage de programme"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key,'WaitToKillAppTimeout',1, _winreg.REG_SZ,'4000')
- _winreg.CloseKey(key)
-
- def waittokill0():
- "Replace la valeur par defaut"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key,'WaitToKillAppTimeout',1, _winreg.REG_SZ,'20000')
- _winreg.CloseKey(key)
-
- def completion():
- "Active la completion dos"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Command Processor')
- _winreg.SetValueEx(key,'CompletionChar',1, _winreg.REG_DWORD,9)
- _winreg.CloseKey(key)
-
- def completion0():
- "Replace la valeur par defaut"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Command Processor')
- _winreg.SetValueEx(key,'CompletionChar',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def bloc():
- "Active le retour à la ligne dansle bloc note"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Notepad')
- _winreg.SetValueEx(key,'fwrap',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def bloc0():
- "Replace les valeurs d'origines"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Notepad')
- _winreg.SetValueEx(key,'fwrap',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def verrou():
- "Active le verrouillage numérique au demarrage"
- key = _winreg.CreateKey(_winreg.HKEY_USERS, '.DEFAULT\Control Panel\Keyboard')
- _winreg.SetValueEx(key,'InitialKeyboardIndicators',1, _winreg.REG_SZ,'2')
- _winreg.CloseKey(key)
-
- def verrou0():
- "Replace les valeurs d'origine"
- key = _winreg.CreateKey(_winreg.HKEY_USERS, '.DEFAULT\Control Panel\Keyboard')
- _winreg.SetValueEx(key,'InitialKeyboardIndicators',1, _winreg.REG_SZ,'0')
- _winreg.CloseKey(key)
-
- def memoire():
- "Optimise la mémoire"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key,'HungAppTimeout',0, _winreg.REG_SZ,'2000')
- _winreg.CloseKey(key)
-
- def memoire0():
- "Replace les valeurs d'origine"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
- _winreg.SetValueEx(key,'HungAppTimeout',1, _winreg.REG_SZ,'4000')
- _winreg.CloseKey(key)
-
- def optimemoire():
- "Optimise l'utilisation de la mémoire"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
- _winreg.SetValueEx(key,'DisablePagingExecutive',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def optimemoire0():
- "Retablit les valeurs par defaut"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
- _winreg.SetValueEx(key,'DisablePagingExecutive',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def cd():
- "Augmente la vitesse de gravure"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
- _winreg.SetValueEx(key,'CacheSize',1, _winreg.REG_BINARY,'\xff\xff\x00\x00')
- _winreg.CloseKey(key)
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
- _winreg.SetValueEx(key,'Prefetch',1, _winreg.REG_DWORD,4000)
- _winreg.CloseKey(key)
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
- _winreg.SetValueEx(key,'PrefetchTail',1, _winreg.REG_DWORD,4000)
- _winreg.CloseKey(key)
-
- def cd0():
- "Elimine les valeurs précédentes"
- _winreg.DeleteKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
-
- def dd():
- "Booster le disque dur"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
- _winreg.SetValueEx(key,'LargeSystemCache',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def dd0():
- "Retabli les valeurs d'origine"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
- _winreg.SetValueEx(key,'LargeSystemCache',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def web():
- "Augmente la vitesse d'ouverture des pages web"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings')
- _winreg.SetValueEx(key,'xConnectionsPerServer',1, _winreg.REG_DWORD,4)
- _winreg.CloseKey(key)
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings')
- _winreg.SetValueEx(key,'MaxConnectionsPer1_0Server',1, _winreg.REG_DWORD,8)
- _winreg.CloseKey(key)
-
- def web0():
- "Replace les valeurs d'origine"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings')
- _winreg.SetValueEx(key,'MaxConnectionsPer1_0Server',1, _winreg.REG_DWORD,10)
- _winreg.CloseKey(key)
-
- def swap():
- "Vide le swap a l'arrêt"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
- _winreg.SetValueEx(key,'ClearPageFileAtShutdown',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def swap0():
- "Retablit les valeurs d'origine"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
- _winreg.SetValueEx(key,'ClearPageFileAtShutdown',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def infobulle():
- "Desactive les infos bulles"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
- _winreg.SetValueEx(key,'EnableBalloonTips',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def infobulle0():
- "Reactive les infos bulles"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
- _winreg.SetValueEx(key,'EnableBalloonTips',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def watson():
- "Desactive l'envoi des rapports d'erreurs"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Internet Explorer\Main')
- _winreg.SetValueEx(key,'IEWatsonDisabled',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def watson0():
- "Reactive l'envoi des rapports d'erreurs"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Internet Explorer\Main')
- _winreg.SetValueEx(key,'IEWatsonDisabled',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def souris():
- "Active la souris dans la console"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Console')
- _winreg.SetValueEx(key,'QuickEdit',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def souris0():
- "Desactive la souris en console"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Console')
- _winreg.SetValueEx(key,'QuickEdit',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def copier():
- "Ajoute copier vers dans le menu contextuel"
- key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To')
- _winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'{C2FBB630-2971-11D1-A18C-00C04FD75D13}')
- _winreg.CloseKey(key)
-
- def copier0():
- "Enleve copier vers du menu contextuel"
- key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To')
- _winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'')
- _winreg.CloseKey(key)
-
- def move():
- "Ajoute deplacer dans au menu contextuel"
- key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Move To')
- _winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'{C2FBB631-2971-11D1-A18C-00C04FD75D13}')
- _winreg.CloseKey(key)
-
- def move0():
- "Enleve deplacer dans du menu contextuel"
- key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Move To')
- _winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'')
- _winreg.CloseKey(key)
-
- def tampon():
- "Augmente la valeur du tampon pour la connexion"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
- _winreg.SetValueEx(key,'MaxCmds',1, _winreg.REG_DWORD,100)
- _winreg.CloseKey(key)
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
- _winreg.SetValueEx(key,'MaxThreads',1, _winreg.REG_DWORD,100)
- _winreg.CloseKey(key)
-
- def tampon0():
- "Retabli les valeurs par defaut"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
- _winreg.SetValueEx(key,'MaxCmds',1, _winreg.REG_DWORD,21)
- _winreg.CloseKey(key)
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
- _winreg.SetValueEx(key,'MaxThreads',1, _winreg.REG_DWORD,21)
- _winreg.CloseKey(key)
-
- def reponse():
- "Augmente le temps de reponse lors des accès disques"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\FileSystem')
- _winreg.SetValueEx(key,'NtfsDisableLastAccessUpdate',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def reponse0():
- "Retabli la valeur d'origine"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\FileSystem')
- _winreg.SetValueEx(key,'NtfsDisableLastAccessUpdate',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def onglet():
- "Cache l'onglet Ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
- _winreg.SetValueEx(key, 'NoDispScrSavPage',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def onglet0():
- "Replace l'onglet Ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
- _winreg.SetValueEx(key, 'NoDispScrSavPage',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def veille():
- "Active l'ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaveActive',1, _winreg.REG_SZ,'1')
- _winreg.CloseKey(key)
-
- def veille0():
- "Desactive l'ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaveActive',1, _winreg.REG_SZ,'0')
- _winreg.CloseKey(key)
-
- def passe():
- "Mot de passe ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaverIsSecure',1, _winreg.REG_SZ,'1')
- _winreg.CloseKey(key)
-
- def passe0():
- "Desactive mot de passe ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaverIsSecure',1, _winreg.REG_SZ,'0')
- _winreg.CloseKey(key)
-
- def delai():
- "Delai activation ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'960')
- _winreg.CloseKey(key)
- key = _winreg.CreateKey(_winreg.HKEY_USERS,'.DEFAULT\Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'960')
- _winreg.CloseKey(key)
-
- def delai0():
- "Delai activation ecran de veille"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'600')
- _winreg.CloseKey(key)
- key = _winreg.CreateKey(_winreg.HKEY_USERS,'.DEFAULT\Control Panel\Desktop')
- _winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'600')
- _winreg.CloseKey(key)
- def ajoutprog():
- "Desactive le programme Ajout/suppression de programmes"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Uninstall')
- _winreg.SetValueEx(key, 'NoAddRemovePrograms',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
-
- def ajoutprog0():
- "Réactive le programme Ajout/suppression de programmes"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Uninstall')
- _winreg.SetValueEx(key, 'NoAddRemovePrograms',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def activeoptiondossier():
- "Desactive les Options des Dossiers"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoFolderOptions',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def activeoptiondossier0():
- "Active les Options des Dossiers"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoFolderOptions',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def activepanneauconf():
- "Desactive le panneau de configuration"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoControlPanel',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def activepanneauconf0():
- "Active le panneau de configuration"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoControlPanel',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def bloqueregistre():
- "Bloque l'accès à la base de registre"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
- _winreg.SetValueEx(key, 'DisableRegistryTools',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def bloqueregistre0():
- "Débloque l'accès à la base de registre"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
- _winreg.SetValueEx(key, 'DisableRegistryTools',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def activecmd():
- "Desactive la console"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Policies\Microsoft\Windows\System')
- _winreg.SetValueEx(key, 'DisableCMD',1, _winreg.REG_DWORD,2)
- _winreg.CloseKey(key)
-
-
- def activecmd0():
- "Active la console"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Policies\Microsoft\Windows\System')
- _winreg.SetValueEx(key, 'DisableCMD',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def desactivemenubarretaches():
- "Desactive le menu de la barre des taches"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoTrayContextMenu',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def desactivemenubarretaches0():
- "Réactive le menu de la barre des taches"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoTrayContextMenu',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def restauration():
- "Desactive la restauration du système"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore')
- _winreg.SetValueEx(key, 'DisableSR',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def restauration0():
- "Active la restauration du système"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore')
- _winreg.SetValueEx(key, 'DisableSR',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def papier():
- "Desactive le changement de papier peint"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
- _winreg.SetValueEx(key, 'NoChangingWallPaper',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def papier0():
- "Réactive le changement de papier peint"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
- _winreg.SetValueEx(key, 'NoChangingWallPaper',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def bureau():
- "Desactive le menu du Bureau"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoViewContextMenu',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def bureau0():
- "Active le menu du bureau"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoViewContextMenu',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def executer():
- "Desactive Executer"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoRun',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def executer0():
- "Reactive Executer"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoRun',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def icone():
- "Empecher l'ajout d'icones sur le bureau"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
- _winreg.SetValueEx(key, 'NoAddingComponents',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def icone0():
- "Reactive l'ajout d'incones sur le bureau"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
- _winreg.SetValueEx(key, 'NoAddingComponents',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def gestionnaire():
- "Desactive le gestionnaire de taches"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
- _winreg.SetValueEx(key, 'DisableTaskMgr',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def gestionnaire0():
- "Reactive le gestionnaire de taches"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
- _winreg.SetValueEx(key, 'DisableTaskMgr',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def install():
- "Interdit les installations utilisateurs"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows\Installer')
- _winreg.SetValueEx(key, 'DisableUserInstalls',1, _winreg.REG_DWORD,2)
- _winreg.CloseKey(key)
-
- def install0():
- "Reactive les installations utilisateurs"
- key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows\Installer')
- _winreg.SetValueEx(key, 'DisableUserInstalls',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def tache():
- "Immobilise la barre des taches"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoSetTaskBar',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def tache0():
- "Peut bouger la barre des taches"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'NoSetTaskBar',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- def rechercher():
- "Enleve Rechercher du menu demarrer"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'Nofind',1, _winreg.REG_DWORD,1)
- _winreg.CloseKey(key)
-
- def rechercher0():
- "Remet Rechercher dans le menu demarrer"
- key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
- _winreg.SetValueEx(key, 'Nofind',1, _winreg.REG_DWORD,0)
- _winreg.CloseKey(key)
-
- #Programme principal
-
- fen1=Tk()
- fen1.title('Optimisation Windows 2000/XP')
- ent1=Label(fen1,text='Videz les dll du cache a l\'arrêt')
- ent1.grid(row=0,column=0)
- bou1=Button(fen1,text='Active',command=(lambda:dll()))
- bou1.grid(row=0,column=1)
- bou2=Button(fen1,text='Desactive',command=(lambda:dll0()))
- bou2.grid(row=0,column=2)
- ent2=Label(fen1,text='Videz la liste des documents récents a l\'arrêt')
- ent2.grid(row=1,column=0)
- bou3=Button(fen1,text='Active',command=(lambda:doc()))
- bou3.grid(row=1,column=1)
- bou4=Button(fen1,text='Desactive',command=(lambda:doc0()))
- bou4.grid(row=1,column=2)
- ent3=Label(fen1,text='Accelerer le menu Demarrer')
- ent3.grid(row=2,column=0)
- bou5=Button(fen1,text='Active',command=(lambda:demarrer()))
- bou5.grid(row=2,column=1)
- bou6=Button(fen1,text='Desactive',command=(lambda:demarrer0()))
- bou6.grid(row=2,column=2)
- ent4=Label(fen1,text='Force la fermeture des programmes a l\'arrêt')
- ent4.grid(row=3,column=0)
- bou7=Button(fen1,text='Active',command=(lambda:autoendtasks()))
- bou7.grid(row=3,column=1)
- bou8=Button(fen1,text='Desactive',command=(lambda:autoendtasks0()))
- bou8.grid(row=3,column=2)
- ent5=Label(fen1,text='Optimise la fermeture des programmes bloqués')
- ent5.grid(row=4,column=0)
- bou9=Button(fen1,text='Active',command=(lambda:waittokill()))
- bou9.grid(row=4,column=1)
- bou10=Button(fen1,text='Desactive', command=(lambda:waittokill0()))
- bou10.grid(row=4,column=2)
- ent6=Label(fen1,text='Active la complétion dos')
- ent6.grid(row=5,column=0)
- bou11=Button(fen1,text='Active',command=(lambda:completion()))
- bou11.grid(row=5,column=1)
- bou12=Button(fen1,text='Desactive',command=(lambda:completion0()))
- bou12.grid(row=5,column=2)
- ent7=Label(fen1,text='Retour a la ligne dans le bloc note')
- ent7.grid(row=6,column=0)
- bou13=Button(fen1,text='Active',command=(lambda:bloc()))
- bou13.grid(row=6,column=1)
- bou14=Button(fen1,text='Desactive',command=(lambda:bloc0()))
- bou14.grid(row=6,column=2)
- ent8=Label(fen1,text='Active le clavier numérique au demarrage')
- ent8.grid(row=7,column=0)
- bou15=Button(fen1,text='Active',command=(lambda:verrou()))
- bou15.grid(row=7,column=1)
- bou15=Button(fen1,text='Desactive',command=(lambda:verrou0()))
- bou15.grid(row=7,column=2)
- ent9=Label(fen1,text='Libère la mémoire non utilisée')
- ent9.grid(row=8,column=0)
- bou16=Button(fen1,text='Active',command=(lambda:memoire()))
- bou16.grid(row=8,column=1)
- bou17=Button(fen1,text='Desactive',command=(lambda:memoire0()))
- bou17.grid(row=8,column=2)
- ent10=Label(fen1,text='Optimise la mémoire(réservé + de 128 mo)')
- ent10.grid(row=9,column=0)
- bou18=Button(fen1,text='Active',command=(lambda:optimemoire()))
- bou18.grid(row=9,column=1)
- bou19=Button(fen1,text='Desactive',command=(lambda:optimemoire0()))
- bou19.grid(row=9,column=2)
- ent11=Label(fen1,text='Optimise acces lecteur CD-DVD')
- ent11.grid(row=10,column=0)
- bou20=Button(fen1,text='Active',command=(lambda:cd()))
- bou20.grid(row=10,column=1)
- bou21=Button(fen1,text='Desactive',command=(lambda:cd0()))
- bou21.grid(row=10,column=2)
- ent12=Label(fen1,text='Booste le disque dur')
- ent12.grid(row=11,column=0)
- bou22=Button(fen1,text='Active',command=(lambda:dd()))
- bou22.grid(row=11,column=1)
- bou23=Button(fen1,text='Desactive',command=(lambda:dd0()))
- bou23.grid(row=11,column=2)
- ent13=Label(fen1,text='Accelere l\'ouverture des pages web')
- ent13.grid(row=12,column=0)
- bou24=Button(fen1,text='Active',command=(lambda:web()))
- bou24.grid(row=12,column=1)
- bou24=Button(fen1,text='Desactive',command=(lambda:web0()))
- bou24.grid(row=12,column=2)
- ent14=Label(fen1,text='Vide le swap a l\arrêt')
- ent14.grid(row=13,column=0)
- bou25=Button(fen1,text='Active',command=(lambda:swap()))
- bou25.grid(row=13,column=1)
- bou26=Button(fen1,text='Desactive',command=(lambda:swap0()))
- bou26.grid(row=13,column=2)
- ent15=Label(fen1,text='Supprime les infobulles')
- ent15.grid(row=14,column=0)
- bou27=Button(fen1,text='Active',command=(lambda:infobulle()))
- bou27.grid(row=14,column=1)
- bou28=Button(fen1,text='Desactive',command=(lambda:infobulle0()))
- bou28.grid(row=14,column=2)
- ent16=Label(fen1,text='Desactive l\'envoi de rapport d\'erreur')
- ent16.grid(row=15,column=0)
- bou29=Button(fen1,text='Active',command=(lambda:watson()))
- bou29.grid(row=15,column=1)
- bou30=Button(fen1,text='Desactive',command=(lambda:watson0()))
- bou30.grid(row=15,column=2)
- ent17=Label(fen1,text='Active la souris en console')
- ent17.grid(row=16,column=0)
- bou31=Button(fen1,text='Active',command=(lambda:souris()))
- bou31.grid(row=16,column=1)
- bou32=Button(fen1,text='Desactive',command=(lambda:souris0()))
- bou32.grid(row=16,column=2)
- ent18=Label(fen1,text='Ajoute **Copier dans un dossier** au menu')
- ent18.grid(row=17,column=0)
- bou33=Button(fen1,text='Active',command=(lambda:copier()))
- bou33.grid(row=17,column=1)
- bou34=Button(fen1,text='Desactive',command=(lambda:copier0()))
- bou34.grid(row=17,column=2)
- ent19=Label(fen1,text='Ajoute **Deplacer vers un dossier** au menu')
- ent19.grid(row=18,column=0)
- bou35=Button(fen1,text='Active',command=(lambda:move()))
- bou35.grid(row=18,column=1)
- bou35=Button(fen1,text='Desactive',command=(lambda:move0()))
- bou35.grid(row=18,column=2)
- ent20=Label(fen1,text='Augmente la valeur tampon dédié à la connexion')
- ent20.grid(row=19,column=0)
- bou36=Button(fen1,text='Active',command=(lambda:tampon()))
- bou36.grid(row=19,column=1)
- bou37=Button(fen1,text='Desactive',command=(lambda:tampon0()))
- bou37.grid(row=19,column=2)
- ent21=Label(fen1,text='Améliore le temps d\'accès disque')
- ent21.grid(row=20,column=0)
- bou38=Button(fen1,text='Active',command=(lambda:reponse()))
- bou38.grid(row=20,column=1)
- bou39=Button(fen1,text='Desactive',command=(lambda:reponse0()))
- bou39.grid(row=20,column=2)
- ent22=Label(fen1,text='Enlève l\'onglet Ecran de veille')
- ent22.grid(row=21,column=0)
- bou40=Button(fen1,text='Active',command=(lambda:onglet()))
- bou40.grid(row=21,column=1)
- bou41=Button(fen1,text='Desactive',command=(lambda:onglet0()))
- bou41.grid(row=21,column=2)
- ent23=Label(fen1,text='Active l\'ecran de veille')
- ent23.grid(row=22,column=0)
- bou42=Button(fen1,text='Active',command=(lambda:veille()))
- bou42.grid(row=22,column=1)
- bou43=Button(fen1,text='Desactive',command=(lambda:veille0()))
- bou43.grid(row=22,column=2)
- ent24=Label(fen1,text='Mot de passe sur ecran de veille')
- ent24.grid(row=23,column=0)
- bou44=Button(fen1,text='Active',command=(lambda:passe()))
- bou44.grid(row=23,column=1)
- bou45=Button(fen1,text='Desactive',command=(lambda:passe0()))
- bou45.grid(row=23,column=2)
- ent25=Label(fen1,text='Delai activation ecran de veille à 15mn')
- ent25.grid(row=24,column=0)
- bou46=Button(fen1,text='Active',command=(lambda:delai()))
- bou46.grid(row=24,column=1)
- bou47=Button(fen1,text='Desactive',command=(lambda:delai0()))
- bou47.grid(row=24,column=2)
- ent26=Label(fen1,text='Desactive le gestionnaire de tâches XP Pro')
- ent26.grid(row=0,column=3)
- bou48=Button(fen1,text='Active',command=(lambda:gestionnaire()))
- bou48.grid(row=0,column=4)
- bou49=Button(fen1,text='Desactive',command=(lambda:gestionnaire0()))
- bou49.grid(row=0,column=5)
- ent27=Label(fen1,text='Interdit les installations utilisateurs')
- ent27.grid(row=1,column=3)
- bou50=Button(fen1,text='Active',command=(lambda:install()))
- bou50.grid(row=1,column=4)
- bou51=Button(fen1,text='Desactive',command=(lambda:install0()))
- bou51.grid(row=1,column=5)
- ent28=Label(fen1,text='Empêche l\'ajout d\'icones sur le bureau')
- ent28.grid(row=2,column=3)
- bou52=Button(fen1,text='Active',command=(lambda:icone()))
- bou52.grid(row=2,column=4)
- bou53=Button(fen1,text='Desactive',command=(lambda:icone0()))
- bou53.grid(row=2,column=5)
- ent29=Label(fen1,text='Desactive **Executer**')
- ent29.grid(row=3,column=3)
- bou54=Button(fen1,text='Active',command=(lambda:executer()))
- bou54.grid(row=3,column=4)
- bou55=Button(fen1,text='Desactive',command=(lambda:executer0()))
- bou55.grid(row=3,column=5)
- ent30=Label(fen1,text='Desactive le menu du Bureau')
- ent30.grid(row=4,column=3)
- bou56=Button(fen1,text='Active',command=(lambda:bureau()))
- bou56.grid(row=4,column=4)
- bou57=Button(fen1,text='Desactive',command=(lambda:bureau0()))
- bou57.grid(row=4,column=5)
- ent31=Label(fen1,text='Empeche changement de papier peint')
- ent31.grid(row=5,column=3)
- bou58=Button(fen1,text='Active',command=(lambda:papier()))
- bou58.grid(row=5,column=4)
- bou59=Button(fen1,text='Desactive',command=(lambda:papier0()))
- bou59.grid(row=5,column=5)
- ent32=Label(fen1,text='Desactive la restauration système')
- ent32.grid(row=6,column=3)
- bou60=Button(fen1,text='Active',command=(lambda:restauration()))
- bou60.grid(row=6,column=4)
- bou61=Button(fen1,text='Desactive',command=(lambda:restauration0()))
- bou61.grid(row=6,column=5)
- ent33=Label(fen1,text='Desactive le menu barre des tâches')
- ent33.grid(row=7,column=3)
- bou62=Button(fen1,text='Active',command=(lambda:desactivemenubarretaches()))
- bou62.grid(row=7,column=4)
- bou62=Button(fen1,text='Desactive',command=(lambda:desactivemenubarretaches0()))
- bou62.grid(row=7,column=5)
- ent34=Label(fen1,text='Desactive la console')
- ent34.grid(row=8,column=3)
- bou63=Button(fen1,text='Active',command=(lambda:activecmd()))
- bou63.grid(row=8,column=4)
- bou64=Button(fen1,text='Desactive',command=(lambda:activecmd0()))
- bou64.grid(row=8,column=5)
- ent35=Label(fen1,text='Bloque l\'acces au registre')
- ent35.grid(row=9,column=3)
- bou65=Button(fen1,text='Active',command=(lambda:bloqueregistre()))
- bou65.grid(row=9,column=4)
- bou66=Button(fen1,text='Desactive',command=(lambda:bloqueregistre0()))
- bou66.grid(row=9,column=5)
- ent36=Label(fen1,text='Desactive l\'acces au panneau de configuration')
- ent36.grid(row=10,column=3)
- bou67=Button(fen1,text='Active',command=(lambda:activepanneauconf()))
- bou67.grid(row=10,column=4)
- bou68=Button(fen1,text='Desactive',command=(lambda:activepanneauconf0()))
- bou68.grid(row=10,column=5)
- ent37=Label(fen1,text='Desactive Option des dossiers')
- ent37.grid(row=11,column=3)
- bou69=Button(fen1,text='Active',command=(lambda:activeoptiondossier()))
- bou69.grid(row=11,column=4)
- bou70=Button(fen1,text='Desactive',command=(lambda:activeoptiondossier0()))
- bou70.grid(row=11,column=5)
- ent38=Label(fen1,text='Desactive Ajout/Suppression de programmes')
- ent38.grid(row=12,column=3)
- bou71=Button(fen1,text='Active',command=(lambda:ajoutprog()))
- bou71.grid(row=12,column=4)
- bou72=Button(fen1,text='Desactive',command=(lambda:ajoutprog0()))
- bou72.grid(row=12,column=5)
- ent39=Label(fen1,text='Immobilise la barre des taches')
- ent39.grid(row=13,column=3)
- bou73=Button(fen1,text='Active',command=(lambda:tache()))
- bou73.grid(row=13,column=4)
- bou74=Button(fen1,text='Desactive',command=(lambda:tache0()))
- bou74.grid(row=13,column=5)
- ent40=Label(fen1,text='Enleve **Rechercher** du menu Demarrer')
- ent40.grid(row=14,column=3)
- bou75=Button(fen1,text='Active',command=(lambda:rechercher()))
- bou75.grid(row=14,column=4)
- bou76=Button(fen1,text='Desactive',command=(lambda:rechercher0()))
- bou76.grid(row=14,column=5)
-
- entf=Label(fen1,text='Quitter le programme',fg='red')
- entf.grid(row=25,column=1)
- bouf=Button(fen1,text='Quitter',command=fen1.destroy)
- bouf.grid(row=25,column=2)
- fen1.mainloop()
# -*- coding: utf-8 -*-
from Tkinter import *
import _winreg
def dll():
"Vide les DLL du cache à la fermeture Windows"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
_winreg.SetValueEx(key, 'AlwaysUnloadDLL',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def dll0():
"Replace la valeur normal de la base de registre"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
_winreg.SetValueEx(key, 'AlwaysUnloadDLL',0, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def doc():
"Vide le menu document à la fermeture de Windows"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'ClearRecentDocsOnExit',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def doc0():
"Replace la valeur normal dansle registre"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'ClearRecentDocsOnExit',0, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def demarrer():
"Accelerer le menu demarrer"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key, 'MenuShowDelay',0, _winreg.REG_SZ,'0')
_winreg.CloseKey(key)
def demarrer0():
"Replace la valeur normal dansle registre"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key,'MenuShowDelay',0, _winreg.REG_SZ,'400')
_winreg.CloseKey(key)
def autoendtasks():
"Fermeture forcée des programmes à la fermeture de windows"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key,'AutoEndTasks',1, _winreg.REG_SZ,'1')
_winreg.CloseKey(key)
def autoendtasks0():
"Replace la valeur normal dansle registre"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key,'AutoEndTasks',0, _winreg.REG_SZ,'0')
_winreg.CloseKey(key)
def waittokill():
"Optimise le temps de blocage de programme"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key,'WaitToKillAppTimeout',1, _winreg.REG_SZ,'4000')
_winreg.CloseKey(key)
def waittokill0():
"Replace la valeur par defaut"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key,'WaitToKillAppTimeout',1, _winreg.REG_SZ,'20000')
_winreg.CloseKey(key)
def completion():
"Active la completion dos"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Command Processor')
_winreg.SetValueEx(key,'CompletionChar',1, _winreg.REG_DWORD,9)
_winreg.CloseKey(key)
def completion0():
"Replace la valeur par defaut"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Command Processor')
_winreg.SetValueEx(key,'CompletionChar',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def bloc():
"Active le retour à la ligne dansle bloc note"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Notepad')
_winreg.SetValueEx(key,'fwrap',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def bloc0():
"Replace les valeurs d'origines"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Software\Microsoft\Notepad')
_winreg.SetValueEx(key,'fwrap',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def verrou():
"Active le verrouillage numérique au demarrage"
key = _winreg.CreateKey(_winreg.HKEY_USERS, '.DEFAULT\Control Panel\Keyboard')
_winreg.SetValueEx(key,'InitialKeyboardIndicators',1, _winreg.REG_SZ,'2')
_winreg.CloseKey(key)
def verrou0():
"Replace les valeurs d'origine"
key = _winreg.CreateKey(_winreg.HKEY_USERS, '.DEFAULT\Control Panel\Keyboard')
_winreg.SetValueEx(key,'InitialKeyboardIndicators',1, _winreg.REG_SZ,'0')
_winreg.CloseKey(key)
def memoire():
"Optimise la mémoire"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key,'HungAppTimeout',0, _winreg.REG_SZ,'2000')
_winreg.CloseKey(key)
def memoire0():
"Replace les valeurs d'origine"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Control Panel\Desktop')
_winreg.SetValueEx(key,'HungAppTimeout',1, _winreg.REG_SZ,'4000')
_winreg.CloseKey(key)
def optimemoire():
"Optimise l'utilisation de la mémoire"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
_winreg.SetValueEx(key,'DisablePagingExecutive',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def optimemoire0():
"Retablit les valeurs par defaut"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
_winreg.SetValueEx(key,'DisablePagingExecutive',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def cd():
"Augmente la vitesse de gravure"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
_winreg.SetValueEx(key,'CacheSize',1, _winreg.REG_BINARY,'\xff\xff\x00\x00')
_winreg.CloseKey(key)
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
_winreg.SetValueEx(key,'Prefetch',1, _winreg.REG_DWORD,4000)
_winreg.CloseKey(key)
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
_winreg.SetValueEx(key,'PrefetchTail',1, _winreg.REG_DWORD,4000)
_winreg.CloseKey(key)
def cd0():
"Elimine les valeurs précédentes"
_winreg.DeleteKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\FileSystem\CDFS')
def dd():
"Booster le disque dur"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
_winreg.SetValueEx(key,'LargeSystemCache',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def dd0():
"Retabli les valeurs d'origine"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
_winreg.SetValueEx(key,'LargeSystemCache',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def web():
"Augmente la vitesse d'ouverture des pages web"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings')
_winreg.SetValueEx(key,'xConnectionsPerServer',1, _winreg.REG_DWORD,4)
_winreg.CloseKey(key)
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings')
_winreg.SetValueEx(key,'MaxConnectionsPer1_0Server',1, _winreg.REG_DWORD,8)
_winreg.CloseKey(key)
def web0():
"Replace les valeurs d'origine"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings')
_winreg.SetValueEx(key,'MaxConnectionsPer1_0Server',1, _winreg.REG_DWORD,10)
_winreg.CloseKey(key)
def swap():
"Vide le swap a l'arrêt"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
_winreg.SetValueEx(key,'ClearPageFileAtShutdown',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def swap0():
"Retablit les valeurs d'origine"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management')
_winreg.SetValueEx(key,'ClearPageFileAtShutdown',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def infobulle():
"Desactive les infos bulles"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
_winreg.SetValueEx(key,'EnableBalloonTips',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def infobulle0():
"Reactive les infos bulles"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer')
_winreg.SetValueEx(key,'EnableBalloonTips',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def watson():
"Desactive l'envoi des rapports d'erreurs"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Internet Explorer\Main')
_winreg.SetValueEx(key,'IEWatsonDisabled',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def watson0():
"Reactive l'envoi des rapports d'erreurs"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SOFTWARE\Microsoft\Internet Explorer\Main')
_winreg.SetValueEx(key,'IEWatsonDisabled',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def souris():
"Active la souris dans la console"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Console')
_winreg.SetValueEx(key,'QuickEdit',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def souris0():
"Desactive la souris en console"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER, 'Console')
_winreg.SetValueEx(key,'QuickEdit',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def copier():
"Ajoute copier vers dans le menu contextuel"
key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To')
_winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'{C2FBB630-2971-11D1-A18C-00C04FD75D13}')
_winreg.CloseKey(key)
def copier0():
"Enleve copier vers du menu contextuel"
key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Copy To')
_winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'')
_winreg.CloseKey(key)
def move():
"Ajoute deplacer dans au menu contextuel"
key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Move To')
_winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'{C2FBB631-2971-11D1-A18C-00C04FD75D13}')
_winreg.CloseKey(key)
def move0():
"Enleve deplacer dans du menu contextuel"
key = _winreg.CreateKey(_winreg.HKEY_CLASSES_ROOT, 'AllFilesystemObjects\shellex\ContextMenuHandlers\Move To')
_winreg.SetValueEx(key,'',1, _winreg.REG_SZ,'')
_winreg.CloseKey(key)
def tampon():
"Augmente la valeur du tampon pour la connexion"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
_winreg.SetValueEx(key,'MaxCmds',1, _winreg.REG_DWORD,100)
_winreg.CloseKey(key)
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
_winreg.SetValueEx(key,'MaxThreads',1, _winreg.REG_DWORD,100)
_winreg.CloseKey(key)
def tampon0():
"Retabli les valeurs par defaut"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
_winreg.SetValueEx(key,'MaxCmds',1, _winreg.REG_DWORD,21)
_winreg.CloseKey(key)
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters')
_winreg.SetValueEx(key,'MaxThreads',1, _winreg.REG_DWORD,21)
_winreg.CloseKey(key)
def reponse():
"Augmente le temps de reponse lors des accès disques"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\FileSystem')
_winreg.SetValueEx(key,'NtfsDisableLastAccessUpdate',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def reponse0():
"Retabli la valeur d'origine"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\FileSystem')
_winreg.SetValueEx(key,'NtfsDisableLastAccessUpdate',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def onglet():
"Cache l'onglet Ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
_winreg.SetValueEx(key, 'NoDispScrSavPage',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def onglet0():
"Replace l'onglet Ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
_winreg.SetValueEx(key, 'NoDispScrSavPage',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def veille():
"Active l'ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaveActive',1, _winreg.REG_SZ,'1')
_winreg.CloseKey(key)
def veille0():
"Desactive l'ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaveActive',1, _winreg.REG_SZ,'0')
_winreg.CloseKey(key)
def passe():
"Mot de passe ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaverIsSecure',1, _winreg.REG_SZ,'1')
_winreg.CloseKey(key)
def passe0():
"Desactive mot de passe ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaverIsSecure',1, _winreg.REG_SZ,'0')
_winreg.CloseKey(key)
def delai():
"Delai activation ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'960')
_winreg.CloseKey(key)
key = _winreg.CreateKey(_winreg.HKEY_USERS,'.DEFAULT\Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'960')
_winreg.CloseKey(key)
def delai0():
"Delai activation ecran de veille"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'Software\Policies\Microsoft\Windows\Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'600')
_winreg.CloseKey(key)
key = _winreg.CreateKey(_winreg.HKEY_USERS,'.DEFAULT\Control Panel\Desktop')
_winreg.SetValueEx(key, 'ScreenSaveTimeOut',1, _winreg.REG_SZ,'600')
_winreg.CloseKey(key)
def ajoutprog():
"Desactive le programme Ajout/suppression de programmes"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Uninstall')
_winreg.SetValueEx(key, 'NoAddRemovePrograms',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def ajoutprog0():
"Réactive le programme Ajout/suppression de programmes"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Uninstall')
_winreg.SetValueEx(key, 'NoAddRemovePrograms',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def activeoptiondossier():
"Desactive les Options des Dossiers"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoFolderOptions',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def activeoptiondossier0():
"Active les Options des Dossiers"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoFolderOptions',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def activepanneauconf():
"Desactive le panneau de configuration"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoControlPanel',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def activepanneauconf0():
"Active le panneau de configuration"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoControlPanel',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def bloqueregistre():
"Bloque l'accès à la base de registre"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
_winreg.SetValueEx(key, 'DisableRegistryTools',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def bloqueregistre0():
"Débloque l'accès à la base de registre"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
_winreg.SetValueEx(key, 'DisableRegistryTools',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def activecmd():
"Desactive la console"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Policies\Microsoft\Windows\System')
_winreg.SetValueEx(key, 'DisableCMD',1, _winreg.REG_DWORD,2)
_winreg.CloseKey(key)
def activecmd0():
"Active la console"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Policies\Microsoft\Windows\System')
_winreg.SetValueEx(key, 'DisableCMD',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def desactivemenubarretaches():
"Desactive le menu de la barre des taches"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoTrayContextMenu',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def desactivemenubarretaches0():
"Réactive le menu de la barre des taches"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoTrayContextMenu',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def restauration():
"Desactive la restauration du système"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore')
_winreg.SetValueEx(key, 'DisableSR',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def restauration0():
"Active la restauration du système"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore')
_winreg.SetValueEx(key, 'DisableSR',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def papier():
"Desactive le changement de papier peint"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
_winreg.SetValueEx(key, 'NoChangingWallPaper',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def papier0():
"Réactive le changement de papier peint"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
_winreg.SetValueEx(key, 'NoChangingWallPaper',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def bureau():
"Desactive le menu du Bureau"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoViewContextMenu',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def bureau0():
"Active le menu du bureau"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoViewContextMenu',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def executer():
"Desactive Executer"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoRun',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def executer0():
"Reactive Executer"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoRun',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def icone():
"Empecher l'ajout d'icones sur le bureau"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
_winreg.SetValueEx(key, 'NoAddingComponents',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def icone0():
"Reactive l'ajout d'incones sur le bureau"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop')
_winreg.SetValueEx(key, 'NoAddingComponents',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def gestionnaire():
"Desactive le gestionnaire de taches"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
_winreg.SetValueEx(key, 'DisableTaskMgr',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def gestionnaire0():
"Reactive le gestionnaire de taches"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System')
_winreg.SetValueEx(key, 'DisableTaskMgr',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def install():
"Interdit les installations utilisateurs"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows\Installer')
_winreg.SetValueEx(key, 'DisableUserInstalls',1, _winreg.REG_DWORD,2)
_winreg.CloseKey(key)
def install0():
"Reactive les installations utilisateurs"
key = _winreg.CreateKey(_winreg.HKEY_LOCAL_MACHINE,'SOFTWARE\Policies\Microsoft\Windows\Installer')
_winreg.SetValueEx(key, 'DisableUserInstalls',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def tache():
"Immobilise la barre des taches"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoSetTaskBar',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def tache0():
"Peut bouger la barre des taches"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'NoSetTaskBar',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
def rechercher():
"Enleve Rechercher du menu demarrer"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'Nofind',1, _winreg.REG_DWORD,1)
_winreg.CloseKey(key)
def rechercher0():
"Remet Rechercher dans le menu demarrer"
key = _winreg.CreateKey(_winreg.HKEY_CURRENT_USER,'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer')
_winreg.SetValueEx(key, 'Nofind',1, _winreg.REG_DWORD,0)
_winreg.CloseKey(key)
#Programme principal
fen1=Tk()
fen1.title('Optimisation Windows 2000/XP')
ent1=Label(fen1,text='Videz les dll du cache a l\'arrêt')
ent1.grid(row=0,column=0)
bou1=Button(fen1,text='Active',command=(lambda:dll()))
bou1.grid(row=0,column=1)
bou2=Button(fen1,text='Desactive',command=(lambda:dll0()))
bou2.grid(row=0,column=2)
ent2=Label(fen1,text='Videz la liste des documents récents a l\'arrêt')
ent2.grid(row=1,column=0)
bou3=Button(fen1,text='Active',command=(lambda:doc()))
bou3.grid(row=1,column=1)
bou4=Button(fen1,text='Desactive',command=(lambda:doc0()))
bou4.grid(row=1,column=2)
ent3=Label(fen1,text='Accelerer le menu Demarrer')
ent3.grid(row=2,column=0)
bou5=Button(fen1,text='Active',command=(lambda:demarrer()))
bou5.grid(row=2,column=1)
bou6=Button(fen1,text='Desactive',command=(lambda:demarrer0()))
bou6.grid(row=2,column=2)
ent4=Label(fen1,text='Force la fermeture des programmes a l\'arrêt')
ent4.grid(row=3,column=0)
bou7=Button(fen1,text='Active',command=(lambda:autoendtasks()))
bou7.grid(row=3,column=1)
bou8=Button(fen1,text='Desactive',command=(lambda:autoendtasks0()))
bou8.grid(row=3,column=2)
ent5=Label(fen1,text='Optimise la fermeture des programmes bloqués')
ent5.grid(row=4,column=0)
bou9=Button(fen1,text='Active',command=(lambda:waittokill()))
bou9.grid(row=4,column=1)
bou10=Button(fen1,text='Desactive', command=(lambda:waittokill0()))
bou10.grid(row=4,column=2)
ent6=Label(fen1,text='Active la complétion dos')
ent6.grid(row=5,column=0)
bou11=Button(fen1,text='Active',command=(lambda:completion()))
bou11.grid(row=5,column=1)
bou12=Button(fen1,text='Desactive',command=(lambda:completion0()))
bou12.grid(row=5,column=2)
ent7=Label(fen1,text='Retour a la ligne dans le bloc note')
ent7.grid(row=6,column=0)
bou13=Button(fen1,text='Active',command=(lambda:bloc()))
bou13.grid(row=6,column=1)
bou14=Button(fen1,text='Desactive',command=(lambda:bloc0()))
bou14.grid(row=6,column=2)
ent8=Label(fen1,text='Active le clavier numérique au demarrage')
ent8.grid(row=7,column=0)
bou15=Button(fen1,text='Active',command=(lambda:verrou()))
bou15.grid(row=7,column=1)
bou15=Button(fen1,text='Desactive',command=(lambda:verrou0()))
bou15.grid(row=7,column=2)
ent9=Label(fen1,text='Libère la mémoire non utilisée')
ent9.grid(row=8,column=0)
bou16=Button(fen1,text='Active',command=(lambda:memoire()))
bou16.grid(row=8,column=1)
bou17=Button(fen1,text='Desactive',command=(lambda:memoire0()))
bou17.grid(row=8,column=2)
ent10=Label(fen1,text='Optimise la mémoire(réservé + de 128 mo)')
ent10.grid(row=9,column=0)
bou18=Button(fen1,text='Active',command=(lambda:optimemoire()))
bou18.grid(row=9,column=1)
bou19=Button(fen1,text='Desactive',command=(lambda:optimemoire0()))
bou19.grid(row=9,column=2)
ent11=Label(fen1,text='Optimise acces lecteur CD-DVD')
ent11.grid(row=10,column=0)
bou20=Button(fen1,text='Active',command=(lambda:cd()))
bou20.grid(row=10,column=1)
bou21=Button(fen1,text='Desactive',command=(lambda:cd0()))
bou21.grid(row=10,column=2)
ent12=Label(fen1,text='Booste le disque dur')
ent12.grid(row=11,column=0)
bou22=Button(fen1,text='Active',command=(lambda:dd()))
bou22.grid(row=11,column=1)
bou23=Button(fen1,text='Desactive',command=(lambda:dd0()))
bou23.grid(row=11,column=2)
ent13=Label(fen1,text='Accelere l\'ouverture des pages web')
ent13.grid(row=12,column=0)
bou24=Button(fen1,text='Active',command=(lambda:web()))
bou24.grid(row=12,column=1)
bou24=Button(fen1,text='Desactive',command=(lambda:web0()))
bou24.grid(row=12,column=2)
ent14=Label(fen1,text='Vide le swap a l\arrêt')
ent14.grid(row=13,column=0)
bou25=Button(fen1,text='Active',command=(lambda:swap()))
bou25.grid(row=13,column=1)
bou26=Button(fen1,text='Desactive',command=(lambda:swap0()))
bou26.grid(row=13,column=2)
ent15=Label(fen1,text='Supprime les infobulles')
ent15.grid(row=14,column=0)
bou27=Button(fen1,text='Active',command=(lambda:infobulle()))
bou27.grid(row=14,column=1)
bou28=Button(fen1,text='Desactive',command=(lambda:infobulle0()))
bou28.grid(row=14,column=2)
ent16=Label(fen1,text='Desactive l\'envoi de rapport d\'erreur')
ent16.grid(row=15,column=0)
bou29=Button(fen1,text='Active',command=(lambda:watson()))
bou29.grid(row=15,column=1)
bou30=Button(fen1,text='Desactive',command=(lambda:watson0()))
bou30.grid(row=15,column=2)
ent17=Label(fen1,text='Active la souris en console')
ent17.grid(row=16,column=0)
bou31=Button(fen1,text='Active',command=(lambda:souris()))
bou31.grid(row=16,column=1)
bou32=Button(fen1,text='Desactive',command=(lambda:souris0()))
bou32.grid(row=16,column=2)
ent18=Label(fen1,text='Ajoute **Copier dans un dossier** au menu')
ent18.grid(row=17,column=0)
bou33=Button(fen1,text='Active',command=(lambda:copier()))
bou33.grid(row=17,column=1)
bou34=Button(fen1,text='Desactive',command=(lambda:copier0()))
bou34.grid(row=17,column=2)
ent19=Label(fen1,text='Ajoute **Deplacer vers un dossier** au menu')
ent19.grid(row=18,column=0)
bou35=Button(fen1,text='Active',command=(lambda:move()))
bou35.grid(row=18,column=1)
bou35=Button(fen1,text='Desactive',command=(lambda:move0()))
bou35.grid(row=18,column=2)
ent20=Label(fen1,text='Augmente la valeur tampon dédié à la connexion')
ent20.grid(row=19,column=0)
bou36=Button(fen1,text='Active',command=(lambda:tampon()))
bou36.grid(row=19,column=1)
bou37=Button(fen1,text='Desactive',command=(lambda:tampon0()))
bou37.grid(row=19,column=2)
ent21=Label(fen1,text='Améliore le temps d\'accès disque')
ent21.grid(row=20,column=0)
bou38=Button(fen1,text='Active',command=(lambda:reponse()))
bou38.grid(row=20,column=1)
bou39=Button(fen1,text='Desactive',command=(lambda:reponse0()))
bou39.grid(row=20,column=2)
ent22=Label(fen1,text='Enlève l\'onglet Ecran de veille')
ent22.grid(row=21,column=0)
bou40=Button(fen1,text='Active',command=(lambda:onglet()))
bou40.grid(row=21,column=1)
bou41=Button(fen1,text='Desactive',command=(lambda:onglet0()))
bou41.grid(row=21,column=2)
ent23=Label(fen1,text='Active l\'ecran de veille')
ent23.grid(row=22,column=0)
bou42=Button(fen1,text='Active',command=(lambda:veille()))
bou42.grid(row=22,column=1)
bou43=Button(fen1,text='Desactive',command=(lambda:veille0()))
bou43.grid(row=22,column=2)
ent24=Label(fen1,text='Mot de passe sur ecran de veille')
ent24.grid(row=23,column=0)
bou44=Button(fen1,text='Active',command=(lambda:passe()))
bou44.grid(row=23,column=1)
bou45=Button(fen1,text='Desactive',command=(lambda:passe0()))
bou45.grid(row=23,column=2)
ent25=Label(fen1,text='Delai activation ecran de veille à 15mn')
ent25.grid(row=24,column=0)
bou46=Button(fen1,text='Active',command=(lambda:delai()))
bou46.grid(row=24,column=1)
bou47=Button(fen1,text='Desactive',command=(lambda:delai0()))
bou47.grid(row=24,column=2)
ent26=Label(fen1,text='Desactive le gestionnaire de tâches XP Pro')
ent26.grid(row=0,column=3)
bou48=Button(fen1,text='Active',command=(lambda:gestionnaire()))
bou48.grid(row=0,column=4)
bou49=Button(fen1,text='Desactive',command=(lambda:gestionnaire0()))
bou49.grid(row=0,column=5)
ent27=Label(fen1,text='Interdit les installations utilisateurs')
ent27.grid(row=1,column=3)
bou50=Button(fen1,text='Active',command=(lambda:install()))
bou50.grid(row=1,column=4)
bou51=Button(fen1,text='Desactive',command=(lambda:install0()))
bou51.grid(row=1,column=5)
ent28=Label(fen1,text='Empêche l\'ajout d\'icones sur le bureau')
ent28.grid(row=2,column=3)
bou52=Button(fen1,text='Active',command=(lambda:icone()))
bou52.grid(row=2,column=4)
bou53=Button(fen1,text='Desactive',command=(lambda:icone0()))
bou53.grid(row=2,column=5)
ent29=Label(fen1,text='Desactive **Executer**')
ent29.grid(row=3,column=3)
bou54=Button(fen1,text='Active',command=(lambda:executer()))
bou54.grid(row=3,column=4)
bou55=Button(fen1,text='Desactive',command=(lambda:executer0()))
bou55.grid(row=3,column=5)
ent30=Label(fen1,text='Desactive le menu du Bureau')
ent30.grid(row=4,column=3)
bou56=Button(fen1,text='Active',command=(lambda:bureau()))
bou56.grid(row=4,column=4)
bou57=Button(fen1,text='Desactive',command=(lambda:bureau0()))
bou57.grid(row=4,column=5)
ent31=Label(fen1,text='Empeche changement de papier peint')
ent31.grid(row=5,column=3)
bou58=Button(fen1,text='Active',command=(lambda:papier()))
bou58.grid(row=5,column=4)
bou59=Button(fen1,text='Desactive',command=(lambda:papier0()))
bou59.grid(row=5,column=5)
ent32=Label(fen1,text='Desactive la restauration système')
ent32.grid(row=6,column=3)
bou60=Button(fen1,text='Active',command=(lambda:restauration()))
bou60.grid(row=6,column=4)
bou61=Button(fen1,text='Desactive',command=(lambda:restauration0()))
bou61.grid(row=6,column=5)
ent33=Label(fen1,text='Desactive le menu barre des tâches')
ent33.grid(row=7,column=3)
bou62=Button(fen1,text='Active',command=(lambda:desactivemenubarretaches()))
bou62.grid(row=7,column=4)
bou62=Button(fen1,text='Desactive',command=(lambda:desactivemenubarretaches0()))
bou62.grid(row=7,column=5)
ent34=Label(fen1,text='Desactive la console')
ent34.grid(row=8,column=3)
bou63=Button(fen1,text='Active',command=(lambda:activecmd()))
bou63.grid(row=8,column=4)
bou64=Button(fen1,text='Desactive',command=(lambda:activecmd0()))
bou64.grid(row=8,column=5)
ent35=Label(fen1,text='Bloque l\'acces au registre')
ent35.grid(row=9,column=3)
bou65=Button(fen1,text='Active',command=(lambda:bloqueregistre()))
bou65.grid(row=9,column=4)
bou66=Button(fen1,text='Desactive',command=(lambda:bloqueregistre0()))
bou66.grid(row=9,column=5)
ent36=Label(fen1,text='Desactive l\'acces au panneau de configuration')
ent36.grid(row=10,column=3)
bou67=Button(fen1,text='Active',command=(lambda:activepanneauconf()))
bou67.grid(row=10,column=4)
bou68=Button(fen1,text='Desactive',command=(lambda:activepanneauconf0()))
bou68.grid(row=10,column=5)
ent37=Label(fen1,text='Desactive Option des dossiers')
ent37.grid(row=11,column=3)
bou69=Button(fen1,text='Active',command=(lambda:activeoptiondossier()))
bou69.grid(row=11,column=4)
bou70=Button(fen1,text='Desactive',command=(lambda:activeoptiondossier0()))
bou70.grid(row=11,column=5)
ent38=Label(fen1,text='Desactive Ajout/Suppression de programmes')
ent38.grid(row=12,column=3)
bou71=Button(fen1,text='Active',command=(lambda:ajoutprog()))
bou71.grid(row=12,column=4)
bou72=Button(fen1,text='Desactive',command=(lambda:ajoutprog0()))
bou72.grid(row=12,column=5)
ent39=Label(fen1,text='Immobilise la barre des taches')
ent39.grid(row=13,column=3)
bou73=Button(fen1,text='Active',command=(lambda:tache()))
bou73.grid(row=13,column=4)
bou74=Button(fen1,text='Desactive',command=(lambda:tache0()))
bou74.grid(row=13,column=5)
ent40=Label(fen1,text='Enleve **Rechercher** du menu Demarrer')
ent40.grid(row=14,column=3)
bou75=Button(fen1,text='Active',command=(lambda:rechercher()))
bou75.grid(row=14,column=4)
bou76=Button(fen1,text='Desactive',command=(lambda:rechercher0()))
bou76.grid(row=14,column=5)
entf=Label(fen1,text='Quitter le programme',fg='red')
entf.grid(row=25,column=1)
bouf=Button(fen1,text='Quitter',command=fen1.destroy)
bouf.grid(row=25,column=2)
fen1.mainloop()
Conclusion
Ce soft est exclusivement résérvé aux Os Xp et 2000. Une partie des modifications registres ne sont pas applicable à Vista, alors si vous ne voulez pas bloquer votre système ne le tester pas sur Vista.
Ce soft est sous licence libre.
Historique
- 12 février 2008 09:28:21 :
- Pas de modificatin
Sources de la même categorie
Commentaires et avis
Discussions en rapport avec ce code source dans le forum
Ouverture d'un fichier windows (avec Tkinter) [ par Uims ]
Bonjour, Je travaille sous python et Tkinter et j'aurai voulu savoir comment dire a python de demarrer (comme on clique sur un fichier) une applicati
Débutant, complètement perdu... [ par Mgiv64 ]
Bonjour à tous, J'ai programmé une petite application qui réalise des backup d'un fichier de données (d'une application comptable).Mon programme loca
crash sous Windows 7 [ par louis14 ]
Bonjour, J'ai une application écrite sous python 2.4 avec des librairies externes ( HDF5, graphique et quelques dll de mon cru). Cette application tou
Tkinter et les bases de données [ par dahrprog ]
Bonjour tout le monde :) , je suis débutant en Python et Tkinter , je peux fabriquer des interfaces sur Tkinter , et je j'aimerais bien manipuler des
Espace dans un label Tkinter [ par dahrprog ]
Bonjour tout le monde , je voudrais afficher des données de ma base de données sur une interface Tkinter via une Label , ça marche bien , j'ai mis :
Tk vs wx [ par bonac ]
Bonjour,Je doit faire une assez grosse application en python, le problème est que je ne connaissait pas python (du moins de nom) le mois dernier. Cett
scrollbar dans scrollbox avec TKinter [ par MHI ]
Est-ce que quelqu'un sait comment ajouter les scrollbar à une scrollbox :J'ai essayé ceci :lstFile = Tkinter.Listbox(frmMain)lstFile.place(x = 20, y =
checkButton avec TKinter [ par MHI ]
comment faire pour tester si un checkButton est coché ?
Probleme avec TKinter [ par titasse ]
Bonjour, je debute en python. J'ai un probleme lorsque je veux importer TKinter avec la commande from TKinter import * j'ai le message suivant : Imp
au sujet de Tkinter et le module turtle [ par nico1900 ]
from turtle import *forward(120)left(90) color('red') forward(80)bon en fait je voulais tester le module turtle avec l e code ci-d
|
Derniers Blogs
CSS CONTENT STATE SELECTORS (PERSONNAL DRAFT)CSS CONTENT STATE SELECTORS (PERSONNAL DRAFT) par FREMYCOMPANY
Bonjour à tous, Je viens de publier une proposition comprenant 5 pseudo-classes pour le CSS Working Group ayant trait à l'état de chargement d'un élément (ex: IMG,VIDEO,AUDIO,OBJECT pour l'HTML.). Si le c½ur vous en dit, vous pouvez retrouver cette p...
Cliquez pour lire la suite de l'article par FREMYCOMPANY MBA : POURQUOI FAIRE ET COMMENT LE CHOISIR ?MBA : POURQUOI FAIRE ET COMMENT LE CHOISIR ? par ROMELARD Fabrice
Formation initiale Durant la formation, le découpage classique est le suivant (je donnerai les équivalences Suisse lorsque je les connaîtrais) : Ecole primaire jusqu'au Collège : Formation générale permettant d'obtenir les méthodes...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice Y'A DES ERREURS QUI PEUVENT RENDRE LE DéVELOPPEUR VIOLENTY'A DES ERREURS QUI PEUVENT RENDRE LE DéVELOPPEUR VIOLENT par Aleks
Quand on a ce genre d'erreur sans log :
Et bas on a juste envie de choper le gas de Microsoft qu'a développé ça et lui foutre des baffes de Coboye ! ...
Cliquez pour lire la suite de l'article par Aleks [HYPER-V 3] PRéSENTATION DES COMMANDLETS POWERSHELL[HYPER-V 3] PRéSENTATION DES COMMANDLETS POWERSHELL par Pierrick CATRO-BROUILLET
Avec la sortie prochaine de la Beta Consumer Preview de Windows 8, j'avais envie de revenir sur une des fonctionnalités que j'attends le plus et que, en bon geek que je suis, j'utilise déjà : Hyper-V 3 ainsi son module PowerShell.
Il y a déjà pléthor...
Cliquez pour lire la suite de l'article par Pierrick CATRO-BROUILLET IIS7 - COMPRESSION GZIPIIS7 - COMPRESSION GZIP par cyril
La compression GZIP permet d'améliorer les performances de navigation en compressant ce qu'envoie le serveur à un client. Pour comprendre comment cela fonctionne, regardons ce qu'il se passe au niveau HTTP lorsqu'un client tente d'accéder à une ress...
Cliquez pour lire la suite de l'article par cyril
Forum
PYVISA PROBLèMEPYVISA PROBLèME par sandrine44
Cliquez pour lire la suite par sandrine44
Logiciels
Easy-Planning (1.0.0.1)EASY-PLANNING (1.0.0.1)Basé sur les mêmes principes que MyPlanning, Easy-Planning permet de créer des plannings sous la ... Cliquez pour télécharger Easy-Planning Academy System (17.1.3.0)ACADEMY SYSTEM (17.1.3.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System COLLECTOR PLUS (3.00B)COLLECTOR PLUS (3.00B)COLLECTOR PLUS version 3.00B est un logiciel utilisant une base de données alimentée par :
- L... Cliquez pour télécharger COLLECTOR PLUS PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V7.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO LettresFaciles 2011 (8.0.0.1)LETTRESFACILES 2011 (8.0.0.1)LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types.
Son inte... Cliquez pour télécharger LettresFaciles 2011
|