We help IT Professionals succeed at work.

Display a countdown before screensaver kicks in and PC is locked

richardwakefield
on
2,863 Views
Last Modified: 2008-03-10
We have a Group Policy which activates a screensaver afetr 10 minutes and at the same time locks the PC, what i would like to implement is some sort of countdown, maybe 30 seconds, which will warn the user that the screensaver is going to activate and lock their PC. Does anyone have any suggestions?

Thanks
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
That is an ideal solution, however the only way i can think of doing it is to make the first 30 seconds of the screensaver a countdown (We create our own screensavers which are just a bunch of image files looping) , but then this would be displayed every time the screensaver looped.. the only solution i can think of is making the screensaver 20 hours long, then it is unlikely that the user would see the countdown message the next time it looped (if that makes any sense at all) :-)

Any sugestions?

Commented:
I would agree with oBdA.
Changing the grace period allows the screen saver to start but delay locking it.
Unless in making you own savers you've included code to lock the workstation?

What GPO settings do you have for the screen saver?

Krompton
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018

Commented:
Come to think of it, programming your own screen saver won't really help you, unless you build in the functionality to lock the desktop and take out the regular lock. It's not the screen saver that decides whether or when to lock, but the OS, so you can only use the grace period.
What you could do when using your own screen saver is read the grace period from the registry, and display a counter from this time downward (note that until and including W2k, default is 5 seconds, whereas XP and W2k3 have no default grace period). Once you've reached the end of the loop in your screen saver, just check if the countdown has already been shown, and continue with the show if so.

Author

Commented:
The GPO settings are

user config/admin templates/control panel/display

Password protect the screensaver = enabled
screensaver timeout = 600 seconds

Unfortunately resding the registry and displaying a countdown is way above my skills, allthough this is the ideal situation i suppose.
CERTIFIED EXPERT
Most Valuable Expert 2019
Most Valuable Expert 2018

Commented:
It's not really a necessity; the grace period alone would do the job just fine, as someone who's missing the screensaver kicking in is likely to miss the countdown display as well ...
Just to rule out any misunderstanding here: it is NOT the screen saver that locks the desktop, it's the OS. If you set the grace period, ANY screen saver can be deactivated during this specified time, without having to reenter the password.

Commented:
Just to verify what you want to accomplish...

As I understand it you want you users to be able to exit the screen saver for about 30 sec before entering of their password is required. Is this accurate?

Commented:
oBdA,

Including a line similar to "rundll32.exe user32.dll,LockWorkStation" in a program will ignore the GracePeriod setting in the registry. As long as there is no code like this in the scr you are absolutely correct. That's why I mentioned it when he said they made their own saver.

Author

Commented:
Krompton

Yes that is what i want to achieve, but i need to display a countdown of some description to give the user a chance to wiggle the mouse before it locks. I know i can do this by using the grace period , but i would then have to make the first 30 seconds of the screensaver into a countdown, (30..29..28......3..2..1 etc). I would then have the problem that this is displayed every time the screensaver loops.

When i say we make our own screensaver, we just use a program that compiles about 20 jpg files into a screensaver which change every 5 seconds or so, therefore i would make the first f6 jpgs display something like 30,25,20,15,10,5.

If anyone can suggest how i prevent the countdown reapperaing after the first loop of the screensaver, or another way i guess would be to forget the grace period, and have some sort of countdown that displays on the screen, then when the screensaver kicks in it locks immediately.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks for your advice, I have managed to use an exe which is called instead of the screensaver that displays a countdown fro 30 seconds and then callls the screensaver.

I have split the points 50/50

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.