> Get-WinEvent -FilterHashTable @{LogName='AD FS/Admin'; Level=2; StartTime=(Get-Date).AddDays(-7)} -ComputerName adfssrv1


> Set-ADFSProperties -LogLevel Verbose,Errors,Warnings,Information,failureaudits,successaudits

Get-Command -Module adfs


> Import-module C:\Program Files\Azure Ad Connect Health Adfs Agent\Diagnostics\ADFSDiagnostics.psm1


> Test-AdfsServerHealth | where {$_.Result -eq "Fail"} | fl


Set-AdfsProperties -AuditLevel verbose