win-scripts/update_system.ps1
CronyAkatsuki 63fa2ccb0e Update
2021-11-02 11:50:09 +01:00

36 lines
920 B
PowerShell

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 scoop packages"
Write-Host ""
scoop update *
Write-Host ""
Write-Host ""
Write-Host -ForegroundColor Green "Updating npm packages"
Write-Host ""
npm update -g
Write-Host ""
Write-Host ""
Write-Host -ForegroundColor Green "Updating python pip"
Write-Host ""
C:\users\ivica\appdata\local\programs\python\python39\python.exe -m pip install --upgrade pip
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