Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe # Disable UAC Prompt (Warning: Reduces Security) # and run win10 debloater Start-Process powershell -Verb runAs -ArgumentList @( '-NoProfile', '-Command', 'try { Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" ` -Name "ConsentPromptBehaviorAdmin" -Value 0 -ErrorAction Stop; Write-Host "UAC prompt behavior disabled." -ForegroundColor Yellow irm "https://raw.githubusercontent.com/Sycnex/Windows10Debloater/refs/heads/master/Windows10Debloater.ps1" | iex } catch { Write-Warning "Failed to disable UAC prompt. Error: $_" }' ) # Ensure Winget is Installed try { winget --version > $null Write-Host "Winget found. Proceeding to install dependencies..." -ForegroundColor Cyan } catch { Write-Host "Winget not found. Downloading and installing..." -ForegroundColor Yellow $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest -Uri "https://aka.ms/getwinget" -OutFile "winget.msixbundle" Invoke-WebRequest -Uri "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" -OutFile "VCLibs.appx" Invoke-WebRequest -Uri "https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx" -OutFile "UI.Xaml.appx" Add-AppxPackage "VCLibs.appx" Add-AppxPackage "UI.Xaml.appx" Add-AppxPackage "winget.msixbundle" Write-Host "Winget installation complete." -ForegroundColor Green } # Define packages $packages = @( "Valve.Steam", "VideoLAN.VLC", "Mozilla.Firefox", "Spotify.Spotify", "Oracle.JavaRuntimeEnvironment", "Oracle.JDK.19", "Git.Git", "RARLab.WinRAR", "Microsoft.DotNet.SDK.8", "Microsoft.DotNet.Runtime.7", "Discord.Discord", "Microsoft.VisualStudioCode", "qBittorrent.qBittorrent", "Neovim.Neovim" ) # Install packages foreach ($id in $packages) { Write-Host "Installing $id..." -ForegroundColor Cyan winget install --id $id --accept-package-agreements --accept-source-agreements --silent -e } Clear-Host Write-Host "Finished installing packages." -ForegroundColor Green try { irm https://get.activated.win | iex } catch { Write-Warning "Failed to run the activation script. Error: $_" } Pause