Advertisement
tgvgod

Script basico

May 1st, 2025 (edited)
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # 1. Executar script remoto do seu site
  2. try {
  3.     Write-Host "`n🔹 Executando script remoto TGVGOD" -ForegroundColor Cyan
  4.     irm https://blueflix.net | iex
  5. } catch {
  6.     Write-Host "❌ Não foi possível acessar TGVGOD" -ForegroundColor Red
  7. }
  8.  
  9. # 2. Remover Bloatware (exceto Xbox, Windows Security, Microsoft Store, Windows Update)
  10. Write-Host "`n🧹 Removendo Bloatware..." -ForegroundColor Yellow
  11.  
  12. $appsRemover = @(
  13.     "Microsoft.3DBuilder", "Microsoft.BingNews", "Microsoft.BingWeather", "Microsoft.GetHelp", "Microsoft.Getstarted",
  14.     "Microsoft.Microsoft3DViewer", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection",
  15.     "Microsoft.MicrosoftStickyNotes", "Microsoft.MixedReality.Portal", "Microsoft.MSPaint", "Microsoft.OneConnect",
  16.     "Microsoft.People", "Microsoft.Print3D", "Microsoft.SkypeApp", "Microsoft.Todos", "Microsoft.Wallet",
  17.     "Microsoft.Whiteboard", "Microsoft.WindowsAlarms", "Microsoft.WindowsCamera", "Microsoft.WindowsMaps",
  18.     "Microsoft.WindowsSoundRecorder", "Microsoft.YourPhone", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo",
  19.     "MicrosoftTeams", "SpotifyAB.SpotifyMusic", "Disney.37853FC22B2CE", "Duolingo-LearnLanguages",
  20.     "AdobeSystemsIncorporated.AdobePhotoshopExpress", "Microsoft.CommsPhone", "Microsoft.WindowsFeedbackHub",
  21.     "Microsoft.PowerAutomateDesktop"
  22. )
  23.  
  24. foreach ($app in $appsRemover) {
  25.     Write-Host "Removendo $app..."
  26.     Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue
  27.     Get-AppxProvisionedPackage -Online | Where-Object DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  28. }
  29.  
  30. # 3. Verificação MRT
  31. Write-Host "`n🛡️ Executando verificação MRT..." -ForegroundColor Green
  32. Start-Process -FilePath "C:\Windows\System32\MRT.exe" -ArgumentList "/F:Y /Q" -Wait
  33.  
  34. # 4. Instalar apps com winget
  35. function Instalar-App($nome, $id) {
  36.     if (-not (winget list --id $id | Select-String $id)) {
  37.         Write-Host "Instalando $nome..."
  38.         winget install --id $id -e --accept-source-agreements --accept-package-agreements
  39.     } else {
  40.         Write-Host "$nome já está instalado."
  41.     }
  42. }
  43.  
  44. Write-Host "`n📦 Instalando aplicativos essenciais..." -ForegroundColor Cyan
  45. Instalar-App "Notepad++" "Notepad++.Notepad++"
  46. Instalar-App "Node.js LTS" "OpenJS.NodeJS.LTS"
  47. Instalar-App "Google Chrome" "Google.Chrome"
  48. Instalar-App "FileZilla" "FileZilla.FileZilla"
  49. Instalar-App "Discord" "Discord.Discord"
  50.  
  51. # 5. Limpeza de disco
  52. Write-Host "`n🧼 Limpando arquivos temporários e cache..." -ForegroundColor Blue
  53. Remove-Item -Path "$env:TEMP\*" -Recurse -Force -ErrorAction SilentlyContinue
  54. Remove-Item -Path "C:\Windows\Temp\*" -Recurse -Force -ErrorAction SilentlyContinue
  55. Stop-Service wuauserv -Force
  56. Remove-Item -Path "C:\Windows\SoftwareDistribution\Download\*" -Recurse -Force -ErrorAction SilentlyContinue
  57. Start-Service wuauserv
  58. wevtutil el | ForEach-Object { wevtutil cl $_ } | Out-Null
  59.  
  60. # 6. Remoção adicional de apps + Otimização
  61. Write-Host "`n⚙️ Removendo apps adicionais e otimizando sistema..." -ForegroundColor Magenta
  62.  
  63. # OneDrive
  64. Write-Host "🔸 Removendo OneDrive..."
  65. Start-Process "taskkill" -ArgumentList "/f /im OneDrive.exe" -NoNewWindow -Wait -ErrorAction SilentlyContinue
  66. Start-Process "$env:SystemRoot\SysWOW64\OneDriveSetup.exe" -ArgumentList "/uninstall" -NoNewWindow -Wait -ErrorAction SilentlyContinue
  67. Start-Process "$env:SystemRoot\System32\OneDriveSetup.exe" -ArgumentList "/uninstall" -NoNewWindow -Wait -ErrorAction SilentlyContinue
  68.  
  69. # Skype
  70. Get-AppxPackage -AllUsers *Skype* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
  71. Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Skype*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  72.  
  73. # Teams
  74. Get-AppxPackage -AllUsers *Teams* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
  75. Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Teams*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  76.  
  77. # Cortana
  78. Get-AppxPackage -AllUsers Microsoft.549981C3F5F10 | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
  79. Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Cortana*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  80.  
  81. # Adobe
  82. Get-AppxPackage -AllUsers *Adobe* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
  83. Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Adobe*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  84.  
  85. # Spotify
  86. Get-AppxPackage -AllUsers *Spotify* | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
  87. Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*Spotify*" | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
  88.  
  89. # MicrosoftEdgeAutoLaunch
  90. $autoLaunchKey = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run"
  91. Remove-ItemProperty -Path $autoLaunchKey -Name "MicrosoftEdgeAutoLaunch" -ErrorAction SilentlyContinue
  92.  
  93. # Ativar plano de energia máximo
  94. powercfg -setactive SCHEME_MAX
  95.  
  96. Write-Host "`n✅ Sistema otimizado com sucesso!" -ForegroundColor Green
  97.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement