Created
February 13, 2026 19:56
-
-
Save IseduardoRezende/58dab106a59e7a3a991fb4f9b0f4f9ea to your computer and use it in GitHub Desktop.
Script to update Windows system and applications safely and easily.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Host "=== COMPLETE SYSTEM UPDATE ===" -ForegroundColor Cyan | |
| # 1. WINDOWS UPDATE (including optional) | |
| Write-Host "`n[1/4] Checking Windows Update..." -ForegroundColor Yellow | |
| if (-not (Get-Module -ListAvailable -Name PSWindowsUpdate)) { | |
| Install-Module PSWindowsUpdate -Force -Scope CurrentUser | |
| } | |
| Import-Module PSWindowsUpdate | |
| Get-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot | |
| Write-Host "Updating Winget fonts..." | |
| winget source update | |
| # 2. MICROSOFT STORE + APPS (winget) | |
| Write-Host "`n[2/4] Updating apps (winget)..." -ForegroundColor Yellow | |
| winget upgrade --all --accept-package-agreements --accept-source-agreements | |
| # 3. DRIVERS (eg. includes NVIDIA if available) | |
| Write-Host "`n[3/4] Updating supported drivers..." -ForegroundColor Yellow | |
| winget upgrade --all --source winget | |
| if ((Get-WURebootStatus).RebootRequired) { | |
| Write-Host "`n The system needs to be restarted to complete updates.." -ForegroundColor Red | |
| } else { | |
| Write-Host "`n No restart required." -ForegroundColor Green | |
| } | |
| # 4. LENOVO VANTAGE (optional for LENOVO pcs) | |
| Write-Host "`n[4/4] Opening Lenovo Vantage (manual for BIOS updates)..." -ForegroundColor Yellow | |
| Start-Process "ms-windows-store://pdp/?productid=9WZDNCRFJ4MV" | |
| Write-Host "`n=== PROCESS COMPLETED ===" -ForegroundColor Green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment