Hallo

I need to log when a user is shutting down the computer. How can I detect this to log time in a logfile?

Thank you