Update Modul vergessen.

This commit is contained in:
2022-12-30 17:11:53 +01:00
parent fd93e37ebf
commit 86ab218ae1

View File

@@ -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