need my users logoff automatically after 15 min 
Author Message
 need my users logoff automatically after 15 min

Hi!

I am using W2kServer with a W2kProfessional attached. I need my client
users to be automatically logoff after 15 or 30 minutes from the time of
logon.

Like if they logon at 1:15 , i want them to logoff after 15 or 30
minutes like at 1:30 or 2:00.

Thankx!

Waiting for reply!



Tue, 21 Sep 2004 19:22:06 GMT  
 need my users logoff automatically after 15 min
Hi,
    what if they're still working on the site?  What I would suggest is that
you write a client-side script that counts down from 30 minutes to 0. Upon
mousemove or keypress, reset the timer to 30 minutes. If the counter reaches
0, redirect to another page which effectively logs them off.

P.



Tue, 21 Sep 2004 23:02:45 GMT  
 need my users logoff automatically after 15 min

Quote:

> I am using W2kServer with a W2kProfessional attached. I need my client
> users to be automatically logoff after 15 or 30 minutes from the time of
> logon.

If the users always run a logon script, launch a new script asynchronously
(WSHShell.Run "<path>\<file>.vbs") that sleeps for 15 minutes (Wscript.Sleep 15
* 60 * 1000), and then use e.g WMI for the logout part (forced logout if you
wish).

If the users don't run a logon script, you can launch the script this way
instead:

From the Start menu Run dialog, open: gpedit.msc

Then, under "User Configuration",
open Windows Settings\Scripts (Logon/Logoff)
(double click, Add...).

VBScript/WMI for logout:

  Const EWX_LOGOFF = 0
  Const EWX_SHUTDOWN = 1
  Const EWX_REBOOT = 2
  Const EWX_FORCE = 4
  Const EWX_POWEROFF = 8

  Set wmi = GetObject("winmgmts:{(Shutdown)}")

  set objset = wmi.instancesof("win32_operatingsystem")

  for each obj in objset
    set os = obj :  exit For
  next

  ' this one will do a forced *log off*
  ' (change EWX_LOGOFF with any of the other Const if needed)
  os.win32shutdown EWX_LOGOFF + EWX_FORCE

--
torgeir



Tue, 21 Sep 2004 23:30:41 GMT  
 need my users logoff automatically after 15 min
Also answered in other post - scripting.vbscript or scripting.wsh...


Quote:

> Hi!

> I am using W2kServer with a W2kProfessional attached. I need my client
> users to be automatically logoff after 15 or 30 minutes from the time of
> logon.

> Like if they logon at 1:15 , i want them to logoff after 15 or 30
> minutes like at 1:30 or 2:00.

> Thankx!

> Waiting for reply!



Fri, 24 Sep 2004 13:35:31 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. SQL Server 6.whatever ODBC - can we talk?

2. Pascal Database Engine for FoxPro

3. User should be logged out after 15 min

4. Call ASP every 15 minute (automatically)

5. Automatically Logoff User

6. Monthly International Macintosh User Group Meeting(August 15)

7. CARDIFF.GENERAL

8. 15 yearold Programmer needs Help. Please read

9. need 11-15 decimal places in crw 6.0

10. Load **MANY** controls in 45 sec or 15 min.... WHY?

11. Auto close a program after 15 min. idle time

 

 
Powered by phpBB® Forum Software