Open Registry Editor (regedit.exe) and go to:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Wind ows\System\Scripts\Logoff
If the subkeys don't exist, then create theme and once you done....
Create String Values like 1,2,3....so on as much as you want to execute scripts and set the path of scripts in their values.
Nechce se mi to ted zkouset.......