XP Auto Logoff after idle time

P

Pasi Heino

Hi,

Have anyone created auto logoff to Win XP. I have classroom etc.. common
computers which needs auto logoff feature after f. ex. 60 min. idle time.
Also there needs to be announcement that user can deny logoff if he is using
computer.

- Pasi
 
P

PassPlay

You can use a scheduled task to accomplish this.
Download the sysinternals psshutdown.exe command.
http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx

Place the file within c:\windows
Schedule a task as the local administrator
c:\windows\psshutdown.exe -o -f
Under the schedule tab > Schedule Task: select "When idle"
Input the minutes in the box: "When the compute has been idle for:

Under the Settings tab:
Levae the 72 hours at the top as is.
Select "Only start the task if the computer has been idle for at least:
<input the number of minutes you want>
"if the computer has not been idle that long, retry for up to:
<you can leave this at zero>
Leave all other boxes beyond this point empty.

Play with the settings to adjust them as you deem necassary
 
A

Anteaus

Probably the best way to do this is to use the inbuilt screensaver options.
A screensaver is just an executable, renamed .scr, which accepts the /s
argument as an instruction to go into saver mode. So, all you need is an .exe
which interprets /s on the commandline as an instruction to call the system's
logoff or powerdown function.

Autoit code:

if $cmdLine[0]=1 then
if $cmdLine[1] = "/s" then
Msgbox(0,"Impending Doom","Beware, the end of your session is nigh!",10)
shutdown(5) ; Force a shutdown even if apps protest about unsaved data.
endif
endif

The shutdown code is a combination of the following values:
0 = Logoff
1 = Shutdown
2 = Reboot
4 = Force
8 = Power down
32= Standby
64= Hibernate

http://autoitscript.com

http://www.wischik.com/scr/howtoscr.html
 

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

Similar Threads


Top