-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathwindows_update.ps1
27 lines (24 loc) · 957 Bytes
/
windows_update.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Update Windows with Scoop and Chocolatey.
#
# Tip: create a shortcut on your desktop to run this file.
# 1. Right click on Desktop
# 2. New > Shortcut
# 3. Enter path:
# powershell -noexit "& ""C:\Users\erikw\.dotfiles\bin\windows_update.ps1"""
# 4. Enter name: windows_update.ps1
# 5. Right click on it at "Run as Administrator" to run update.
# Reference: https://stackoverflow.com/questions/10137146/is-there-any-way-to-make-powershell-script-work-by-double-clicking-ps1-file
Write-Output "> Outdated chocolately apps."
choco outdated
Write-Output "> Outdated chocolately apps. - DONE"
Write-Output "> Upgrading chocolately apps."
choco upgrade all
Write-Output "> Upgrading chocolately apps. - DONE"
#write-Output "`n`n`n`n"
#write-Output "> Updating scoop."
#scoop update
#write-Output "> Updating scoop. - DONE"
#write-Output "`n`n`n`n"
#write-Output "> Updating scoop programs."
#scoop update *
#write-Output "> Updating scoop programs. - DONE"