using the shutdown command to forcefully log off an account ?

  • Thread starter Thread starter *ProteanThread*
  • Start date Start date
P

*ProteanThread*

is it possible to create in a *.BAT file (preferred) or vb script file by
using the shutdown command (in the users accounts startup folder) to
forcefully logoff the user after about an hour ? would like to use
something like this in both limited accounts and the guest account.


--
Woodzy

http://www.rtdos.com (alt OS for games based on the classics)
http://d.webring.com/hub?ring=win32 ( Windows 9x / NT / 2k / XP and
Longhorn )
 
*ProteanThread* said:
is it possible to create in a *.BAT file (preferred) or vb script file by
using the shutdown command (in the users accounts startup folder) to
forcefully logoff the user after about an hour ? would like to use
something like this in both limited accounts and the guest account.
Hi

Possible, yes, but the user can easily kill the process before
the shutdown takes place, and it will not stop the user from
just logging in again after the logoff either.


There is 3rd party software that handles this much better:

"1st Security Center"
http://www.1securitycenter.com/

<quote>
The powerful feature "User Working Time" allows you to limit working
time for your children , office colleagues , students and so on. You
can define several time intervals and time durations to manage users
working time very easy.
</quote>


The application in the link below is a lot more limited, but it can
e.g. force a logoff/shutdown at a set time or after a time duration
(but it looks like this is computer based and not user based):

Aye Shutdown
http://www.ayesoftware.com/asd/
 
Torgeir Bakken (MVP) said:
Hi

Possible, yes, but the user can easily kill the process before
the shutdown takes place, and it will not stop the user from
just logging in again after the logoff either.


I do not think my 3 yr old child is smart enough *YET* to figure out how to
kill a process. I just want to limit her per session time on the computer.
 
*ProteanThread* said:
I do not think my 3 yr old child is smart enough *YET* to
figure out how to kill a process. I just want to limit
her per session time on the computer.
Hi

With a VBScript:

'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")

' sleep 1 hour
WScript.Sleep 60 * 60 * 1000

' forced logoff
oShell.Run "shutdown.exe -l -f", 0, False
'--------------------8<----------------------
 
Back
Top