Quick & Dirty – Gather Shutdown Tracker Events

Today I had the need to see if my Front End servers were shut down “dirty’ and when. So I kicked out the following script.

$banana = Get-CsComputer -Pool lyncpool.flinchbot.com
foreach($Server in $banana)
 write-host $server.fqdn
 Get-EventLog -ComputerName $server.fqdn -LogName System -InstanceId 41 | export-csv shutdowns.csv -Append

Leave a Reply

Your email address will not be published.