Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- .SYNOPSIS
- powershell.exe -NoProfile -ExecutionPolicy Bypass -File "D:\Dropbox_T\Oct\Binich Dropbox\Mayank Agarwal\win10-full-remove-bloatware-telemetry.ps1"
- Windows 10 Privacy Debloat Script
- Removes bloatware, telemetry, Cortana, and disables online services.
- Keeps system-critical apps and Office integration.
- Run this script as Administrator.
- #>
- # --- Ensure admin privileges ---
- If (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
- Write-Host "Please run this script as Administrator!" -ForegroundColor Red
- Exit
- }
- Write-Host "Starting Windows 10 Privacy Debloat..." -ForegroundColor Cyan
- # ======================================================================
- # π§Ή REMOVE OPTIONAL + PURE BLOATWARE (excluding Office integration)
- # ======================================================================
- $bloatApps = @(
- # Optional
- "Microsoft.YourPhone",
- "Microsoft.OutlookForWindows",
- "Microsoft.Todos",
- "Microsoft.MixedReality.Portal",
- "Microsoft.Windows.DevHome",
- "Microsoft.Copilot",
- "Microsoft.BingSearch",
- "Microsoft.WindowsSoundRecorder",
- "aimgr",
- "Microsoft.3DBuilder",
- "Microsoft.BingNews",
- "Microsoft.BingWeather",
- "Microsoft.GetHelp",
- "Microsoft.Getstarted",
- "Microsoft.Microsoft3DViewer",
- "Microsoft.MicrosoftOfficeHub",
- "Microsoft.MicrosoftSolitaireCollection",
- "Microsoft.MicrosoftStickyNotes",
- "Microsoft.MinecraftUWP",
- "Microsoft.MSPaint",
- "Microsoft.Office.OneNote",
- "Microsoft.OneConnect",
- "Microsoft.People",
- "Microsoft.Print3D",
- "Microsoft.SkypeApp",
- "Microsoft.Wallet",
- "Microsoft.Whiteboard",
- "Microsoft.WindowsAlarms",
- "Microsoft.WindowsCamera",
- "Microsoft.WindowsFeedbackHub",
- "Microsoft.WindowsMaps",
- "Microsoft.Xbox.TCUI",
- "Microsoft.XboxApp",
- "Microsoft.XboxGameOverlay",
- "Microsoft.XboxGamingOverlay",
- "Microsoft.XboxIdentityProvider",
- "Microsoft.XboxSpeechToTextOverlay",
- "Microsoft.ZuneMusic",
- "Microsoft.ZuneVideo",
- # Telemetry / Bloat
- "Microsoft.Advertising.Xaml",
- "Microsoft.Services.Store.Engagement",
- "Microsoft.PeopleExperienceHost",
- "Microsoft.Windows.ParentalControls",
- "Microsoft.ECApp",
- "Microsoft.Windows.Apprep.ChxApp",
- "Microsoft.Windows.AssignedAccessLockApp",
- "Microsoft.Windows.SecureAssessmentBrowser",
- "Microsoft.Windows.CallingShellApp",
- "Microsoft.Windows.XGpuEjectDialog",
- "Microsoft.Windows.NarratorQuickStart",
- "Microsoft.Windows.OOBENetworkCaptivePortal",
- "Microsoft.Windows.OOBENetworkConnectionFlow",
- "Microsoft.Windows.PinningConfirmationDialog"
- )
- foreach ($app in $bloatApps) {
- Write-Host "Removing $app..." -ForegroundColor Yellow
- Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue
- Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq $app} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
- }
- # ======================================================================
- # π€ DISABLE / REMOVE CORTANA
- # ======================================================================
- Write-Host "`nDisabling Cortana..." -ForegroundColor Cyan
- Get-AppxPackage -AllUsers | Where-Object {$_.Name -like "Microsoft.549981C3F5F10"} | Remove-AppxPackage -ErrorAction SilentlyContinue
- Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "Microsoft.549981C3F5F10"} | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v BingSearchEnabled /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v CortanaConsent /t REG_DWORD /d 0 /f | Out-Null
- # ======================================================================
- # π DISABLE TELEMETRY & DATA COLLECTION
- # ======================================================================
- Write-Host "`nDisabling telemetry and diagnostics..." -ForegroundColor Cyan
- Stop-Service "DiagTrack" -ErrorAction SilentlyContinue
- Set-Service "DiagTrack" -StartupType Disabled -ErrorAction SilentlyContinue
- Stop-Service "dmwappushservice" -ErrorAction SilentlyContinue
- Set-Service "dmwappushservice" -StartupType Disabled -ErrorAction SilentlyContinue
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" /v AllowTelemetry /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d 1 /f | Out-Null
- # ======================================================================
- # π£οΈ DISABLE ONLINE SPEECH & INPUT PERSONALIZATION
- # ======================================================================
- Write-Host "`nDisabling online speech and input personalization..." -ForegroundColor Cyan
- reg add "HKCU\Software\Microsoft\Speech_OneCore\Settings\OnlineSpeechPrivacy" /v HasAccepted /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v AllowInputPersonalization /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v RestrictImplicitTextCollection /t REG_DWORD /d 1 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\InputPersonalization" /v RestrictImplicitInkCollection /t REG_DWORD /d 1 /f | Out-Null
- # ======================================================================
- # π DISABLE CLOUD CLIPBOARD & SYNC
- # ======================================================================
- Write-Host "`nDisabling clipboard sync and account sync..." -ForegroundColor Cyan
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowClipboardHistory /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v AllowCrossDeviceClipboard /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSync /t REG_DWORD /d 2 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSyncUserOverride /t REG_DWORD /d 1 /f | Out-Null
- # ======================================================================
- # π« DISABLE ADS, SUGGESTIONS, & FEEDBACK
- # ======================================================================
- Write-Host "`nDisabling ads and suggestions..." -ForegroundColor Cyan
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo" /v Enabled /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKCU\Software\Microsoft\Siuf\Rules" /v NumberOfSIUFInPeriod /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKCU\Software\Microsoft\Siuf\Rules" /v PeriodInNanoSeconds /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v DisableConsumerFeatures /t REG_DWORD /d 1 /f | Out-Null
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SubscribedContent-338388Enabled /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SystemPaneSuggestionsEnabled /t REG_DWORD /d 0 /f | Out-Null
- # ======================================================================
- # π DISABLE LOCATION & WI-FI SENSE
- # ======================================================================
- Write-Host "`nDisabling location tracking and Wi-Fi Sense..." -ForegroundColor Cyan
- reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors" /v DisableLocation /t REG_DWORD /d 1 /f | Out-Null
- reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting" /v value /t REG_DWORD /d 0 /f | Out-Null
- reg add "HKLM\SOFTWARE\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots" /v value /t REG_DWORD /d 0 /f | Out-Null
- # ======================================================================
- # β DONE
- # ======================================================================
- Write-Host "`nβ Windows 10 Privacy Debloat complete!" -ForegroundColor Green
- Write-Host "Please reboot to apply all changes." -ForegroundColor Cyan
Advertisement
Add Comment
Please, Sign In to add comment