I'm struggling trying to run a program at logoff.
I tried with gpedit.msc (User Configuration\Windows Settings\Scripts (Logon/Logoff)) but it seems not working.
Moreover, the script/program would have been launched as "user", not as admin, and I need admin rights.
I verified that task scheduler hasn't any option for logoff...
What can I use?