From 8fa4934f985735123a4c65a2c26e88e7b3c08787 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 21 Jun 2023 21:30:54 +0200 Subject: [PATCH] VMWare Powershell Modul --- config.ps1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/config.ps1 b/config.ps1 index dd241fb..47da733 100644 --- a/config.ps1 +++ b/config.ps1 @@ -246,6 +246,21 @@ function InstallSoftware { Write-Host "Fehler beim installieren des Powershell update Modul." -ForegroundColor Red } } + # Powershell Modul für VMWare + if (Get-Module -ListAvailable -Name VMware.PowerCLI) { + Write-Hoste "VMWare Powershell Modul ist bereits installiert." -ForegroundColor Blue + } + else { + + Write-Host "Beginne mit der Insallation des VMWare Modul..." -ForegroundColor Blue + Try { + Install-Module -Name VMware.PowerCLI -Force + Write-Host "VMWare Modul erfolgreich installiert..." -ForegroundColor Green + } + Catch { + Write-Host "Fehler beim installieren des VMWare Modul." -ForegroundColor Red + } + } Read-Host "Bitte das Terminal / Powershell neu starten damit die Aenderungen uebernommen werden." # Windows Explorer Einrichten New-Item -Path "HKCU:\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" -Value "" -Force