From 86ab218ae17828052fc49a65e062cecc9d505a95 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 30 Dec 2022 17:11:53 +0100 Subject: [PATCH] Update Modul vergessen. --- install.ps1 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/install.ps1 b/install.ps1 index dc57fdc..6980f80 100644 --- a/install.ps1 +++ b/install.ps1 @@ -163,10 +163,17 @@ do { } Catch { Write-Host "Probleme beim löschen der default Powershell config." -ForegroundColor Red + } + # Powershell Modul für Updates + Try { + Install-Module -Name PSWindowsUpdate -Force + Write-Host "Powershell update Modul erfolgreich installiert..." -ForegroundColor Green } - - Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden." -Fore - + Catch { + Write-Host "Fehler beim installieren des Powershell update Modul." -ForegroundColor Red + } + Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden." -Fore + } '3' { foreach ($utility in $toInstallOpt) { $ergebnis = winget list --id $utility @@ -178,8 +185,6 @@ do { } } } - - $decision = $Host.UI.PromptForChoice('WSL', 'Soll WSL mit Debian 11 installiert werden?' , $choices, 1) if ($decision -eq 0) { Write-Host "Installiere WSL" @@ -199,8 +204,7 @@ do { Write-Host "Starte Explorer neu um änderungen zu übernehmen" Get-Process explorer | Stop-Process - # Powershell Modul für Updates - Install-Module -Name PSWindowsUpdate -Force +