I'm a Sr. Systems Engineer at a Global Environmental Engineering company. I've been in IT since 1999 and from 2005, my focus has been VMware datacenter products. More recently, my attention has been for Microsoft Azure services. As the Global Service Owner for VMware Datacenter products, I've had the pleasure of having in-depth and hands-on experience with not only VMware products, but server, storage and networking technologies.
Monday, December 22, 2014
Powershell: How to Find Server Restarts And Who Initiated Them
An application owner recently asked when and who restarted a server. For Windows 2008 R2 servers:
Event ID 12 - Shows the OS start time
Event ID 13 - Shows the OS Shutting down
Event ID 1074 - Shows who initiated the Shutdown.
I wanted to provide him with a list of the event times, so I dumped the results into a csv file with the following command for the relevant IDs.
get-eventlog -logname system -instanceid 13 | export-csv -path c:\temp\eventid13.csv -notypeinformation
Subscribe to:
Posts (Atom)