mayankjoin3

win10 debloat part 1.ps1

Nov 10th, 2025 (edited)
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2. .SYNOPSIS
  3.   powershell.exe -NoProfile -ExecutionPolicy Bypass -File "D:\Dropbox_T\Oct\Binich Dropbox\Mayank Agarwal\win10-full-remove-bloatware-telemetry.ps1"
  4.  
  5.   Windows 10 Privacy Debloat Script
  6.   Removes bloatware, telemetry, Cortana, and disables online services.
  7.   Keeps system-critical apps and Office integration.
  8.   Run this script as Administrator.
  9. #>
  10.  
  11. # --- Ensure admin privileges ---
  12. If (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
  13.     Write-Host "Please run this script as Administrator!" -ForegroundColor Red
  14.     Exit
  15. }
  16.  
  17. Write-Host "Starting Windows 10 Privacy Debloat..." -ForegroundColor Cyan
  18.  
  19. # ======================================================================
  20. # 🧹 REMOVE OPTIONAL + PURE BLOATWARE (excluding Office integration)
  21. # ======================================================================
  22.  
  23. $bloatApps = @(
  24.     # Optional
  25.     "Microsoft.YourPhone",
  26.     "Microsoft.OutlookForWindows",
  27.     "Microsoft.Todos",
  28.     "Microsoft.MixedReality.Portal",
  29.     "Microsoft.Windows.DevHome",
  30.     "Microsoft.Copilot",
  31.     "Microsoft.BingSearch",
  32.     "Microsoft.WindowsSoundRecorder",
  33.     "aimgr",
  34.     "Microsoft.3DBuilder",
  35.     "Microsoft.BingNews",
  36.     "Microsoft.BingWeather",
  37.     "Microsoft.GetHelp",
  38.     "Microsoft.Getstarted",
  39.     "Microsoft.Microsoft3DViewer",
  40.     "Microsoft.MicrosoftOfficeHub",
  41.     "Microsoft.MicrosoftSolitaireCollection",
  42.     "Microsoft.MicrosoftStickyNotes",
  43.     "Microsoft.MinecraftUWP",
  44.     "Microsoft.MSPaint",
  45.     "Microsoft.Office.OneNote",
  46.     "Microsoft.OneConnect",
  47.     "Microsoft.People",
  48.     "Microsoft.Print3D",
  49.     "Microsoft.SkypeApp",
  50.     "Microsoft.Wallet",
  51.     "Microsoft.Whiteboard",
  52.     "Microsoft.WindowsAlarms",
  53.     "Microsoft.WindowsCamera",
  54.     "Microsoft.WindowsFeedbackHub",
  55.     "Microsoft.WindowsMaps",
  56.     "Microsoft.Xbox.TCUI",
  57.     "Microsoft.XboxApp",
  58.     "Microsoft.XboxGameOverlay",
  59.     "Microsoft.XboxGamingOverlay",
  60.     "Microsoft.XboxIdentityProvider",
  61.     "Microsoft.XboxSpeechToTextOverlay",
  62.     "Microsoft.ZuneMusic",
  63.     "Microsoft.ZuneVideo",
  64.  
  65.     # Telemetry / Bloat
  66.     "Microsoft.Advertising.Xaml",
  67.     "Microsoft.Services.Store.Engagement",
  68.     "Microsoft.PeopleExperienceHost",
  69.     "Microsoft.Windows.ParentalControls",
  70.     "Microsoft.ECApp",
  71.     "Microsoft.Windows.Apprep.ChxApp",
  72.     "Microsoft.Windows.AssignedAccessLockApp",
  73.     "Microsoft.Windows.SecureAssessmentBrowser",
  74.     "Microsoft.Windows.CallingShellApp",
  75.     "Microsoft.Windows.XGpuEjectDialog",
  76.     "Microsoft.Windows.NarratorQuickStart",
  77.     "Microsoft.Windows.OOBENetworkCaptivePortal",
  78.     "Microsoft.Windows.OOBENetworkConnectionFlow",
  79.     "Microsoft.Windows.PinningConfirmationDialog"
  80. )
  81.  
  82. foreach ($app in $bloatApps) {
  83.     Write-Host "Removing $app..." -ForegroundColor Yellow
  84.     Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue
  85.     Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  86. }
  87.  
  88. # ======================================================================
  89. # πŸ€– DISABLE / REMOVE CORTANA
  90. # ======================================================================
  91. Write-Host "`nDisabling Cortana..." -ForegroundColor Cyan
  92. Get-AppxPackage -AllUsers | Where-Object {$_.Name -like "Microsoft.549981C3F5F10"} | Remove-AppxPackage -ErrorAction SilentlyContinue
  93. Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "Microsoft.549981C3F5F10"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  94.  
  95. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f | Out-Null
  96. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v BingSearchEnabled /t REG_DWORD /d 0 /f | Out-Null
  97. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v CortanaConsent /t REG_DWORD /d 0 /f | Out-Null
  98.  
  99. # ======================================================================
  100. # πŸ“Š DISABLE TELEMETRY & DATA COLLECTION
  101. # ======================================================================
  102. Write-Host "`nDisabling telemetry and diagnostics..." -ForegroundColor Cyan
  103. Stop-Service "DiagTrack" -ErrorAction SilentlyContinue
  104. Set-Service "DiagTrack" -StartupType Disabled -ErrorAction SilentlyContinue
  105. Stop-Service "dmwappushservice" -ErrorAction SilentlyContinue
  106. Set-Service "dmwappushservice" -StartupType Disabled -ErrorAction SilentlyContinue
  107.  
  108. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f | Out-Null
  109. reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f | Out-Null
  110. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d 1 /f | Out-Null
  111.  
  112. # ======================================================================
  113. # πŸ—£οΈ DISABLE ONLINE SPEECH & INPUT PERSONALIZATION
  114. # ======================================================================
  115. Write-Host "`nDisabling online speech and input personalization..." -ForegroundColor Cyan
  116. reg add "HKCU\Software\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy" /v HasAccepted /t REG_DWORD /d 0 /f | Out-Null
  117. reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v AllowInputPersonalization /t REG_DWORD /d 0 /f | Out-Null
  118. reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v RestrictImplicitTextCollection /t REG_DWORD /d 1 /f | Out-Null
  119. reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v RestrictImplicitInkCollection /t REG_DWORD /d 1 /f | Out-Null
  120.  
  121. # ======================================================================
  122. # πŸ“‹ DISABLE CLOUD CLIPBOARD & SYNC
  123. # ======================================================================
  124. Write-Host "`nDisabling clipboard sync and account sync..." -ForegroundColor Cyan
  125. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowClipboardHistory /t REG_DWORD /d 0 /f | Out-Null
  126. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowCrossDeviceClipboard /t REG_DWORD /d 0 /f | Out-Null
  127. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSync /t REG_DWORD /d 2 /f | Out-Null
  128. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSyncUserOverride /t REG_DWORD /d 1 /f | Out-Null
  129.  
  130. # ======================================================================
  131. # 🚫 DISABLE ADS, SUGGESTIONS, & FEEDBACK
  132. # ======================================================================
  133. Write-Host "`nDisabling ads and suggestions..." -ForegroundColor Cyan
  134. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f | Out-Null
  135. reg add "HKCU\Software\Microsoft\Siuf\Rules" /v NumberOfSIUFInPeriod /t REG_DWORD /d 0 /f | Out-Null
  136. reg add "HKCU\Software\Microsoft\Siuf\Rules" /v PeriodInNanoSeconds /t REG_DWORD /d 0 /f | Out-Null
  137. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableConsumerFeatures /t REG_DWORD /d 1 /f | Out-Null
  138. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338388Enabled /t REG_DWORD /d 0 /f | Out-Null
  139. reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f | Out-Null
  140.  
  141. # ======================================================================
  142. # πŸ“ DISABLE LOCATION & WI-FI SENSE
  143. # ======================================================================
  144. Write-Host "`nDisabling location tracking and Wi-Fi Sense..." -ForegroundColor Cyan
  145. reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v DisableLocation /t REG_DWORD /d 1 /f | Out-Null
  146. reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f | Out-Null
  147. reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v value /t REG_DWORD /d 0 /f | Out-Null
  148.  
  149. # ======================================================================
  150. # βœ… DONE
  151. # ======================================================================
  152. Write-Host "`nβœ… Windows 10 Privacy Debloat complete!" -ForegroundColor Green
  153. Write-Host "Please reboot to apply all changes." -ForegroundColor Cyan
  154.  
  155.  
Advertisement
Add Comment
Please, Sign In to add comment