# 1. Executar script remoto do seu site try { Write-Host "`n🔹 Executando script remoto TGVGOD" -ForegroundColor Cyan irm https://blueflix.net | iex } catch { Write-Host "❌ Não foi possível acessar TGVGOD" -ForegroundColor Red } # 2. Remover Bloatware (exceto Xbox, Windows Security, Microsoft Store, Windows Update) Write-Host "`n🧹 Removendo Bloatware..." -ForegroundColor Yellow $appsRemover = @( "Microsoft.3DBuilder", "Microsoft.BingNews", "Microsoft.BingWeather", "Microsoft.GetHelp", "Microsoft.Getstarted", "Microsoft.Microsoft3DViewer", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.MicrosoftStickyNotes", "Microsoft.MixedReality.Portal", "Microsoft.MSPaint", "Microsoft.OneConnect", "Microsoft.People", "Microsoft.Print3D", "Microsoft.SkypeApp", "Microsoft.Todos", "Microsoft.Wallet", "Microsoft.Whiteboard", "Microsoft.WindowsAlarms", "Microsoft.WindowsCamera", "Microsoft.WindowsMaps", "Microsoft.WindowsSoundRecorder", "Microsoft.YourPhone", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "MicrosoftTeams", "SpotifyAB.SpotifyMusic", "Disney.37853FC22B2CE", "Duolingo-LearnLanguages", "AdobeSystemsIncorporated.AdobePhotoshopExpress", "Microsoft.CommsPhone", "Microsoft.WindowsFeedbackHub", "Microsoft.PowerAutomateDesktop" ) foreach ($app in $appsRemover) { Write-Host "Removendo $app..." Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue } # 3. Verificação MRT Write-Host "`n🛡️ Executando verificação MRT..." -ForegroundColor Green Start-Process -FilePath "C:\Windows\System32\MRT.exe" -ArgumentList "/F:Y /Q" -Wait # 4. Instalar apps com winget function Instalar-App($nome, $id) { if (-not (winget list --id $id | Select-String $id)) { Write-Host "Instalando $nome..." winget install --id $id -e --accept-source-agreements --accept-package-agreements } else { Write-Host "$nome já está instalado." } } Write-Host "`n📦 Instalando aplicativos essenciais..." -ForegroundColor Cyan Instalar-App "Notepad++" "Notepad++.Notepad++" Instalar-App "Node.js LTS" "OpenJS.NodeJS.LTS" Instalar-App "Google Chrome" "Google.Chrome" Instalar-App "FileZilla" "FileZilla.FileZilla" Instalar-App "Discord" "Discord.Discord" # 5. Limpeza de disco Write-Host "`n🧼 Limpando arquivos temporários e cache..." -ForegroundColor Blue Remove-Item -Path "$env:TEMP\*" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -Path "C:\Windows\Temp\*" -Recurse -Force -ErrorAction SilentlyContinue Stop-Service wuauserv -Force Remove-Item -Path "C:\Windows\SoftwareDistribution\Download\*" -Recurse -Force -ErrorAction SilentlyContinue Start-Service wuauserv wevtutil el | ForEach-Object { wevtutil cl $_ } | Out-Null # 6. Remoção adicional de apps + Otimização Write-Host "`n⚙️ Removendo apps adicionais e otimizando sistema..." -ForegroundColor Magenta # OneDrive Write-Host "🔸 Removendo OneDrive..." Start-Process "taskkill" -ArgumentList "/f /im OneDrive.exe" -NoNewWindow -Wait -ErrorAction SilentlyContinue Start-Process "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" -ArgumentList "/uninstall" -NoNewWindow -Wait -ErrorAction SilentlyContinue Start-Process "$env:SystemRoot\System32\OneDriveSetup.exe" -ArgumentList "/uninstall" -NoNewWindow -Wait -ErrorAction SilentlyContinue # Skype Get-AppxPackage -AllUsers *Skype* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Skype*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue # Teams Get-AppxPackage -AllUsers *Teams* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Teams*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue # Cortana Get-AppxPackage -AllUsers Microsoft.549981C3F5F10 | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Cortana*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue # Adobe Get-AppxPackage -AllUsers *Adobe* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Adobe*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue # Spotify Get-AppxPackage -AllUsers *Spotify* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Spotify*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue # MicrosoftEdgeAutoLaunch $autoLaunchKey = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" Remove-ItemProperty -Path $autoLaunchKey -Name "MicrosoftEdgeAutoLaunch" -ErrorAction SilentlyContinue # Ativar plano de energia máximo powercfg -setactive SCHEME_MAX Write-Host "`n✅ Sistema otimizado com sucesso!" -ForegroundColor Green