Files
DetectionLab/Vagrant/scripts/install-utilities.ps1
Chris Long 6c5cd3e137 Update install-utilities.ps1
Don't check checksums for GoogleChrome choco package
2021-01-20 14:23:44 -08:00

24 lines
1.2 KiB
PowerShell
Executable File

# Purpose: Installs chocolatey package manager, then installs custom utilities from Choco.
If (-not (Test-Path "C:\ProgramData\chocolatey")) {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Installing Chocolatey"
Invoke-Expression ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
} else {
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Chocolatey is already installed."
}
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Installing utilities..."
If ($(hostname) -eq "win10") {
# Because the Windows10 start menu sucks
choco install -y --limit-output --no-progress classic-shell -installArgs ADDLOCAL=ClassicStartMenu
& "C:\Program Files\Classic Shell\ClassicStartMenu.exe" "-xml" "c:\vagrant\resources\windows\MenuSettings.xml"
regedit /s c:\vagrant\resources\windows\MenuStyle_Default_Win7.reg
}
choco install -y --limit-output --no-progress NotepadPlusPlus WinRar
# The checksums for the GoogleChrome package are frequently out of date and cause the script to fail
choco install -y --limit-output --no-progress GoogleChrome
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Utilties installation complete!"