Dateien hochladen nach „“

master
drbroiler 2021-05-03 21:13:44 +02:00
parent d7b16c72a6
commit 98e6488534
1 changed files with 28 additions and 0 deletions

28
installchocowithtools.ps1 Normal file
View File

@ -0,0 +1,28 @@
Write-Host -ForegroundColor Green "Installartion von Chocolatey"
Start-Sleep -Seconds 1
if (Test-Path C:\ProgramData\chocolatey\choco.exe) {
Write-Host -ForegroundColor Yellow "Chocolatey ist installiert"
}
else {
Write-Host -ForegroundColor Yellow "Chocolatey wird installiert, Bitte warten"
#Ausgabe muss noch Unterdrueckt werden.
Set-ExecutionPolicy Bypass -Scope Process -Force; `
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
if (Test-Path C:\ProgramData\chocolatey\choco.exe) {
Write-Host -ForegroundColor Green "Chocolatey wurde erfolgreich installiert"
}
else {
Write-Host -ForegroundColor Red "Chocolatey konnte nicht installiert werden."
}
}
Write-Host -ForegroundColor Green "Es werden folgende Paktet installiert"
$Pakete = 'firefox', 'googlechrome', 'vlc', '7zip' , 'thunderbird' , 'adobereader' , 'libreoffice'
ForEach ($Paketname in $Pakete)
{
choco install $Paketname -y
}