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

  • Work with all your cloud files (Drive, Dropbox, and Slack and Gmail attachments) and documents (Google Docs, Sheets, and Notion) in one place. Try Dokkio (from the makers of PBworks) for free. Now available on the web, Mac, Windows, and as a Chrome extension!

View
 

AutoLockWorkstation

Page history last edited by David B 12 years, 7 months ago

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.