Jump to content

Recommended Posts

Posted

Hi all,

 

I'm trying to get PC's to lock after say 10min of inactivity using the following command run from the task scheduler set in GPP on Windows 7, without using a screen saver...

 

rundll32 user32.dll,LockWorkStation

 

I can't get it to run. The task appears in the local scheduler but isn't running. It wont run when I try to manually run it either.

 

Now, I am running it under 'Computer Configuration' not 'User' - might need to use loopback processing for it to work but not sure how.

 

Perms are NTAUTHORITY\SYSTEM.

 

 

Task scheduler options are:

 

General: Update

Run with highest privileges

Configure for Windows 7

Trigger: On idle

Action: Start a program - rundll32 user32.dll,LockWorkStation

Conditions: Start task only when computer is idle for 10 mins

Settings: If task fails, restart every 1 min

 

 

Whats the default period of time before Win 7 considers itself idle ?

 

 

Any help appreciated ;)

Posted

You tried using it's full path? As not sure it'll like just "rundll32"

 

%windir%\system32\rundll32.exe user32.dll,LockWorkStation

 

Also why don't you just use the screensaver option, but set this as the "screensaver exe" that's generally the way it's done that I've seen. Then use the screensaver timeout etc

 

Steve

Posted

I ran your rundll32 user32.dll,LockWorkStation and couldn't get it to lock my pc, however, I altered it to %windir%\system32\rundll32.exe user32.dll,LockWorkStation which did work - try that and see if it helps?

 

Shaun

 

- - - Updated - - -

 

Damn, should have refreshed the page before posting!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...