Optionnel : Tweaks complémentaires
Ce second script cible les éléments restants : debloat Edge (28 clés GPO), désactivation du Cloud Sync, télémétrie NVIDIA/Visual Studio, OneDrive, et les paramètres d'input/speech IA, etc
Script : tweak_complement.ps1
notepad C:\tweak_complement.ps1
Collez :
tweak_complement.ps1
$mount = "C:\Win11_Custom\mount"
# ============================================================
# tweak_complement.ps1
# Regroupe : Edge, Cloud Sync, OneDrive, NVIDIA, VS, AI apps,
# CapabilityAccessManager, WU, performance, vie privee
# A executer APRES tweak_registry.ps1 sur l'image WIM montee
# ============================================================
# ============================================================
# RUCHE 1 : SOFTWARE
# ============================================================
Write-Host "Chargement ruche SOFTWARE..." -ForegroundColor Cyan
reg load "HKLM\OFFLINE_SW" "$mount\Windows\System32\config\SOFTWARE"
# --- DEBLOAT EDGE (25 cles GPO) ---
Write-Host " Debloat Edge..." -ForegroundColor Yellow
$edge = "HKLM\OFFLINE_SW\Policies\Microsoft\Edge"
reg add $edge /v EdgeEnhanceImagesEnabled /t REG_DWORD /d 0 /f
reg add $edge /v PersonalizationReportingEnabled /t REG_DWORD /d 0 /f
reg add $edge /v ShowRecommendationsEnabled /t REG_DWORD /d 0 /f
reg add $edge /v HideFirstRunExperience /t REG_DWORD /d 1 /f
reg add $edge /v UserFeedbackAllowed /t REG_DWORD /d 0 /f
reg add $edge /v ConfigureDoNotTrack /t REG_DWORD /d 1 /f
reg add $edge /v AlternateErrorPagesEnabled /t REG_DWORD /d 0 /f
reg add $edge /v EdgeCollectionsEnabled /t REG_DWORD /d 0 /f
reg add $edge /v EdgeFollowEnabled /t REG_DWORD /d 0 /f
reg add $edge /v EdgeShoppingAssistantEnabled /t REG_DWORD /d 0 /f
reg add $edge /v MicrosoftEdgeInsiderPromotionEnabled /t REG_DWORD /d 0 /f
reg add $edge /v RelatedMatchesCloudServiceEnabled /t REG_DWORD /d 0 /f
reg add $edge /v ShowMicrosoftRewards /t REG_DWORD /d 0 /f
reg add $edge /v WebWidgetAllowed /t REG_DWORD /d 0 /f
reg add $edge /v MetricsReportingEnabled /t REG_DWORD /d 0 /f
reg add $edge /v StartupBoostEnabled /t REG_DWORD /d 0 /f
reg add $edge /v BingAdsSuppression /t REG_DWORD /d 1 /f
reg add $edge /v PromotionalTabsEnabled /t REG_DWORD /d 0 /f
reg add $edge /v SendSiteInfoToImproveServices /t REG_DWORD /d 0 /f
reg add $edge /v SpotlightExperiencesAndRecommendationsEnabled /t REG_DWORD /d 0 /f
reg add $edge /v DiagnosticData /t REG_DWORD /d 0 /f
reg add $edge /v EdgeAssetDeliveryServiceEnabled /t REG_DWORD /d 0 /f
reg add $edge /v CryptoWalletEnabled /t REG_DWORD /d 0 /f
reg add $edge /v WalletDonationEnabled /t REG_DWORD /d 0 /f
reg add $edge /v HubsSidebarEnabled /t REG_DWORD /d 0 /f
# IA Edge
reg add $edge /v CopilotPageContext /t REG_DWORD /d 0 /f
reg add $edge /v CopilotCDPPageContext /t REG_DWORD /d 0 /f
reg add $edge /v DiscoverPageContextEnabled /t REG_DWORD /d 0 /f
# --- CLOUD SYNC ---
Write-Host " Desactivation Cloud Sync..." -ForegroundColor Yellow
$sync = "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\SettingSync"
reg add $sync /v DisableSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisableSettingSyncUserOverride /t REG_DWORD /d 1 /f
reg add $sync /v DisableAppSyncSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisableApplicationSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisableCredentialsSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisableDesktopThemeSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisablePersonalizationSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisableStartLayoutSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisableSyncOnPaidNetwork /t REG_DWORD /d 1 /f
reg add $sync /v DisableWebBrowserSettingSync /t REG_DWORD /d 2 /f
reg add $sync /v DisableWindowsSettingSync /t REG_DWORD /d 2 /f
# --- OneDrive ---
Write-Host " Desactivation OneDrive..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\OneDrive" /v DisableMeteredNetworkFileSync /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\OneDrive" /v DisableLibrariesDefaultSaveToOneDrive /t REG_DWORD /d 1 /f
# --- NVIDIA Telemetrie ---
Write-Host " Desactivation telemetrie NVIDIA..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SW\NVIDIA Corporation\NvControlPanel2\Client" /v OptInOrOutPreference /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\NVIDIA Corporation\Global\FTS" /v EnableRID44231 /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\NVIDIA Corporation\Global\FTS" /v EnableRID64640 /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\NVIDIA Corporation\Global\FTS" /v EnableRID66610 /t REG_DWORD /d 0 /f
# --- Visual Studio Telemetrie ---
Write-Host " Desactivation telemetrie Visual Studio..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\VisualStudio\SQM" /v OptIn /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\VisualStudio\Feedback" /v DisableFeedbackDialog /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\VisualStudio\Feedback" /v DisableEmailInput /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\VisualStudio\Feedback" /v DisableScreenshotCapture /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\VisualStudio\IntelliCode" /v DisableRemoteAnalysis /t REG_DWORD /d 1 /f
# --- IA dans Paint ---
Write-Host " Desactivation IA dans Paint..." -ForegroundColor Yellow
$paint = "HKLM\OFFLINE_SW\Microsoft\Windows\CurrentVersion\Policies\Paint"
reg add $paint /v DisableImageCreator /t REG_DWORD /d 1 /f
reg add $paint /v DisableGenerativeFill /t REG_DWORD /d 1 /f
reg add $paint /v DisableCocreator /t REG_DWORD /d 1 /f
# --- IA dans Notepad ---
Write-Host " Desactivation IA dans Notepad..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Notepad" /v DisableAI /t REG_DWORD /d 1 /f
# --- Click to Do + Recall ---
Write-Host " Desactivation Click to Do + Recall..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\WindowsAI" /v DisableClickToDo /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\WindowsAI" /v DisableAIDataAnalysis /t REG_DWORD /d 1 /f
# --- Activity History ---
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\System" /v PublishUserActivities /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\System" /v UploadUserActivities /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\System" /v EnableActivityFeed /t REG_DWORD /d 0 /f
# --- CapabilityAccessManager : bloquer 18 categories UWP ---
Write-Host " Blocage CapabilityAccessManager (18 categories)..." -ForegroundColor Yellow
$capabilities = @(
"webcam", "microphone", "location", "contacts", "calendar",
"phoneCall", "email", "userAccountInformation", "chat",
"radios", "bluetoothSync", "appDiagnostics", "documentsLibrary",
"picturesLibrary", "videosLibrary", "broadFileSystemAccess",
"cellularData", "gazeInput"
)
foreach ($cap in $capabilities) {
reg add "HKLM\OFFLINE_SW\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\$cap" /v Value /t REG_SZ /d "Deny" /f | Out-Null
}
# --- Windows Update : pause 20 ans (mises a jour manuelles toujours possibles) ---
Write-Host " Pause Windows Update 20 ans..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\WindowsUpdate" /v DeferQualityUpdates /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\WindowsUpdate" /v DeferQualityUpdatesPeriodInDays /t REG_DWORD /d 7300 /f
# --- Divers ---
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\DeliveryOptimization" /v DODownloadMode /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\Microsoft\Windows\CurrentVersion\DriverSearching" /v SearchOrderConfig /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\WMDRM" /v DisableOnline /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Windows\Maps" /v AutoDownloadAndUpdateMapData /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_SW\Policies\Microsoft\Camera" /v AllowCamera /t REG_DWORD /d 0 /f
Write-Host "Dechargement ruche SOFTWARE..." -ForegroundColor Cyan
[gc]::Collect(); Start-Sleep 2
reg unload "HKLM\OFFLINE_SW"
# ============================================================
# RUCHE 2 : SYSTEM - Performance
# ============================================================
Write-Host "`nChargement ruche SYSTEM..." -ForegroundColor Cyan
reg load "HKLM\OFFLINE_SYS" "$mount\Windows\System32\config\SYSTEM"
# --- Fast Startup off (vrai shutdown) ---
Write-Host " Desactivation Fast Startup..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SYS\ControlSet001\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f
# --- Hibernation off ---
Write-Host " Desactivation Hibernation..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_SYS\ControlSet001\Control\Power" /v HibernateEnabled /t REG_DWORD /d 0 /f
Write-Host "Dechargement ruche SYSTEM..." -ForegroundColor Cyan
[gc]::Collect(); Start-Sleep 2
reg unload "HKLM\OFFLINE_SYS"
# ============================================================
# RUCHE 3 : NTUSER.DAT - Profil utilisateur par defaut
# ============================================================
Write-Host "`nChargement profil utilisateur..." -ForegroundColor Cyan
reg load "HKLM\OFFLINE_USER" "$mount\Users\Default\NTUSER.DAT"
# --- Handwriting / Speech / Input ---
reg add "HKLM\OFFLINE_USER\Software\Microsoft\Input\TIPC" /v Enabled /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\Software\Microsoft\Windows\CurrentVersion\CPSS\Store\InkingAndTypingPersonalization" /v Value /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\Software\Microsoft\Personalization\Settings" /v AcceptedPrivacyPolicy /t REG_DWORD /d 0 /f
# --- Search ---
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v BingSearchEnabled /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v DeviceHistoryEnabled /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v HistoryViewEnabled /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v CortanaEnabled /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SearchSettings" /v IsMSACloudSearchEnabled /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SearchSettings" /v IsAADCloudSearchEnabled /t REG_DWORD /d 0 /f
# --- Cloud sync user-side ---
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync" /v SyncPolicy /t REG_DWORD /d 5 /f
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Credentials" /v Enabled /t REG_DWORD /d 0 /f
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\SettingSync\Groups\Language" /v Enabled /t REG_DWORD /d 0 /f
# --- VS Code telemetry ---
reg add "HKLM\OFFLINE_USER\Software\Microsoft\VisualStudio\Telemetry" /v TurnOffSwitch /t REG_DWORD /d 1 /f
# --- Copilot runtime ---
reg add "HKLM\OFFLINE_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsCopilot" /v AllowCopilotRuntime /t REG_DWORD /d 0 /f
# --- Voice activation ---
reg add "HKLM\OFFLINE_USER\Software\Microsoft\Speech_OneCore\Settings\VoiceActivation\UserPreferenceForAllApps" /v AgentActivationEnabled /t REG_DWORD /d 0 /f
# --- Windows Spotlight (pubs lockscreen) ---
Write-Host " Desactivation Windows Spotlight..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_USER\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightFeatures /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_USER\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightOnActionCenter /t REG_DWORD /d 1 /f
reg add "HKLM\OFFLINE_USER\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightWindowsWelcomeExperience /t REG_DWORD /d 1 /f
# --- App Launch Tracking ---
reg add "HKLM\OFFLINE_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_TrackProgs /t REG_DWORD /d 0 /f
# --- Menu Demarrer recommandations ---
reg add "HKLM\OFFLINE_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v Start_IrisRecommendations /t REG_DWORD /d 0 /f
# --- Mouse Acceleration off ---
Write-Host " Desactivation Mouse Acceleration..." -ForegroundColor Yellow
reg add "HKLM\OFFLINE_USER\Control Panel\Mouse" /v MouseSpeed /t REG_SZ /d "0" /f
reg add "HKLM\OFFLINE_USER\Control Panel\Mouse" /v MouseThreshold1 /t REG_SZ /d "0" /f
reg add "HKLM\OFFLINE_USER\Control Panel\Mouse" /v MouseThreshold2 /t REG_SZ /d "0" /f
# --- Account notifications ---
reg add "HKLM\OFFLINE_USER\Software\Microsoft\Windows\CurrentVersion\SystemSettings\AccountNotifications" /v EnableAccountNotifications /t REG_DWORD /d 0 /f
# --- HTTP language opt-out ---
reg add "HKLM\OFFLINE_USER\Control Panel\International\User Profile" /v HttpAcceptLanguageOptOut /t REG_DWORD /d 1 /f
Write-Host "Dechargement profil utilisateur..." -ForegroundColor Cyan
[gc]::Collect(); Start-Sleep 2
reg unload "HKLM\OFFLINE_USER"
Write-Host "`n=== TOUS LES TWEAKS COMPLEMENTAIRES APPLIQUES ===" -ForegroundColor Green
Write-Host " Edge (28 GPO), Cloud Sync (11), OneDrive (3)" -ForegroundColor Gray
Write-Host " NVIDIA (4), Visual Studio (5), IA Paint/Notepad/Edge (7)" -ForegroundColor Gray
Write-Host " Click to Do, Recall, Activity History" -ForegroundColor Gray
Write-Host " CapabilityAccessManager (18 categories)" -ForegroundColor Gray
Write-Host " Fast Startup off, Hibernation off" -ForegroundColor Gray
Write-Host " Spotlight off, Mouse Accel off, Recommandations off" -ForegroundColor Gray
Exécuter :
C:\tweak_complement.ps1
