win-scripts/update_system.ps1
2021-08-22 19:14:18 +02:00

22 lines
597 B
PowerShell

Write-Host ""
Write-Host -ForegroundColor Green "Updating scoop packages"
Write-Host ""
scoop update *
Write-Host ""
Write-Host ""
Write-Host -ForegroundColor Green "Updating chocolatey packages"
Write-Host ""
sudo choco upgrade all -y
Write-Host ""
Write-Host ""
Write-Host -ForegroundColor Green "Updating python packages"
Write-Host ""
pip freeze | ForEach-Object{$_.split('==')[0]} | ForEach-Object{pip install --upgrade $_}
Write-Host ""
Write-Host ""
write-host -ForegroundColor Green "Check for windows updates"
Write-Host ""
C:\Windows\System32\control.exe /name Microsoft.WindowsUpdate