This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Description
As we still have some older servers with adfs 2.0, the log for those is not "AD FS/Admin"
and "AD FS Tracing/Debug"
but "AD FS 2.0/Admin"
and "AD FS 2.0 Tracing/Debug"
I was not able to list those logs using Get-EventLog
so I was checking for existence via
if ($null -ne (Get-WinEvent -LogName "AD FS 2.0/Admin" -MaxEvents 1 -ErrorAction Ignore) ) {
$Log = "AD FS 2.0/Admin"
}
Not sure this is correct practice, or how it should be correctly handled.
I can make PR for 2.0 support but need a guidance how to correctly check it :-)