Aug 25

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. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

%d bloggers like this: