http://gallery.technet.microsoft.com/scriptcenter/Create-a-ShutdownRestartLog-37c8111d