$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
catch Write-Log "FAILED: Could not disable $service" -Color Red
Write-Log "`nRemoving provisioned packages for new users..." -Color Cyan foreach ($app in $bloatwareApps) try $provisioned = Get-AppxProvisionedPackage -Online catch Write-Log "FAILED: Could not remove provisioned package $app - $ " -Color Red powershell script to remove windows 11 bloatware
catch Write-Log "FAILED: Could not remove OneDrive - $_" -Color Red
# Third-party bloat (manufacturer-specific) "Clipchamp.Clipchamp", "EclipseManager", "ActiproSoftwareLLC", "AdobeSystemsIncorporated.AdobePhotoshopExpress", "AdobeSystemsIncorporated.AdobeCreativeCloudExpress", $removeOneDrive = Read-Host "`nDo you want to remove
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
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)" (Y/N)" function Write-Log param($Message
function Write-Log param($Message, $Color = "White") $timestamp = Get-Date -Format "yyyy-MM-dd HH:mm:ss" $logMessage = "[$timestamp] $Message" Add-Content -Path $logFile -Value $logMessage Write-Host $logMessage -ForegroundColor $Color