Forum Home
Press F1
 
Thread ID: 52259 2004-12-15 23:24:00 Automatically Lock W2K Workstation ninja (1671) Press F1
Post ID Timestamp Content User
303183 2004-12-15 23:24:00 I'm looking for a way that I can set my W2K Workstation to lock after x minutes of inactivity.

I'd rather not use the screensaver password if possible, and use the proper Windows Lock Workstation feature.

So far everything I've found points to using 3rd party software which I'd also rather not use.

Any suggestions gratefully received.
ninja (1671)
303184 2004-12-15 23:29:00 Hmm..

If you're not worried about the computer doing anything in the background you could get it to standby after certain amount of time and then prompt for password when it comes back up (Power settings).

The screen saver option would be the easiest though and let your PC operate normally in the background and im sure the Win2K screen saver password option does "Lock the Workstation" properly...
HadO (796)
303185 2004-12-15 23:31:00 You could make a habit of pressing Windows key + L everytime you walk away from it... wintertide (1306)
303186 2004-12-15 23:38:00 You could make a habit of pressing Windows key + L everytime you walk away from it...
That one doesn't work on W2K... I've found the option of using an app in QuickLaunch running the command:

rundll32 user32.dll,LockWorkStation

However something automated would be preferable in the event I forget to do it. There are a lot of root shells etc open which I need to protect, and I just don't like the idea of doing it with a screensaver.
ninja (1671)
303187 2004-12-16 00:39:00 Why not a screen saver?

Like I said it does "lock" the computer the same way it does when you CTRL+ALT+DELETE & "Lock Workstation" .
HadO (796)
303188 2004-12-16 00:55:00 I am experimenting with a scheduled task to do this.

I will report how it goes soon.
george12 (7)
303189 2004-12-16 01:03:00 Yep, it works.

Here's how to do it Ninja:

Open scheduled tasks. Make a new one, just feed random junk into the stupid wizard, then open the properties for the new task, and set as follows:

(Task tab):
Run: rundll32 user32.dll,LockWorkStation
Run only if logged on: Tick

(Schedule tab):
Schedule task: Daily
Start time: (a few mins after current time)

Click Advanced, and choose Repeat Task, every few minutes depending on your timing.

On the Settings tab, make it so that it only runs if the PC has been idle for BLAH minutes.

Cheers George
george12 (7)
303190 2004-12-16 01:59:00 stuff

Cheers... will give that a go....
ninja (1671)
303191 2004-12-16 04:01:00 I'd rather not use the screensaver password if possible, and use the proper Windows Lock Workstation feature.
W2K has the ability to lock the PC with a CTRL+ALT+DEL > Lock PC (or similar). If this is enabled then the screensaver activating can also lock the PC.

Mike.
Mike (15)
303192 2005-06-17 16:11:00 george12, how can you comment next situation:
when i try to resolve similar problem, i decide to write little program(for example Delphi console aplication) which will hadle API function LockWorkstation and thats all . then this application was renamed to be like screensaver (* . scr) and set as default screensaver through standart diaolog window . . . All works nice, but when workstation already be locked, after time of Inactivity, screensaver try to start one more (and mayby more an more) time and OS become to hang state (all input inored) . . . As result - RESET . DoubleLockWorkstation as i named that state .

Maybe sheduller will conduct oneself in other way?

P . S . Sorry for my English, I am from Ukraine :)
bhagavan (6542)
1 2