Link to home
Start Free TrialLog in
Avatar of elguaxo
elguaxo

asked on

Lock Computer after X time of use

I want to use a Win2000 machine to show some programs. And I want the computer to automatically LOCK after X time of being unlocked.

A password protected screen saver LOCKs only after X time of inactivity. In my case, I want to LOCK the PC after X time of being UNLOCKED.

Any hints? Thanks in advance.
Avatar of rhandels
rhandels
Flag of Netherlands image

Hi,

Yes, just one... If this is possible (which i doubt), you will need to use either a VB script or a WMI program.. I don't know how to program (maybe someone else does), but i think that you might have a shot in the programming section...
Avatar of _Birkoff_
_Birkoff_

Yes, you should try some script (but with that I cannot help)...

Or just try a software... I know Sysguard (http://www.idiogensoftware.com/sysguard/index.php) can do what yo want (but It does not locks the computer with Windows lock, it has its own Lock window... I dont know if that is a problem to you)...

Cristian
Download & Install AutoIT v3 - It is free.
http://www.hiddensoft.com/autoit3/

Save the following in autolock.au3 and run it (right click / run script).
It will lock the computer the 1st time just after his execution
Then it waits 5 seconds for 15 seconds.

You can make a .exe from this script. :

$i = 0

Do
Sleep(5000) ;five seconds
WinWaitNotActive("Unlock Computer", "", 5)
Run("rundll32 user32.dll,LockWorkStation", "", @SW_HIDE)
MsgBox(4096, "Test", "Unlock in 15 seconds", 15)
MsgBox(4096, "Test", "Unlock in 10 seconds", 10)
MsgBox(4096, "Test", "Unlock in 5 seconds", 5)

$i = $i + 1
Until $i = 0
Add the next line to the first line in your script.
It hides the AutoIT icon in the System Tray.

AutoItSetOption ( "TrayIconHide", 1 )
ASKER CERTIFIED SOLUTION
Avatar of TJworld
TJworld

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial