# =================================================================== # WINDOWS 10 EXTREME GAMING OPTIMIZER # MACHINE OFFLINE DÉDIÉE AU JEU # # CONFIG : # - Intel i5 4e génération (Haswell) # - 32 Go DDR3 # - GTX 1050 Ti # - SSD # # OBJECTIF : # - réduire la latence CPU # - supprimer l’overhead Windows # - maximiser les frametimes/min FPS # - optimiser Baldur's Gate 3 # # ⚠️ ATTENTION # - machine OFFLINE uniquement # - sécurité fortement réduite # - exécuter en ADMINISTRATEUR # - REDÉMARRAGE OBLIGATOIRE # =================================================================== Write-Host "" Write-Host "=====================================================" Write-Host " WINDOWS 10 EXTREME GAMING OPTIMIZER" Write-Host "=====================================================" Write-Host "" # ========================================================= # 0. VÉRIFICATION ADMIN # ========================================================= $currentPrincipal = New-Object Security.Principal.WindowsPrincipal( [Security.Principal.WindowsIdentity]::GetCurrent() ) if (-not $currentPrincipal.IsInRole( [Security.Principal.WindowsBuiltInRole]::Administrator)) { Write-Host "❌ Lancer PowerShell en ADMINISTRATEUR." Pause Exit } # ========================================================= # 1. PLAN D'ALIMENTATION ULTIMATE PERFORMANCE # ========================================================= Write-Host "⚡ Activation Ultimate Performance..." powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 > $null powercfg /setactive e9a42b02-d5df-448d-aa00-03f14749eb61 powercfg -setacvalueindex scheme_current sub_processor PROCTHROTTLEMIN 100 powercfg -setacvalueindex scheme_current sub_processor PROCTHROTTLEMAX 100 powercfg -setacvalueindex scheme_current sub_processor CPMINCORES 100 # Désactive veille powercfg -change standby-timeout-ac 0 powercfg -change hibernate-timeout-ac 0 powercfg /h off # ========================================================= # 2. DÉSACTIVATION TOTALE VBS / HVCI # ========================================================= Write-Host "🛡️ Désactivation VBS/HVCI..." reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" ` /v EnableVirtualizationBasedSecurity ` /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" ` /v Enabled ` /t REG_DWORD /d 0 /f bcdedit /set hypervisorlaunchtype off # ========================================================= # 3. DÉSACTIVATION BRUTALE MITIGATIONS CPU # ========================================================= Write-Host "☠️ Désactivation mitigations CPU..." reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" ` /v FeatureSettings ` /t REG_DWORD /d 0 /f reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" ` /v FeatureSettingsOverride ` /t REG_DWORD /d 3 /f reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" ` /v FeatureSettingsOverrideMask ` /t REG_DWORD /d 3 /f bcdedit /set "{current}" mitigationauditoptions 0 bcdedit /set "{current}" mitigationoptions OFF # ========================================================= # 4. GAME DVR / XBOX # ========================================================= Write-Host "🎮 Désactivation Game DVR..." reg add "HKCU\System\GameConfigStore" ` /v GameDVR_Enabled ` /t REG_DWORD /d 0 /f reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" ` /v AppCaptureEnabled ` /t REG_DWORD /d 0 /f # ========================================================= # 5. EFFETS VISUELS # ========================================================= Write-Host "🪟 Désactivation effets visuels..." reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" ` /v VisualFXSetting ` /t REG_DWORD /d 2 /f reg add "HKCU\Control Panel\Desktop" ` /v MenuShowDelay ` /t REG_SZ /d 0 /f reg add "HKCU\Control Panel\Desktop\WindowMetrics" ` /v MinAnimate ` /t REG_SZ /d 0 /f # ========================================================= # 6. OPTIMISATION NVIDIA # ========================================================= Write-Host "🎯 Optimisation NVIDIA..." reg add "HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers" ` /v HwSchMode ` /t REG_DWORD /d 2 /f Stop-Service NvTelemetryContainer -Force -ErrorAction SilentlyContinue Set-Service NvTelemetryContainer -StartupType Disabled -ErrorAction SilentlyContinue # ========================================================= # 7. OPTIMISATION SSD # ========================================================= Write-Host "💾 Optimisation SSD..." fsutil behavior set DisableDeleteNotify 0 > $null reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" ` /v NtfsDisableLastAccessUpdate ` /t REG_DWORD /d 1 /f # ========================================================= # 8. SCHEDULER / LATENCE # ========================================================= Write-Host "🚀 Optimisation scheduler..." reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ` /v NetworkThrottlingIndex ` /t REG_DWORD /d 4294967295 /f reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile" ` /v SystemResponsiveness ` /t REG_DWORD /d 0 /f # ========================================================= # 9. SERVICES À DÉSACTIVER # ========================================================= Write-Host "🔧 Désactivation services inutiles..." $services = @( "SysMain", "DiagTrack", "dmwappushservice", "Fax", "MapsBroker", "WSearch", "WerSvc", "XblAuthManager", "XblGameSave", "XboxNetApiSvc", "XboxGipSvc", "lfsvc", "WbioSrvc", "TabletInputService", "Spooler", "RemoteRegistry", "RetailDemo", "PcaSvc", "TrkWks", "WMPNetworkSvc", "wisvc", "SEMgrSvc", "PhoneSvc", "PrintNotify", "OneSyncSvc", "MessagingService", "MixedRealityOpenXRSvc", "DiagTrack", "Fax", "MapsBroker" ) foreach ($svc in $services) { Stop-Service $svc -Force -ErrorAction SilentlyContinue Set-Service $svc -StartupType Disabled -ErrorAction SilentlyContinue } # ========================================================= # 10. WINDOWS UPDATE # ========================================================= Write-Host "📦 Désactivation Windows Update..." Stop-Service wuauserv -Force -ErrorAction SilentlyContinue Set-Service wuauserv -StartupType Disabled Stop-Service BITS -Force -ErrorAction SilentlyContinue Set-Service BITS -StartupType Disabled # ========================================================= # 11. WINDOWS DEFENDER # ========================================================= Write-Host "🛡️ Désactivation Defender..." Set-MpPreference -DisableRealtimeMonitoring $true -ErrorAction SilentlyContinue Set-MpPreference -DisableBehaviorMonitoring $true -ErrorAction SilentlyContinue Set-MpPreference -DisableScriptScanning $true -ErrorAction SilentlyContinue Set-MpPreference -DisableIOAVProtection $true -ErrorAction SilentlyContinue # ========================================================= # 12. FIREWALL # ========================================================= Write-Host "🔥 Désactivation Firewall..." Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False # ========================================================= # 13. INDEXATION # ========================================================= Write-Host "🔍 Désactivation indexation..." Stop-Service WSearch -Force -ErrorAction SilentlyContinue Set-Service WSearch -StartupType Disabled # ========================================================= # 14. TÉLÉMÉTRIE # ========================================================= Write-Host "📡 Désactivation télémétrie..." reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" ` /v AllowTelemetry ` /t REG_DWORD /d 0 /f # ========================================================= # 15. NOTIFICATIONS # ========================================================= Write-Host "🔕 Désactivation notifications..." reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\PushNotifications" ` /v ToastEnabled ` /t REG_DWORD /d 0 /f # ========================================================= # 16. PAGEFILE # ========================================================= # BG3 peut crasher sans pagefile même avec 32 Go Write-Host "📄 Configuration pagefile..." wmic computersystem where name="%computername%" ` set AutomaticManagedPagefile=True # ========================================================= # 17. NETTOYAGE TEMP # ========================================================= Write-Host "🧹 Nettoyage..." Remove-Item "$env:TEMP\*" ` -Recurse ` -Force ` -ErrorAction SilentlyContinue Remove-Item "C:\Windows\Temp\*" ` -Recurse ` -Force ` -ErrorAction SilentlyContinue # ========================================================= # 18. PRIORITÉ GPU NVIDIA # ========================================================= Write-Host "🎯 Priorité GPU élevée..." reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" ` /v "GPU Priority" ` /t REG_DWORD /d 8 /f reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" ` /v "Priority" ` /t REG_DWORD /d 6 /f reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Games" ` /v "Scheduling Category" ` /t REG_SZ /d "High" /f # ========================================================= # 19. ARRÊT SERVICES NVIDIA INUTILES # ========================================================= Write-Host "🎮 Désactivation services NVIDIA inutiles..." $nvservices = @( "NvTelemetryContainer", "NvContainerLocalSystem", "NvContainerNetworkService" ) foreach ($svc in $nvservices) { Stop-Service $svc -Force -ErrorAction SilentlyContinue Set-Service $svc -StartupType Disabled -ErrorAction SilentlyContinue } # ========================================================= # 20. FIN # ========================================================= Write-Host "" Write-Host "=====================================================" Write-Host " OPTIMISATION TERMINÉE" Write-Host "=====================================================" Write-Host "" Write-Host "⚠️ REDÉMARRE WINDOWS MAINTENANT" Write-Host ""