v4.1-3 09/11/2018 - changelog


Guides > Divers

 

.: Les guides inclassables

Vidange des journaux Windows 7
2012-01-08

 

Editeur : Mitsu
Date : 2012-01-08
Niveau :
-
Nécessaire :
-
Windows avec le temps s'auto-dégrade.
C'est un fait avéré et cela se traduit par diverses choses qu'on peut plus ou moins limiter.
Voici donc une astuce pour améliorer le temps de chargement.
Un administrateur réseau qui en a l'utilité se passera de cette suppression des journaux.
Mais un utilisateur lambda lui n'a rien demandé.
La manipulation est simple, réduit le temps de chargement, et permet un léger gain de place sur son disque.

-1- Créer un fichier texte "Vidange_journaux.txt"

-2- Une fois ce fichier créé, changer son extension en .bat

-3- éditer ce fichier et insérer le code que voici :

@echo
SET VEVLOGCLR=wevtutil cl
%VEVLOGCLR% "Microsoft-Windows-ADSI/Debug"
%VEVLOGCLR% "Microsoft-Windows-AltTab/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Backup"
%VEVLOGCLR% "Microsoft-Windows-Bits-Client/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Bits-Client/Operational"
%VEVLOGCLR% "Microsoft-Windows-CAPI2/Operational"
%VEVLOGCLR% "Microsoft-Windows-CertificateServicesClient-CredentialRoaming/Operational"
%VEVLOGCLR% "Microsoft-Windows-CodeIntegrity/Operational"
%VEVLOGCLR% "Microsoft-Windows-CodeIntegrity/Verbose"
%VEVLOGCLR% "Microsoft-Windows-COM/Analytic"
%VEVLOGCLR% "Microsoft-Windows-CorruptedFileRecovery-Client/Operational"
%VEVLOGCLR% "Microsoft-Windows-CorruptedFileRecovery-Server/Operational"
%VEVLOGCLR% "Microsoft-Windows-CredUI/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-DateTimeControlPanel/Analytic"
%VEVLOGCLR% "Microsoft-Windows-DateTimeControlPanel/Debug"
%VEVLOGCLR% "Microsoft-Windows-DateTimeControlPanel/Operational"
%VEVLOGCLR% "Microsoft-Windows-DCLocator/Debug"
%VEVLOGCLR% "Microsoft-Windows-Dhcp-Client/Admin"
%VEVLOGCLR% "Microsoft-Windows-Dhcpv6-Client/Admin"
%VEVLOGCLR% "Microsoft-Windows-Diagnosis-DPS/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Diagnosis-DPS/Debug"
%VEVLOGCLR% "Microsoft-Windows-Diagnosis-DPS/Operational"
%VEVLOGCLR% "Microsoft-Windows-Diagnosis-PLA/Debug"
%VEVLOGCLR% "Microsoft-Windows-Diagnosis-PLA/Operational"
%VEVLOGCLR% "Microsoft-Windows-Diagnosis-WDI/Debug"
%VEVLOGCLR% "Microsoft-Windows-Diagnostics-Networking/Debug"
%VEVLOGCLR% "Microsoft-Windows-Diagnostics-Networking/Operational"
%VEVLOGCLR% "Microsoft-Windows-Diagnostics-Performance/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Diagnostics-Performance/Diagnostic/Loopback"
%VEVLOGCLR% "Microsoft-Windows-Diagnostics-Performance/Operational"
%VEVLOGCLR% "Microsoft-Windows-DiskDiagnostic/Operational"
%VEVLOGCLR% "Microsoft-Windows-DiskDiagnosticDataCollector/Operational"
%VEVLOGCLR% "Microsoft-Windows-DiskDiagnosticResolver/Operational"
%VEVLOGCLR% "Microsoft-Windows-DriverFrameworks-UserMode/Operational"
%VEVLOGCLR% "Microsoft-Windows-DxgKrnl/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-EFS/Debug"
%VEVLOGCLR% "Microsoft-Windows-EventCollector/Debug"
%VEVLOGCLR% "Microsoft-Windows-EventCollector/Operational"
%VEVLOGCLR% "Microsoft-Windows-EventLog-WMIProvider/Debug"
%VEVLOGCLR% "Microsoft-Windows-EventLog/Analytic"
%VEVLOGCLR% "Microsoft-Windows-EventLog/Debug"
%VEVLOGCLR% "Microsoft-Windows-FileInfoMinifilter/Operational"
%VEVLOGCLR% "Microsoft-Windows-Firewall-CPL/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Forwarding/Operational"
%VEVLOGCLR% "Microsoft-Windows-GroupPolicy/Operational"
%VEVLOGCLR% "Microsoft-Windows-Help/Operational"
%VEVLOGCLR% "Microsoft-Windows-HotStart/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-HttpService/Trace"
%VEVLOGCLR% "Microsoft-Windows-International/Operational"
%VEVLOGCLR% "Microsoft-Windows-IPSEC-SRV/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-Acpi/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-EventTracing/Admin"
%VEVLOGCLR% "Microsoft-Windows-Kernel-BootDiagnostics/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-PnP/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-Power/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-Prefetch/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-Process/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-Registry/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-WDI/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Kernel-WDI/Debug"
%VEVLOGCLR% "Microsoft-Windows-Kernel-WDI/Operational"
%VEVLOGCLR% "Microsoft-Windows-LanguagePackSetup/Analytic"
%VEVLOGCLR% "Microsoft-Windows-LanguagePackSetup/Debug"
%VEVLOGCLR% "Microsoft-Windows-LanguagePackSetup/Operational"
%VEVLOGCLR% "Microsoft-Windows-LDAP-Client/Debug"
%VEVLOGCLR% "Microsoft-Windows-MemoryDiagnostics-Results/Debug"
%VEVLOGCLR% "Microsoft-Windows-mobsync/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-MPS-CLNT/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-MPS-DRV/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-MPS-SRV/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-MUI/Operational"
%VEVLOGCLR% "Microsoft-Windows-NetworkAccessProtection/Operational"
%VEVLOGCLR% "Microsoft-Windows-OfflineFiles/Analytic"
%VEVLOGCLR% "Microsoft-Windows-OfflineFiles/Debug"
%VEVLOGCLR% "Microsoft-Windows-OfflineFiles/Operational"
%VEVLOGCLR% "Microsoft-Windows-OfflineFiles/SyncLog"
%VEVLOGCLR% "Microsoft-Windows-PowerCfg/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-PowerCpl/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-PrintService/Admin"
%VEVLOGCLR% "Microsoft-Windows-QoS-qWAVE/Debug"
%VEVLOGCLR% "Microsoft-Windows-ReadyBoost/Operational"
%VEVLOGCLR% "Microsoft-Windows-ReliabilityAnalysisComponent/Operational"
%VEVLOGCLR% "Microsoft-Windows-RemoteAssistance/Admin"
%VEVLOGCLR% "Microsoft-Windows-RemoteAssistance/Operational"
%VEVLOGCLR% "Microsoft-Windows-RemoteAssistance/Tracing"
%VEVLOGCLR% "Microsoft-Windows-Resource-Exhaustion-Detector/Operational"
%VEVLOGCLR% "Microsoft-Windows-Resource-Exhaustion-Resolver/Operational"
%VEVLOGCLR% "Microsoft-Windows-Resource-Leak-Diagnostic/Operational"
%VEVLOGCLR% "Microsoft-Windows-ResourcePublication/Tracing"
%VEVLOGCLR% "Microsoft-Windows-RestartManager/Operational"
%VEVLOGCLR% "Microsoft-Windows-RPC/Debug"
%VEVLOGCLR% "Microsoft-Windows-RPC/EEInfo"
%VEVLOGCLR% "Microsoft-Windows-Sens/Debug"
%VEVLOGCLR% "Microsoft-Windows-ServiceReportingApi/Debug"
%VEVLOGCLR% "Microsoft-Windows-Services-Svchost/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Services/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Shell-AuthUI-Common/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Shell-AuthUI-CredUI/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Shell-AuthUI-Logon/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Shell-AuthUI-PasswordProvider/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Shell-AuthUI-Shutdown/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Shell-DefaultPrograms/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Shell-Shwebsvc"
%VEVLOGCLR% "Microsoft-Windows-Shell-ZipFolder/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Speech-UserExperience/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-stobject/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Subsys-Csr/Operational"
%VEVLOGCLR% "Microsoft-Windows-Subsys-SMSS/Operational"
%VEVLOGCLR% "Microsoft-Windows-SystemHealthAgent/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-TaskScheduler/Debug"
%VEVLOGCLR% "Microsoft-Windows-TaskScheduler/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-TaskScheduler/Operational"
%VEVLOGCLR% "Microsoft-Windows-TerminalServices-PnPDevices/Admin"
%VEVLOGCLR% "Microsoft-Windows-TerminalServices-PnPDevices/Analytic"
%VEVLOGCLR% "Microsoft-Windows-TerminalServices-PnPDevices/Debug"
%VEVLOGCLR% "Microsoft-Windows-TerminalServices-PnPDevices/Operational"
%VEVLOGCLR% "Microsoft-Windows-TerminalServices-RemoteConnectionManager/Analytic"
%VEVLOGCLR% "Microsoft-Windows-TerminalServices-RemoteConnectionManager/Debug"
%VEVLOGCLR% "Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational"
%VEVLOGCLR% "Microsoft-Windows-UAC-FileVirtualization/Operational"
%VEVLOGCLR% "Microsoft-Windows-UAC/Operational"
%VEVLOGCLR% "Microsoft-Windows-User-Loader/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Virtual PC/Admin"
%VEVLOGCLR% "Microsoft-Windows-VolumeSnapshot-Driver/Operational"
%VEVLOGCLR% "Microsoft-Windows-WindowsUpdateClient/Operational"
%VEVLOGCLR% "Microsoft-Windows-WinINet/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Wininit/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Winlogon/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-Winlogon/Operational"
%VEVLOGCLR% "Microsoft-Windows-WinRM/Analytic"
%VEVLOGCLR% "Microsoft-Windows-WinRM/Debug"
%VEVLOGCLR% "Microsoft-Windows-Winsock-AFD/Operational"
%VEVLOGCLR% "Microsoft-Windows-Winsock-WS2HELP/Operational"
%VEVLOGCLR% "Microsoft-Windows-Winsrv/Analytic"
%VEVLOGCLR% "Microsoft-Windows-Wired-AutoConfig/Operational"
%VEVLOGCLR% "Microsoft-Windows-WLAN-AutoConfig/Operational"
%VEVLOGCLR% "Microsoft-Windows-WMI-Activity/Trace"
%VEVLOGCLR% "Microsoft-Windows-WSC-SRV/Diagnostic"
%VEVLOGCLR% "Microsoft-Windows-WUSA/Debug"
%VEVLOGCLR% "OSession"
%VEVLOGCLR% "Application"
%VEVLOGCLR% "Security"
%VEVLOGCLR% "Setup"
%VEVLOGCLR% "EndpointMapper"
%VEVLOGCLR% "ForwardedEvents"
%VEVLOGCLR% "HardwareEvents"
%VEVLOGCLR% "Internet Explorer"
%VEVLOGCLR% "Key Management Service"
%VEVLOGCLR% "Media Center"
%VEVLOGCLR% "ACEEventLog"
%VEVLOGCLR% "System"
%VEVLOGCLR% "Windows PowerShell"
SET VEVLOGCLR=
exit


il ne reste plus qu'à exécuter ce petit script :)

Enjoy~



Retour au listing



 


Valid XHTML 1.0 Transitional