Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Find out when it patched

$
0
0

I want to quickly identify the last time a server was patched/rebooted.  I'm using this PowerShell command but i want it to only find the last entry in the eventlog.  Not comb through the entire System log.  Any ideas?

-newest 1 didn't work

Get-Eventlog -computername <servername> -logname System | where {$_.EventID -eq "22"}  | Format-Table –Wrap TimeWritten,Message


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>