Powershell Script To Remove Windows 11 Bloatware [work] Here

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

# Social media bloat "Facebook", "Twitter", "Instagram", "TikTok", powershell script to remove windows 11 bloatware

# Productivity bloat (user-specific) "Microsoft.MixedReality.Portal", "Microsoft.GetHelp", "Microsoft.Getstarted", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.MicrosoftStickyNotes", "Microsoft.MSPaint", "Microsoft.Office.OneNote", "Microsoft.People", "Microsoft.SkypeApp", "Microsoft.Windows.DevHome", "Microsoft.WindowsAlarms", "Microsoft.WindowsCamera", "Microsoft.WindowsCommunicationsApps", "Microsoft.WindowsFeedbackHub", "Microsoft.WindowsMaps", "Microsoft.WindowsSoundRecorder", "Microsoft.YourPhone", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", function Write-Log param($Message

catch Write-Log "FAILED: Could not remove OneDrive - $_" -Color Red powershell script to remove windows 11 bloatware

$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