Skip to content

Commit 6dd8d77

Browse files
committed
Update Check-WindowsUpdate.ps1
1 parent 8c721eb commit 6dd8d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WSUS/Check-WindowsUpdate.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ Write-Output "Last $ShutdownEvents shutdown events:"
7979
Write-Output "==================================="
8080
Get-EventLog -LogName System | Where-Object {$_.EventID -eq 1074} | Select-Object -First $ShutdownEvents | Format-List -Property TimeGenerated, UserName, Message
8181
Try {
82-
Get-Command Get-WUHistory -ErrorAction Stop
82+
Get-Command Get-WUHistory -ErrorAction Stop
8383
Write-Output " "
8484
Write-Output "WUHistory:"
8585
Write-Output "==================================="
86-
Get-WUHistory -Last 20
86+
Get-WUHistory -Last 20 | Format-Table -AutoSize
8787
}
8888
Catch { Write-Output "Get-WUHistory not available." }

0 commit comments

Comments
 (0)