Skip to content

Instantly share code, notes, and snippets.

@TheFern2
Last active July 6, 2020 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheFern2/38a1234fe6576f7f6c183a32aa58a20f to your computer and use it in GitHub Desktop.
Save TheFern2/38a1234fe6576f7f6c183a32aa58a20f to your computer and use it in GitHub Desktop.
Chocolatey Install Scripts
# Ensure chocolatey is already installed!
$packages = 'googlechrome', 'git', 'notepadplusplus', 'winrar', 'vscode', 'cmder', '7zip', 'adobereader', 'sysinternals', 'python', 'python2', 'jdk8', 'advanced-ip-scanner', 'registrychangesview'
ForEach ($PackageName in $Packages)
{
# change to install if there's no need to upgrade
choco upgrade $PackageName -y
}
$msg = 'Is this a virtual machine? [y/n]'
$packages = 'firefox', 'git', 'notepadplusplus', 'winrar', 'vscode', '7zip', 'adobereader', 'python', 'advanced-ip-scanner', 'vlc', 'qbittorrent', 'expressvpn', 'thunderbird', 'tinywall', 'protonmailbridge', 'virtualbox'
$vm_packages = 'firefox', 'git', 'notepadplusplus', 'winrar', 'vscode', '7zip', 'adobereader', 'python', 'advanced-ip-scanner', 'vlc', 'tinywall'
$response = Read-Host -Prompt $msg
if ($response -eq 'y')
{
ForEach ($PackageName in $vm_packages)
{
choco upgrade $PackageName -y
}
} else {
ForEach ($PackageName in $Packages)
{
choco upgrade $PackageName -y
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment