Powershell Script To Remove Windows 11 Bloatware Official

Write-Log "`n========== REMOVAL SUMMARY ==========" -Color Cyan Write-Log "Total apps targeted: $($bloatwareApps.Count)" -Color White Write-Log "Successfully removed: $($removed.Count)" -Color Green Write-Log "Failed to remove: $($failed.Count)" -Color Red

$removeOneDrive = Read-Host "`nDo you want to remove OneDrive? (Y/N)" if ($removeOneDrive -eq 'Y' -or $removeOneDrive -eq 'y') Write-Log "Removing OneDrive..." -Color Cyan try Stop-Process -Name OneDrive -Force -ErrorAction SilentlyContinue Start-Sleep -Seconds 2 $onedriveSetup = "$env:SYSTEMROOT\SysWOW64\OneDriveSetup.exe" if (Test-Path $onedriveSetup) & $onedriveSetup /uninstall Write-Log "SUCCESS: OneDrive removed" -Color Green powershell script to remove windows 11 bloatware

# Telemetry and unwanted services "Microsoft.Wallet", "Microsoft.BingNews", "Microsoft.BingWeather", "Microsoft.BingSports", "Microsoft.BingFinance", "Microsoft.Microsoft3DViewer", "Microsoft.MicrosoftPowerBIForWindows", "Microsoft.MicrosoftTranslator" ) (Y/N)"

foreach ($service in $telemetryServices) try Stop-Service $service -Force -ErrorAction SilentlyContinue Set-Service $service -StartupType Disabled -ErrorAction SilentlyContinue Write-Log "SUCCESS: Disabled $service" -Color Green powershell script to remove windows 11 bloatware

catch Write-Log "FAILED: Could not remove $app - $_" -Color Red $failed += $app

Write-Log "`nRemoving provisioned packages for new users..." -Color Cyan foreach ($app in $bloatwareApps) try Where-Object $ .DisplayName -eq $app if ($provisioned) Remove-AppxProvisionedPackage -Online -PackageName $provisioned.PackageName -ErrorAction Stop Write-Log "SUCCESS: Removed provisioned package $app" -Color Green

Write-Log "Starting Windows 11 Bloatware Removal Script" -Color Cyan Write-Host " nWARNING: This will remove bloatware applications from your system." -ForegroundColor Yellow Write-Host "A system restore point is recommended before proceeding. n" -ForegroundColor Yellow $confirmation = Read-Host "Do you want to continue? (Y/N)"