From http://www.ntfaq.com/

...
You may also consider ShutdownPlus ( http://www.wmsoftware.com/shutdownplus ) which replaces the standard Windows shutdown and logoff dialog boxes. Shutdownplus allows you to run applications and stop services (stopping services only under NT/2000) at shutdown, restart, or logoff.

Another method is to use a special GINA from http://wwwthep.physik.uni-mainz.de/~frink/nt.html which enables you to do this.

In Windows 2000 this can be accomplished using Group Policy Objects. Go to the User Configuration - Windows Settings - Scripts (Logon/Logoff) and set the Logoff option.


[This message has been edited by Davide (edited 04-20-2000).]