I looked at Chocolatey when it first came out, but didn’t have time to give it serious consideration. Then one of my colleagues showed me an example much like the one below, for restoring the applications installed on his laptop after a rebuild.  As luck would have it, one of my laptops needed a rebuild and this came in handy.  Normally, even with a script and mounting the installation media sources would take an hour or more.

iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

$coreapps = @(
'googlechrome'
'googledrive'
'googleearth'
'rdcman'
'wudt'
'7zip'
'vlc'
'notepadplusplus'
'paint.net'
'sysinternals'
'filezilla'
'keepass'
'azurepowershell'
'slack'
)
foreach ($app in $coreapps) {
 choco install $app -y
}

I saved the script on my Google Drive, or OneDrive or DropBox or whatever, and run it using powershell.exe  with the -ByPass option.  For some of  you this is boring stuff, but for those of you that find this useful, enjoy!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s