Force Users to Quit Programs and Log Off After a Period of Inactivity
This step-by-step article describes how to automatically quit a user's running programs and to log the user off of a workstation after a specified time period. Workstations that are left logged on may represent a security risk for an organization.
Details:
http://support.microsoft.com/kb/314999/en-us?spid=1173&sid=73