Opti2 ou comment optimiser windows xp et/2000 en quelques clics

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 / Exemple :


# -*- 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.

Codes Sources

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.