winget upgrade -h --all
SYSTEM:
$ProgressPreference = "SilentlyContinue"
$Link = "https://codeload.github.com/Romanitho/Winget-AutoUpdate/zip/refs/heads/main"
$Path = "C:\Users\Public\Downloads"
$Dir = "Winget-AutoUpdate-main"
$File = "Winget-AutoUpdate-main.zip"
if (Test-Path $Path\$File) {
Remove-Item $Path\$File
}
Invoke-WebRequest -Uri $Link -OutFile $Path\$File -UseBasicParsing
Expand-Archive $Path\$File $Path -Force
PowerShell -ExecutionPolicy bypass -File $Path\$Dir\Sources\WAU\Winget-AutoUpdate-Install.ps1