Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
YosfanEilay committed Feb 5, 2024
1 parent c9a0430 commit 705c92c
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions 02-LogModules/Auth.Log/03-Features/06-GeneralActivity.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,21 @@ foreach ($SingleLine in $AuthLogCopyContent) {
# print out the Power Button activity
if ($PowerButton_Count -ge 1) {
Write-Output ""
Write-Output "Machine Shutdown By Power Button"
Write-Output "+------------------------------+"
$GeneralActivity_HT["PowerButton"]
Write-Output "Machine Shutdown By Power Button - Raw Events"

# variable to cretae the amount of spaces needed for the table
$MaxLength = ($GeneralActivity_HT["PowerButton"] | Measure-Object Length -Maximum).Maximum

# variable to story the new amount of hyfens
$Border = '-' * $MaxLength

foreach ($Event in $GeneralActivity_HT["PowerButton"]) {

Write-Output "+$Border+"
Write-Output "|$Event|"

}
Write-Output "+$Border+"
}

# reset
Expand Down

0 comments on commit 705c92c

Please sign in to comment.