Last active
February 26, 2023 12:37
-
-
Save gstru/39bc496fe92b01bce94014e721e8a443 to your computer and use it in GitHub Desktop.
Script to automatically install programs with chocolatey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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