From 5d36f31544639f2b5cf71fad32a225eae0a70492 Mon Sep 17 00:00:00 2001 From: scriptos Date: Wed, 29 Nov 2023 14:44:37 +0100 Subject: [PATCH] zwischenstand nr2 --- windows-updater.ps1 | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/windows-updater.ps1 b/windows-updater.ps1 index acec487..1146a9c 100644 --- a/windows-updater.ps1 +++ b/windows-updater.ps1 @@ -17,22 +17,12 @@ function Format-DeutschesDatum ([datetime] $date) { # Variablen $LogPfad = "C:\logs\windows-updater.log" -#$ModulPfad = Join-Path -Path $PSScriptRoot -ChildPath "modul-pswindowsupdate" -#$ModulPfad = "C:\scripts\PSWindowsUpdate\2.2.1.2\PSWindowsUpdate.psm1" -$ModulVerzeichnis = Join-Path -Path $PSScriptRoot -ChildPath "Module\PSWindowsUpdate" -$env:PSModulePath += ";C:\BenutzerdefinierteModule" - -# Relativer Modulpfad zum $env:PSModulePath hinzufügen $ModulVerzeichnis = Join-Path -Path $PSScriptRoot -ChildPath "Module" $env:PSModulePath += ";$ModulVerzeichnis" # Importiere das PSWindowsUpdate-Modul Import-Module -Name "PSWindowsUpdate" -Verbose - -# Importiere das PSWindowsUpdate-Modul -Import-Module -Name $ModulPfad -Verbose - # Überprüfe, ob das Modul erfolgreich geladen wurde if (Get-Module -Name PSWindowsUpdate -ListAvailable) { Write-Host "PSWindowsUpdate-Modul erfolgreich geladen."