| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

AutoLockWorkstation

This version was saved 18 years, 9 months ago View current version     Page history
Saved by PBworks
on July 23, 2005 at 12:40:15 am
 

So, my daughter has this knack for pushing past the time she's supposed to stop using the computer. Using a cron entry under Cygwin, I run "wscript autolock.vbs" at 9:00 Sunday-Thursday and 11:00 Friday-Saturday. autolock.vbs contains:

On Error Resume Next
Set objShell = CreateObject("Wscript.Shell")
objShell.Run "%windir%System32rundll32.exe user32.dll,LockWorkStation"

Note: This works on Windows 2000. It probably works on other Win32s as well.

 

-Attribution

Comments (0)

You don't have permission to comment on this page.