auto logoff after idle time on windows xp
Start/All Programs/Accessories/System Tools/Scheduled Tasks. Under Advanced/Settings/Idle Time (Only start... and Stop the task...).
You can schedule a task for inactivity. Use this to lock the
desktop after 10 minutes of idle time.
Use this shortcut for the task:
To log off and run the risk of having your programs end prematurely and without saving any unsaved material, you could use the same scheduled task command and replace the LockWorkStation with ExitWindows. That will log off the currently logged on user.
To schedule a logoff procedure for XP, use this:
C:\Windows\System32\shutdown -l as the scheduled task.
All the Best,
MS-MVP Win98/XP-Shell/User [AE-Windows? XP]
Troubleshooting Windows XP