diff --git a/Windows Updates mit AutoReboot.xml b/Windows Updates mit AutoReboot.xml new file mode 100644 index 0000000..6cdd8ac Binary files /dev/null and b/Windows Updates mit AutoReboot.xml differ diff --git a/windows-updater.ps1 b/windows-updater.ps1 index 795bd01..4f2391a 100644 --- a/windows-updater.ps1 +++ b/windows-updater.ps1 @@ -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 \ No newline at end of file