Windows log off

G

Guest

Is there a way to force automatic log off for an idle session?
I need to set up a WinXP computer wihich is in Windows 2003 domain with an
ability to force a log off of a user which stopped using the computer but
didn't log off. I need to allow some kind of session time out in a case of
extended inactivity (lets say 10 minutes). I wonder if there are any built
in mechanisms to do it?
This is in an environment where there are multiple users who need rather
infrequent access to the computer but often forget to log off.
 
R

Ramesh [MVP]

Winexit.scr: Windows Exit Screen Saver
http://www.microsoft.com/resources/...indowsserv/2003/all/techref/en-us/winexit.asp

Download details: Windows Server 2003 Resource Kit Tools:
http://www.microsoft.com/downloads/...69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

JSI Tip 1179. How can I use the WinExit screen saver without granting Admin rights?:
http://www.jsiinc.com/SUBc/tip1100/rh1179.htm

--
Ramesh, Microsoft MVP
Windows XP Shell/User
http://windowsxp.mvps.org


Is there a way to force automatic log off for an idle session?
I need to set up a WinXP computer wihich is in Windows 2003 domain with an
ability to force a log off of a user which stopped using the computer but
didn't log off. I need to allow some kind of session time out in a case of
extended inactivity (lets say 10 minutes). I wonder if there are any built
in mechanisms to do it?
This is in an environment where there are multiple users who need rather
infrequent access to the computer but often forget to log off.
 
K

Kelly

Hi Daniel,

Automatically log off a user or shut down your machine: You can incorporate
Rundll32 into your Windows Script Host (WSH) or command-shell scripts to log
off the current user or shut down and restart the computer. The value in the
command's last parameter controls the action that will occur: 0 performs a
logoff, 1 performs a shutdown, 2 performs a reboot, 4 performs a forced
shutdown, and 8 powers down the machine. The following example performs a
logoff:

rundll32.exe shell32.dll,
SHExitWindowsEx 0

Added info:

You can schedule a task to lock the desktop after a period of
inactivity.

Start/All Programs/Accessories/System Tools/Scheduled Tasks. On the last
screen, check off Show Advanced Options. 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:

%windir%\System32\rundll32.exe user32.dll,LockWorkStation

C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation.

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.

A scheduled task can be run without passwords:

For Pro: Start/Control Panel/Administrative Tools/Local Security
Policy/Local Policies/Security options. In the right hand pane (third down).

Accounts: Limit local account use of blank passwords to console logon only.
This is enabled by default, disable it.

For Home: Run Scheduled Task without a Password (Line 68)
http://www.kellys-korner-xp.com/xp_tweaks.htm

Easy Log Off, Shutdown and Restart (Line 89)
http://www.kellys-korner-xp.com/xp_tweaks.htm


--
All the Best,
Kelly (MS-MVP)

Troubleshooting Windows XP
http://www.kellys-korner-xp.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top