Skip to content

Instantly share code, notes, and snippets.

@gstru
Last active February 26, 2023 12:37
Show Gist options
  • Save gstru/39bc496fe92b01bce94014e721e8a443 to your computer and use it in GitHub Desktop.
Save gstru/39bc496fe92b01bce94014e721e8a443 to your computer and use it in GitHub Desktop.
Script to automatically install programs with chocolatey
# Check if Chocolatey is installed, if not, install it
if (!(Get-Command choco -ErrorAction SilentlyContinue)) {
Set-ExecutionPolicy Bypass -Scope Process -Force;
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
# Install the required packages
$packages = @("googlechrome", "vlc", "7zip", "vcredist140", "adobereader", "everything", "choco-cleaner")
foreach ($package in $packages) {
choco install $package -y
}
# Run the Chocolatey Cleanup
choco-cleaner
# End
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment