@@ -358,17 +358,19 @@ function Write-ADFSEventsSummary
358358
359359 # Define Columns
360360 $col1 = New-Object system.Data.DataColumn Time, ([string ])
361- $col2 = New-Object system.Data.DataColumn EventID, ([string ])
362- $col3 = New-Object system.Data.DataColumn Details, ([string ])
363- $col4 = New-Object system.Data.DataColumn CorrelationID, ([string ])
364- $col5 = New-Object system.Data.DataColumn Machine, ([string ])
365- $col6 = New-Object system.Data.DataColumn Log, ([string ])
361+ $col2 = New-Object System.Data.DataColumn Level, ([string ])
362+ $col3 = New-Object system.Data.DataColumn EventID, ([string ])
363+ $col4 = New-Object system.Data.DataColumn Details, ([string ])
364+ $col5 = New-Object system.Data.DataColumn CorrelationID, ([string ])
365+ $col6 = New-Object system.Data.DataColumn Machine, ([string ])
366+ $col7 = New-Object system.Data.DataColumn Log, ([string ])
366367 $table.columns.add ( $col1 )
367368 $table.columns.add ( $col2 )
368369 $table.columns.add ( $col3 )
369370 $table.columns.add ( $col4 )
370371 $table.columns.add ( $col5 )
371372 $table.columns.add ( $col6 )
373+ $table.columns.add ( $col7 )
372374
373375 foreach ($Event in $input.Events ){
374376 # Create a row
@@ -380,6 +382,7 @@ function Write-ADFSEventsSummary
380382 $row.CorrelationID = $Event.CorrelationID
381383 $row.Machine = $Event.MachineName
382384 $row.Log = $Event.LogName
385+ $row.Level = $Event.LevelDisplayName
383386
384387 # Add the row to the table
385388 $table.Rows.Add ($row )
@@ -542,4 +545,4 @@ function Get-ADFSEvents
542545
543546}
544547Export-ModuleMember - Function Get-ADFSEvents
545- Export-ModuleMember - Function Write-ADFSEventsSummary
548+ Export-ModuleMember - Function Write-ADFSEventsSummary
0 commit comments