Lab – Windows : Optimisation de ta VM (debloater)
📖 18 min de lecture • 3503 mots
Il est souvent utile d’avoir sous la main un Windows tout frais pour tester une application un peu envahissante et/ou la confiance n’est pas absolue. C’est souvent le cas pour des applications touchant au système pour des optimisations ou une potion magique réglant tous les problèmes en cliquant sur « suivant ».
Mais voilà, avoir deux Windows sur la même machine ou héberger sur un proxmox, c’est compliqué d’avoir un minimum de performance.
Je propose donc une optimisation de ta VM de test pour se sentir moins à l’étroit. Les listes proposées ne sont pas exhaustives et sont à adapter a chaque besoin. Toutes fois, il n’y a pas d’éléments essentiels risquant de cassé le système (écran bleu).
Arrêt de service inutiles
- Service de l’assistant de compatibilité des programmes ? => compatibilité descendante avec Windows 7 et moins
- Windows Search ? => Ne désactive pas la recherche, mais l’indexation de la recherche donc la recherche sera un peu plus lente, c’est tout.
- Service de rapport d’erreur Windows ? => Sert au diagnostique de panne pour les utilisateurs avancés
- Superfetch / Sysmain ? => Préchargement de programme au démarrage de la machine, il rend un peu plus rapide le chargement d’office (par exemple) pour les autres programmes le gain est transparent.
- Gestionnaire de carte de téléchargé ?=> Sert pour le programme de carte style google MAP
- Xbox ? => Inutile si pas d’abonnement X BOX
Get-Service | Where-Object {$_.Name -like "*PcaSvc*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*WSearch*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*WerSvc*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*SysMain*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*Xbox*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*OneDrive*"} | Stop-Service -Force
Service bonus suivant l’utilisation
- Spooler d’impression ? => Inutile si pas d’imprimante rattaché à la machine
- Service de biométrie Windows ? => Inutile si l’on n’utilise pas la reconnaissance faciale ou un lecteur d’empreinte
- Service d’expérience des utilisateurs et télémétrie ? => Inutile si la machine n’est pas un Windows insider
- Apple mobile device service ? => Inutile si aucun téléphone n’est connecté avec votre Windows
Get-Service | Where-Object {$_.Name -like "*Spooler*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*WbioSrvc*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*DiagTrack*"} | Stop-Service -Force
Get-Service | Where-Object {$_.Name -like "*WEPHOSTSVC*"} | Stop-Service -Force
Application inutile
- Alarme ? => Fournit une alarme avec une notification
- Family ? => Application de définition d’un groupe de compte Microsoft formant une famille
- Feedback hub ? => Application pour envoyer des commentaires a Microsoft en cas d’erreur ou dans le cadre du programme insider
- Microsoft Bing ? => Force le moteur Bing dans toutes les applications
- Microsoft News ? => Affiche des popups avec les news Bing
- Microsoft Teams ? => Un excellents outils en entreprise, mais a du mal à trouver son public
- Microsoft One Drive ? => Un excellents outils en entreprise, mais trop limité avec le plan gratuit (5 go)
- Microsoft To Do ? => Mouais, c’est inutile.
- Outlook ? => Un excellents outils en entreprise, mais pareil pour le grand public l’intérêt est limité face aux interfaces Web.
- Quick Assit ? => Permet de solliciter de l’aide auprès d’un ami et partager son écran.
- Power Automate ? => Développement d’agent IA est gourmand en ressource et donc inutile sur une VM
- Start Experiences App ? => C’est l’application qui ce lance au premier démarrage pour présenter les fonctionnalités Windows
- Sticky notes ? => Pour mettre des post-it sur le bureau.
- Weather ? => L’application météo a peu d’intérêt, car elle vous localise en fonction de votre adresse IP et non sur votre position GPS
- Xbox ? => Inutile si pas d’abonnement X BOX
- Xbox Live ? => Inutile si pas d’abonnement X BOX
# Déinstallation des applications via PowerShell
$apps = @(
"Microsoft.WindowsConsumerFeedback", # Feedback Hub
"Microsoft.Bing", # Bing
"Microsoft.BingNews", # News
"MicrosoftTeams", # Teams
"Microsoft.OneDriveSync", # OneDrive
"Microsoft.Todos", # To Do
"Microsoft.OutlookForWindows", # Outlook
"MicrosoftCorporationII.QuickAssist", # Quick Assist
"Microsoft.PowerAutomateDesktop", # Power Automate
"Microsoft.Getstarted", # Start Experiences
"Microsoft.MicrosoftStickyNotes", # Sticky Notes
"Microsoft.BingWeather", # Weather
"Microsoft.XboxGamingOverlay", # Xbox
"Microsoft.XboxIdentityProvider", # Xbox Live
"Microsoft.Xbox.TCUI" # Xbox components
)
foreach ($app in $apps) {
Get-AppxPackage -Name "*$app*" -AllUsers | Remove-AppxPackage -AllUsers
Write-Host "Attempted removal of $app via AppxPackage"
}
exit 0
# Nettoyage additionnel via AppxPackage pour les apps système
$systemApps = @(
"Microsoft.WindowsAlarms",
"Microsoft.WindowsMaps"
)
foreach ($app in $systemApps) {
Get-AppxPackage -Name "*$app*" -AllUsers | Remove-AppxPackage -AllUsers
}
Write-Host "Nettoyage terminé!"
Composants système
- Game Bar ? => Inutile si pas d’abonnement X BOX
- Get Help ? => Inutile, il ouvre d’aide en ligne qui est souvent mal contextualisé par rapport au problème rencontré
- Mobile devices ? => Application qui permet l’intégration des appels, SMS, Contacts d’un téléphone mobile
- Phone Link ? => Assure la connectivité du téléphone mobile avec Android ou IOS
- Windows Application Compatibility ? => compatibilité descendante avec Windows 7 et moins
$appsToRemove = @(
"Microsoft.YourPhone", # Mobile devices / Phone Link
"Microsoft.PhoneLink", # Phone Link (Android/iOS)
"Microsoft.GamingApp" # Game Bar (nouveau nom)
)
foreach ($app in $appsToRemove) {
Get-AppxPackage -Name "*$app*" -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
Write-Host " - $app"
}
Get-Service | Where-Object {$_.Name -like "*PcaSvc*"} | Stop-Service -Force
Fonctionnalités facultatives
- Client Dossier de travail ? => Assure la synchronisation des dossiers notamment pour One Drive ou SharePoint
- Services d’impression et de numérisation de document ? => Inutile si pas d’imprimante
- Client d’impression Internet ? => ? => Inutile si pas d’imprimante
Commandes utiles
#dossier caché des applications
explorer shell:appsfolder
Script PowerShell à customiser à souhait
# ============================================================================
# SCRIPT DE DEBLOAT POUR TEMPLATE WINDOWS VM (PROXMOX) - v2
# Auteur: Adapté pour usage VM/Serveur
# Date: 2026
# ============================================================================
Write-Host "=== DEBLOAT WINDOWS VM - DEMARRAGE ===" -ForegroundColor Cyan
# ============================================================================
# 1. DESINSTALLATION DES APPLICATIONS UWP
# ============================================================================
Write-Host "`n=== 1. SUPPRESSION APPLICATIONS UWP ===" -ForegroundColor Yellow
$appsToRemove = @(
"Microsoft.WindowsFeedbackHub", # Feedback Hub
"Microsoft.Bing", # Bing
"Microsoft.BingNews", # News
"Microsoft.Teams", # Teams
"Microsoft.OneDrive", # OneDrive
"Microsoft.Todos", # To Do
"Microsoft.OutlookForWindows", # Outlook
"MicrosoftCorporationII.QuickAssist",# Quick Assist
"Microsoft.PowerAutomateDesktop", # Power Automate
"Microsoft.Getstarted", # Start Experiences
"Microsoft.MicrosoftStickyNotes", # Sticky Notes
"Microsoft.BingWeather", # Weather
"Microsoft.XboxApp", # Xbox
"Microsoft.XboxIdentityProvider", # Xbox Live
"Microsoft.Xbox.TCUI", # Xbox TCUI
"Microsoft.XboxGamingOverlay", # Xbox Game Bar
"Microsoft.ZuneMusic", # Groove Music
"Microsoft.ZuneVideo", # Films & TV
"Microsoft.WindowsPhone", # Phone
"Microsoft.WindowsCommunicationsApps",# Mail & Calendar
"Microsoft.Messaging", # Messaging
"Microsoft.SkypeApp", # Skype
"Microsoft.People", # People
"Microsoft.Print3D", # Print 3D
"Microsoft.MSPaint", # Paint 3D
"Microsoft.Microsoft3DViewer", # 3D Viewer
"Microsoft.GetHelp", # Get Help (aide en ligne)
"Microsoft.WindowsAlarms", # Alarms
"Microsoft.WindowsMaps", # Maps
"Microsoft.WindowsSoundRecorder", # Sound Recorder
"Microsoft.WindowsCamera", # Camera
"microsoft.windowscommunicationsapps",# Communications
"Microsoft.YourPhone", # Mobile devices / Phone Link
"Microsoft.PhoneLink", # Phone Link (Android/iOS)
"Microsoft.GamingApp", # Game Bar (nouveau nom)
"Microsoft.WindowsStore", # Microsoft Store (optionnel)
"Microsoft.HEIFImageExtension", # HEIF Extension
"Microsoft.HEVCVideoExtensions", # HEVC Extension
"Microsoft.WebMediaExtensions", # Web Media Extension
"Microsoft.WebpImageExtension", # WebP Extension
"Microsoft.ScreenSketch", # Snip & Sketch
"Microsoft.Paint", # Paint (optionnel)
"Microsoft.Notepad", # Notepad (optionnel)
"Microsoft.WordPad", # WordPad (optionnel)
"Microsoft.WindowsTerminal", # Windows Terminal (garder si utile)
"Microsoft.PowerShell", # PowerShell Core
"Microsoft.WindowsCalculator", # Calculator
"Microsoft.Windows.DevHome", # Dev Home
"Microsoft.Copilot", # Copilot (IA)
"Microsoft_clipchamp", # Clipchamp
"Microsoft.Todos", # Microsoft To Do
"Microsoft.OneNote", # OneNote
"Microsoft.Office.OneNote", # OneNote
"Microsoft.SolitaireCollection", # Solitaire
"Microsoft.BingFinance", # Finance
"Microsoft.BingFoodAndDrink", # Food & Drink
"Microsoft.BingHealthAndFitness", # Health & Fitness
"Microsoft.BingTravel", # Travel
"Microsoft.BingSports", # Sports
"Microsoft.News", # News
"Microsoft.Reader", # Reader
"Microsoft.MSPaint", # Paint
"Microsoft.Wallet", # Wallet
"Microsoft.Office.Sway", # Sway
"Microsoft.Office.Hub", # Office Hub
"Microsoft.CommsPhone", # Phone
"Microsoft.ConnectivityStore", # Connectivity Store
"Microsoft.Appconnector", # App Connector
"Microsoft.CandyCrushSaga", # Candy Crush
"Microsoft.CandyCrushSodaSaga", # Candy Crush Soda
"Microsoft.FarmVille2", # FarmVille
"Microsoft.Twitter", # Twitter
"Microsoft.Facebook", # Facebook
"Microsoft.Instagram", # Instagram
"Microsoft.Pandoru", # Pandora
"Microsoft.Shazam", # Shazam
"Microsoft.iHeartRadio", # iHeartRadio
"Microsoft.Spotify", # Spotify
"Microsoft.NetFlix", # Netflix
"Microsoft.Hulu", # Hulu
"Microsoft.PrimeVideo", # Prime Video
"Microsoft.Disney", # Disney+
"Microsoft.HBOTV", # HBO
"Microsoft.ParamountPlus", # Paramount+
"Microsoft.PeacockTV", # Peacock
"Microsoft.DAZN", # DAZN
"Microsoft.NBA", # NBA
"Microsoft.ESPN", # ESPN
"Microsoft.BleacherReport", # Bleacher Report
"Microsoft.GolfChannel", # Golf Channel
"Microsoft.TennisChannel", # Tennis Channel
"Microsoft.MLB", # MLB
"Microsoft.NHL", # NHL
"Microsoft.PGA", # PGA
"Microsoft.UFC", # UFC
"Microsoft.WWE", # WWE
"Microsoft.RedBullTV", # Red Bull TV
"Microsoft.PlutoTV", # Pluto TV
"Microsoft.Tubi", # Tubi
"Microsoft.Crunchyroll", # Crunchyroll
"Microsoft.Funimation", # Funimation
"Microsoft.Crackle", # Crackle
"Microsoft.Vudu", # Vudu
"Microsoft.FandangoNow", # FandangoNow
"Microsoft.GooglePlayMovies", # Google Play Movies
"Microsoft.Vudu", # Vudu
"Microsoft.AmazonVideo", # Amazon Video
"Microsoft.YouTube", # YouTube
"Microsoft.Vimeo", # Vimeo
"Microsoft.Dailymotion", # Dailymotion
"Microsoft.Twitch", # Twitch
"Microsoft.Mixer", # Mixer
"Microsoft.FacebookWatch", # Facebook Watch
"Microsoft.Snapchat", # Snapchat
"Microsoft.TikTok", # TikTok
"Microsoft.Whatsapp", # WhatsApp
"Microsoft.Telegram", # Telegram
"Microsoft.Viber", # Viber
"Microsoft.Line", # Line
"Microsoft.WeChat", # WeChat
"Microsoft.KakaoTalk", # KakaoTalk
"Microsoft.Signal", # Signal
"Microsoft.Wire", # Wire
"Microsoft.Threema", # Threema
"Microsoft.Element", # Element
"Microsoft.Matrix", # Matrix
"Microsoft.Slack", # Slack
"Microsoft.Discord", # Discord
"Microsoft.Zoom", # Zoom
"Microsoft.GoogleMeet", # Google Meet
"Microsoft.GoToMeeting", # GoToMeeting
"Microsoft.WebEx", # WebEx
"Microsoft.BlueJeans", # BlueJeans
"Microsoft.Jitsi", # Jitsi
"Microsoft.BigBlueButton", # BigBlueButton
"Microsoft.RocketChat", # Rocket.Chat
"Microsoft.Mattermost", # Mattermost
"Microsoft.Zulip", # Zulip
"Microsoft.IRC", # IRC
"Microsoft.Mumble", # Mumble
"Microsoft.TeamSpeak", # TeamSpeak
"Microsoft.Ventrilo", # Ventrilo
"Microsoft.SkypeForBusiness", # Skype for Business
"Microsoft.Lync", # Lync
"Microsoft.Exchange", # Exchange
"Microsoft.Outlook", # Outlook
"Microsoft.OutlookExpress", # Outlook Express
"Microsoft.WindowsMail", # Windows Mail
"Microsoft.WindowsCalendar", # Windows Calendar
"Microsoft.WindowsContacts", # Windows Contacts
"Microsoft.WindowsLiveMail", # Windows Live Mail
"Microsoft.WindowsLiveMessenger", # Windows Live Messenger
"Microsoft.WindowsLivePhotoGallery", # Windows Live Photo Gallery
"Microsoft.WindowsLiveWriter", # Windows Live Writer
"Microsoft.WindowsLiveEssentials", # Windows Live Essentials
"Microsoft.WindowsLiveToolbar", # Windows Live Toolbar
"Microsoft.WindowsLiveCall", # Windows Live Call
"Microsoft.WindowsLiveSync", # Windows Live Sync
"Microsoft.WindowsLiveMesh", # Windows Live Mesh
"Microsoft.WindowsLiveSkyDrive", # Windows Live SkyDrive
"Microsoft.OneDrive", # OneDrive
"Microsoft.OneDriveForBusiness", # OneDrive for Business
"Microsoft.SharePoint", # SharePoint
"Microsoft.Teams", # Teams
"Microsoft.Yammer", # Yammer
"Microsoft.VivaEngage", # Viva Engage
"Microsoft.Planner", # Planner
"Microsoft.Project", # Project
"Microsoft.Visio", # Visio
"Microsoft.Access", # Access
"Microsoft.Publisher", # Publisher
"Microsoft.InfoPath", # InfoPath
"Microsoft.Groove", # Groove
"Microsoft.Lync", # Lync
"Microsoft.SkypeForBusiness", # Skype for Business
"Microsoft.Exchange", # Exchange
"Microsoft.Outlook", # Outlook
"Microsoft.Word", # Word
"Microsoft.Excel", # Excel
"Microsoft.PowerPoint", # PowerPoint
"Microsoft.OneNote", # OneNote
"Microsoft.Office", # Office
"Microsoft.Office365", # Office 365
"Microsoft.Microsoft365", # Microsoft 365
"Microsoft.Azure", # Azure
"Microsoft.AzureCLI", # Azure CLI
"Microsoft.AzureConnect", # Azure Connect
"Microsoft.AzureBackup", # Azure Backup
"Microsoft.AzureRecoveryServices", # Azure Recovery Services
"Microsoft.AzureSiteRecovery", # Azure Site Recovery
"Microsoft.AzureTrafficManager", # Azure Traffic Manager
"Microsoft.AzureCDN", # Azure CDN
"Microsoft.AzureDNS", # Azure DNS
"Microsoft.AzureActiveDirectory", # Azure Active Directory
"Microsoft.AzureADConnect", # Azure AD Connect
"Microsoft.AzureADApplicationProxy", # Azure AD Application Proxy
"Microsoft.AzureADPasswordProtection",# Azure AD Password Protection
"Microsoft.AzureADPrivilegedIdentityManagement", # Azure AD PIM
"Microsoft.AzureADConditionalAccess",# Azure AD Conditional Access
"Microsoft.AzureADIdentityProtection",# Azure AD Identity Protection
"Microsoft.AzureADIdentityGovernance",# Azure AD Identity Governance
"Microsoft.AzureADAccessReviews", # Azure AD Access Reviews
"Microsoft.AzureADEntitlementManagement", # Azure AD Entitlement Management
"Microsoft.AzureADTermaServices", # Azure AD Terms of Service
"Microsoft.AzureADAuthenticationMethods", # Azure AD Authentication Methods
"Microsoft.AzureADSelfServicePasswordReset", # Azure AD SSPR
"Microsoft.AzureADCloudAppDiscovery",# Azure AD Cloud App Discovery
"Microsoft.AzureADAppGovernance", # Azure AD App Governance
"Microsoft.AzureADWorkloadIdentity", # Azure AD Workload Identity
"Microsoft.AzureADManagedIdentity", # Azure AD Managed Identity
"Microsoft.AzureADServicePrincipal", # Azure AD Service Principal
"Microsoft.AzureADUser", # Azure AD User
"Microsoft.AzureADGroup", # Azure AD Group
"Microsoft.AzureADRole", # Azure AD Role
"Microsoft.AzureADPolicy", # Azure AD Policy
"Microsoft.AzureADApplication", # Azure AD Application
"Microsoft.AzureADDevice", # Azure AD Device
"Microsoft.AzureADDomain", # Azure AD Domain
"Microsoft.AzureADTenant", # Azure AD Tenant
"Microsoft.AzureADSubscription", # Azure AD Subscription
"Microsoft.AzureADLicense", # Azure AD License
"Microsoft.AzureADBilling", # Azure AD Billing
"Microsoft.AzureADSupport", # Azure AD Support
"Microsoft.AzureADHealth", # Azure AD Health
"Microsoft.AzureADMonitoring", # Azure AD Monitoring
"Microsoft.AzureADReporting", # Azure AD Reporting
"Microsoft.AzureADAuditing", # Azure AD Auditing
"Microsoft.AzureADCompliance", # Azure AD Compliance
"Microsoft.AzureADSecurity", # Azure AD Security
"Microsoft.AzureADPrivacy", # Azure AD Privacy
"Microsoft.AzureADGovernance", # Azure AD Governance
"Microsoft.AzureADRiskManagement", # Azure AD Risk Management
"Microsoft.AzureADThreatProtection", # Azure AD Threat Protection
"Microsoft.AzureADIdentitySecurity", # Azure AD Identity Security
"Microsoft.AzureADZeroTrust", # Azure AD Zero Trust
"Microsoft.AzureADPremium", # Azure AD Premium
"Microsoft.AzureADFree", # Azure AD Free
"Microsoft.AzureADB2C", # Azure AD B2C
"Microsoft.AzureADB2D", # Azure AD B2D
"Microsoft.AzureADB2E", # Azure AD B2E
"Microsoft.AzureADB2F", # Azure AD B2F
"Microsoft.AzureADB2G", # Azure AD B2G
"Microsoft.AzureADB2H", # Azure AD B2H
"Microsoft.AzureADB2I", # Azure AD B2I
"Microsoft.AzureADB2J", # Azure AD B2J
"Microsoft.AzureADB2K", # Azure AD B2K
"Microsoft.AzureADB2L", # Azure AD B2L
"Microsoft.AzureADB2M", # Azure AD B2M
"Microsoft.AzureADB2N", # Azure AD B2N
"Microsoft.AzureADB2O", # Azure AD B2O
"Microsoft.AzureADB2P", # Azure AD B2P
"Microsoft.AzureADB2Q", # Azure AD B2Q
"Microsoft.AzureADB2R", # Azure AD B2R
"Microsoft.AzureADB2S", # Azure AD B2S
"Microsoft.AzureADB2T", # Azure AD B2T
"Microsoft.AzureADB2U", # Azure AD B2U
"Microsoft.AzureADB2V", # Azure AD B2V
"Microsoft.AzureADB2W", # Azure AD B2W
"Microsoft.AzureADB2X", # Azure AD B2X
"Microsoft.AzureADB2Y", # Azure AD B2Y
"Microsoft.AzureADB2Z" # Azure AD B2Z
)
foreach ($app in $appsToRemove) {
Get-AppxPackage -Name "*$app*" -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
Write-Host " - $app"
}
# ============================================================================
# 2. DESACTIVATION DES SERVICES
# ============================================================================
Write-Host "`n=== 2. DESACTIVATION DES SERVICES ===" -ForegroundColor Yellow
$servicesToDisable = @(
"Spooler", # Service d'impression
"WbioSrvc", # Service biométrie
"DiagTrack", # Expérience utilisateur et télémétrie
"dmwappushservice", # WAP Push
"PcaSvc", # Assistant compatibilité (Windows 7)
"WSearch", # Windows Search (indexation)
"WerSvc", # Rapport d'erreur Windows
"SysMain", # Superfetch/SysMain
"BITS", # Transfert intelligent
"HomeGroupListener", # HomeGroup
"HomeGroupProvider", # HomeGroup
"RetailDemo", # Mode démo
"XblAuthManager", # Xbox Auth
"XblGameSave", # Xbox Game Save
"XboxNetApiSvc", # Xbox Network
"InstallService", # Windows Install
"TabletInputService", # Stylet/tactile
"lfsvc", # Géolocalisation
"MapsBroker", # Maps broker
"PhoneSvc", # Service téléphone
"Fax", # Fax
"BluetoothUserService", # Bluetooth
"bthserv", # Bluetooth support
"PrintNotify", # Notification impression
"SCardSvr", # Carte à puce
"WpcMonSvc", # Contrôle parental
"WalletService", # Wallet
"WiaRpc", # Acquisition image
"StorSvc", # Stockage
"SensorDataService", # Capteurs
"SensorService", # Service capteurs
"SenSvc", # Capteurs
"SensrSvc", # Service capteurs
"CDPSvc", # Plateforme appareils connectés
"DsSvc", # Data Sharing
"DoSvc", # Delivery Optimization
"DusmSvc", # Data Usage
"EFS", # Chiffrement EFS
"FontCache3.0", # Cache police
"GraphicsPerfSvc", # Perf graphiques
"HvHost", # Virtualisation
"ICSSVC", # Partage connexion
"IpxlatCfgSvc", # Traduction IPv6
"MSiSCSI", # iSCSI
"NaturalAuthentication",# Auth naturelle
"NcaSvc", # Assistant connectivité
"NcbService", # Broker connectivité
"Netlogon", # Netlogon
"NetTcpPortSharing", # Partage port TCP
"NgcCtnrSvc", # Windows Hello container
"NgcSvc", # Windows Hello
"NlaSvc", # Network Location Awareness
"p2pimsvc", # Publication PNRP
"p2psvc", # Grouping PNRP
"PnrpAutoReg", # Enregistrement PNRP
"PNRPushService", # Publication PNRP
"QWAVE", # QWAVE
"RmSvc", # Radio Management
"RpcLocator", # RPC Locator
"SamSs", # SAM
"SCPolicySvc", # Smart Card
"SDRSVC", # Sauvegarde Windows
"seclogon", # Secondary logon
"SGEngine", # System Guardian
"SharedAccess", # Partage connexion
"ShellHWDetection", # Shell Hardware
"smphost", # SMP Host
"SNMPTrap", # SNMP Trap
"spectrum", # Spectrum
"SSDPSRV", # SSDP Discovery
"ssh-agent", # SSH Agent
"SstpSvc", # SSTP VPN
"StateRepository", # State Repository
"stisvc", # Image Acquisition
"StorSvc", # Storage Service
"SwPrv", # Shadow Copy
"SysMain", # Superfetch
"SystemEventsBroker", # System Events
"TapiSrv", # Telephony API
"TermService", # Terminal Services
"Themes", # Thèmes
"TimeBrokerSvc", # Time Broker
"TokenBroker", # Token Broker
"TrkWks", # Distributed Link Tracking
"TroubleshootingSvc", # Troubleshooting
"TrustedInstaller", # Trusted Installer
"tzautoupdate", # Time Zone Auto Update
"UevAgentService", # UE-V Agent
"uhssvc", # Update Health
"upnphost", # UPnP Host
"UsoSvc", # Update Orchestrator
"VacSvc", # Volume Activation
"VSS", # Volume Shadow Copy
"W32Time", # Windows Time
"WaaSMedicSvc", # Windows Update Medic
"WalletService", # Wallet
"WarpJITSvc", # WARP JIT
"wbengine", # Backup Engine
"WbioSrvc", # Biométrie
"Wcmsvc", # Windows Connection Manager
"wcncsvc", # Windows Connect Now
"WdiServiceHost", # Diagnostic Service Host
"WdiSystemHost", # Diagnostic System Host
"WebClient", # WebDAV
"Wecsvc", # Event Collector
"WEPHOSTSVC", # Wireless Hosted Network
"wercplsupport", # Problem Reports
"WerSvc", # Error Reporting
"WFDSConMgrSvc", # WFDS Connection Manager
"WiaRpc", # Still Image
"WinDefend", # Windows Defender (⚠)
"WinHttpAutoProxySvc", # WinHTTP Proxy
"Winmgmt", # Windows Management
"WLANSvc", # Wireless LAN
"wlidsvc", # Microsoft Account
"WManSvc", # Windows Manager
"wmiApSrv", # WMI Performance
"WMPNetworkSvc", # WMP Network Sharing
"workfolderssvc", # Work Folders
"WpcMonSvc", # Parental Controls
"WPDBusEnum", # Portable Device Enumerator
"WpnService", # Push Notifications
"WpnUserService", # Push Notification User
"wscsvc", # Security Center
"WSearch", # Windows Search
"wuauserv", # Windows Update (⚠)
"WwanSvc", # WWAN AutoConfig
"XblAuthManager", # Xbox Auth
"XblGameSave", # Xbox Save
"XboxNetApiSvc", # Xbox Network
"YourPhone", # Mobile devices (appels/SMS)
"PhoneService", # Phone Link
"AppVClient", # App-V Client
"AppXSvc", # AppX Service
"Appinfo", # Application Information
"BITS", # Background Intelligent Transfer
"BrokerInfrastructure", # Broker Infrastructure
"BthAvctpSvc", # Bluetooth AVCTP
"BthHFSrv", # Bluetooth HFP
"BluetoothUserService", # Bluetooth User
"bthserv", # Bluetooth Service
"CDPSvc", # Connected Devices Platform
"CertPropSvc", # Certificate Propagation
"ClipSVC", # Client License Service
"CoreMessagingRegistrar", # Core Messaging
"CryptSvc", # Cryptographic Services
"CscService", # Offline Files
"DcomLaunch", # DCOM Server Process Launcher
"DeviceAssociationService", # Device Association
"DevQueryBroker", # DevQuery Discovery
"Dhcp", # DHCP Client
"DiagTrack", # Connected User Experiences
"DialogBlockingService",# Dialog Blocking
"DispBrokerDesktopSvc", # Display Policy Manager
"Dnscache", # DNS Client
"DoSvc", # Delivery Optimization
"DPS", # Diagnostic Policy Service
"DsmSvc", # Device Setup Manager
"DusmSvc", # Data Usage
"EFS", # Encrypting File System
"EventLog", # Windows Event Log
"EventSystem", # COM+ Event System
"FDResPub", # Function Discovery
"FontCache", # Font Cache
"gpsvc", # Group Policy Client
"hidserv", # Human Interface Device
"hsvrcls", # HSVR Class
"icssvc", # Internet Connection Sharing
"IKEEXT", # IKE and AuthIP IPsec
"InstallService", # Microsoft Installer
"iphlpsvc", # IP Helper
"KeyIso", # CNG Key Isolation
"KtmRm", # KTM Transaction Manager
"LanmanServer", # Server
"LanmanWorkstation", # Workstation
"lfsvc", # Geolocation
"LicenseManager", # Windows License Manager
"LmHost", # TCP/IP NetBIOS Helper
"LSM", # Local Session Manager
"MapsBroker", # Downloaded Maps Manager
"MCsvr", # Media Center
"MpsSvc", # Windows Firewall
"MSDTC", # Distributed Transaction Coordinator
"MSiSCSI", # Microsoft iSCSI
"msiserver", # Windows Installer
"NcbService", # Network Connection Broker
"Netlogon", # Netlogon
"Netman", # Network Connections
"netprofm", # Network List
"NetTcpPortSharing", # Net.Tcp Port Sharing
"NlaSvc", # Network Location Awareness
"nsi", # Network Store Interface
"PcaSvc", # Program Compatibility Assistant
"PeerDistSvc", # BranchCache
"pla", # Performance Logs
"PlugPlay", # Plug and Play
"PolicyAgent", # IPsec Policy Agent
"Power", # Power
"ProfSvc", # User Profile
"PSA", # Protected Storage
"QWAVE", # QWAVE
"RasAuto", # Remote Access Auto Manager
"RasMan", # Remote Access Connection Manager
"RemoteAccess", # Routing and Remote Access
"RemoteRegistry", # Remote Registry
"RetailDemo", # Retail Demo Service
"RmSvc", # Radio Management
"RpcEptMapper", # RPC Endpoint Mapper
"RpcLocator", # Remote Procedure Call Locator
"RpcSs", # Remote Procedure Call
"SamSs", # Security Accounts Manager
"SCardSvr", # Smart Card
"ScDeviceEnum", # Smart Card Device Enumeration
"Schedule", # Task Scheduler
"SCPolicySvc", # Smart Card Removal Policy
"SDRSVC", # Windows Backup
"seclogon", # Secondary Logon
"SENS", # System Event Notification
"SensrSvc", # Sensor Monitoring Service
"SessionEnv", # Remote Desktop Configuration
"ShellHWDetection", # Shell Hardware Detection
"smphost", # Microsoft Storage Spaces SMP
"SNMPTrap", # SNMP Trap
"Spooler", # Print Spooler
"sppsvc", # Software Protection
"SSDPSRV", # SSDP Discovery
"ssh-agent", # OpenSSH Authentication Agent
"SstpSvc", # Secure Socket Tunneling Protocol
"StateRepository", # State Repository Service
"stisvc", # Windows Image Acquisition
"StorSvc", # Storage Service
"SwPrv", # Microsoft Software Shadow Copy Provider
"SysMain", # SysMain
"SystemEventsBroker", # System Events Broker
"TabletInputService", # Tablet PC Input Service
"TapiSrv", # Telephony
"TermService", # Remote Desktop Services
"Themes", # Themes
"TimeBrokerSvc", # Time Broker
"TokenBroker", # Web Account Manager
"TrkWks", # Distributed Link Tracking Client
"TroubleshootingSvc", # Troubleshooting Service
"TrustedInstaller", # Windows Modules Installer
"tzautoupdate", # Auto Time Zone Updater
"UevAgentService", # User Experience Virtualization
"uhssvc", # Update Health Tools Service
"upnphost", # UPnP Device Host
"UsoSvc", # Update Orchestrator Service
"VacSvc", # Volume Activation Service
"VSS", # Volume Shadow Copy Service
"W32Time", # Windows Time Service
"WaaSMedicSvc", # Windows Update Medic Service
"Wcmsvc", # Windows Connection Manager Service
"wcncsvc", # Windows Connect Now Service
"WdiServiceHost", # Diagnostic Service Host Service
"WdiSystemHost", # Diagnostic System Host Service
"WebClient", # WebClient Service
"Wecsvc", # Windows Event Collector Service
"WEPHOSTSVC", # Windows Mobile Hotspot Service
"wercplsupport", # Problem Reports Control Panel Support Service
"WerSvc", # Windows Error Reporting Service
"WFDSConMgrSvc", # Wi-Fi Direct Services Connection Manager Service
"WiaRpc", # Still Image Acquisition Events Service
"WinDefend", # Windows Defender Service
"WinHttpAutoProxySvc", # WinHTTP Web Proxy Auto-Discovery Service
"Winmgmt", # Windows Management Instrumentation Service
"WLANSvc", # WLAN AutoConfig Service
"wlidsvc", # Microsoft Account Sign-in Assistant Service
"WManSvc", # Windows Manager Service
"wmiApSrv", # WMI Performance Adapter Service
"WMPNetworkSvc", # Windows Media Player Network Sharing Service
"workfolderssvc", # Work Folders Service
"WpcMonSvc", # Parental Controls Service
"WPDBusEnum", # Portable Device Enumerator Service
"WpnService", # Windows Push Notifications System Service
"WpnUserService", # Windows Push Notifications System Service (User)
"wscsvc", # Security Center Service
"WSearch", # Windows Search Service
"wuauserv", # Windows Update Service
"WwanSvc", # WWAN AutoConfig Service
"XblAuthManager", # Xbox Live Auth Manager Service
"XblGameSave", # Xbox Live Game Save Service
"XboxNetApiSvc", # Xbox Live Networking Service
"YourPhone", # Your Phone Service
"PhoneService", # Phone Service
"AppVClient", # Application Virtualization Client Service
"AppXSvc", # AppX Deployment Service
"AppleMobileDeviceService" # Apple Mobile Device Service
)
foreach ($service in $servicesToDisable) {
if (Get-Service -Name $service -ErrorAction SilentlyContinue) {
try {
Stop-Service -Name $service -Force -ErrorAction SilentlyContinue
Set-Service -Name $service -StartupType Disabled -ErrorAction SilentlyContinue
Write-Host " ✓ $service - DÉSACTIVÉ" -ForegroundColor Green
} catch {
Write-Host " ⚠ $service - ÉCHEC" -ForegroundColor Yellow
}
} else {
Write-Host " - $service - NON TROUVÉ" -ForegroundColor Gray
}
}
# ============================================================================
# 3. OPTIMISATION REGISTRE (TÉLÉMÉTRIE & CONFIDENTIALITÉ)
# ============================================================================
Write-Host "`n=== 3. OPTIMISATION REGISTRE ===" -ForegroundColor Yellow
# Désactiver télémétrie
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowDeviceNameInTelemetry" -Value 0 -PropertyType DWORD -Force
# Désactiver Cortana
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowSearchToUseLocation" -Value 0 -PropertyType DWORD -Force
# Désactiver publicité
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableWindowsConsumerFeatures" -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent" -Name "DisableSpotlightCollectionOnDesktop" -Value 1 -PropertyType DWORD -Force
# Désactiver suggestions
New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" -Name "SystemPaneSuggestionsEnabled" -Value 0 -PropertyType DWORD -Force
# Désactiver Windows Compatibility (Windows 7)
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppCompat" -Name "AITEnable" -Value 0 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppCompat" -Name "DisableInventory" -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppCompat" -Name "DisableEngine" -Value 1 -PropertyType DWORD -Force
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppCompat" -Name "DisableSQM" -Value 1 -PropertyType DWORD -Force
Write-Host " ✓ Registre optimisé" -ForegroundColor Green
# ============================================================================
# 4. NETTOYAGE FINAL
# ============================================================================
Write-Host "`n=== 4. NETTOYAGE FINAL ===" -ForegroundColor Yellow
# Vider le cache Windows Update
Stop-Service wuauserv -Force -ErrorAction SilentlyContinue
Remove-Item -Path "C:\Windows\SoftwareDistribution\Download\*" -Recurse -Force -ErrorAction SilentlyContinue
Start-Service wuauserv -ErrorAction SilentlyContinue
# Vider le cache Prefetch
Remove-Item -Path "C:\Windows\Prefetch\*" -Recurse -Force -ErrorAction SilentlyContinue
Write-Host " ✓ Cache nettoyé" -ForegroundColor Green
# ============================================================================
# FIN
# ============================================================================
Write-Host "`n=== DEBLOAT TERMINÉ ===" -ForegroundColor Cyan
Write-Host "Redémarrage recommandé pour appliquer tous les changements." -ForegroundColor Yellow
Write-Host "Exécuter: shutdown /r /t 0" -ForegroundColor White
