Initial version of the .NET HostAvailabilityMonitor.

This commit is contained in:
2026-04-16 12:40:53 +02:00
commit c267069d02
19 changed files with 2252 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
param(
[Parameter(Mandatory = $true)]
[string]$Source,
[string]$LogName = "Application"
)
$ErrorActionPreference = "Stop"
if (-not [System.Diagnostics.EventLog]::SourceExists($Source)) {
New-EventLog -LogName $LogName -Source $Source
Write-Host "Event Source '$Source' wurde in '$LogName' angelegt."
}
else {
Write-Host "Event Source '$Source' existiert bereits."
}