Erste Veröffentlichung

This commit is contained in:
scriptos 2023-11-29 16:04:25 +01:00
parent 73731b23b4
commit ede9e5f03f
2 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -22,7 +22,7 @@ $env:PSModulePath += ";$ModulVerzeichnis"
# Zeitstempel für das Logfile
$LogZeitstempel = Format-DeutschesDatum (Get-Date)
$LogEintrag = "Script gestartet am: $LogZeitstempel"
$LogEintrag = "Windows Updates gestartet am: $LogZeitstempel"
Write-Host $LogEintrag
$LogEintrag | Out-File -Append -FilePath $LogPfad
@ -55,6 +55,7 @@ if (Get-Module -Name PSWindowsUpdate -ListAvailable) {
# Zeitstempel für das Logfile nach Abschluss des Skripts
$LogZeitstempel = Format-DeutschesDatum (Get-Date)
$LogEintrag = "Script beendet am: $LogZeitstempel"
$LogEintrag = "Windows Updates beendet am: $LogZeitstempel"
Write-Host $LogEintrag
$LogEintrag | Out-File -Append -FilePath $LogPfad
"----------------------------" | Out-File -Append -FilePath $LogPfad