My requirement is I have to run an application when user logs out from windows. To achieve this I felt that adding a Shutdown script to Group Policy of Windows would be a feasible solution. We normally do it by gpedit.msc. But I want to do it programatically from C#. Any help is highly appreciated.
Thanks in advance.