How to trigger PowerShell script when screen saver activates and deactivates? Running a PowerShell script as a ‘service’ or when system starts via task manager, and said script checking for process named with .scr, would work most of the time, but seems a bit like a hack. Is there a better way to do this? Are there screen saver events, I can link to? If you use gpedit.misc, you can link to the startup and show down events of the system, even the login and logout events for a user the say way, but don’t seem to be able to find information for screen saver events?