From 98e6488534b8e6f10cfd33a793d82d15f576557e Mon Sep 17 00:00:00 2001 From: drbroiler Date: Mon, 3 May 2021 21:13:44 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9E=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installchocowithtools.ps1 | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 installchocowithtools.ps1 diff --git a/installchocowithtools.ps1 b/installchocowithtools.ps1 new file mode 100644 index 0000000..f63df4f --- /dev/null +++ b/installchocowithtools.ps1 @@ -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 +} \ No newline at end of file