Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: need script to set screensaver / lock out to 10 minutes

28 Aug 2014   #1
Total

Windows 10 Pro - 64 bit
 
 
need script to set screensaver / lock out to 10 minutes

need script to set screensaver / lock out to 10 minutes . Is such a think possible ? thanks


My System SpecsSystem Spec
.
29 Aug 2014   #2
cyanna

windows 7 ultimate x64
 
 

Funny, I am using an app that prevents the screen saver/sleep to start on my work PC.
What you propose to do is possible but not easy.
You could have a script that would create a scheduled task to run
Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation

Scripts to create scheduled tasks should be floating around the web. But then where do you want the script to run? If you want it to run in the context of another user you might need to have this run as part of a logon script.
Could you provide more details of what exactly you are trying to do?
My System SpecsSystem Spec
29 Aug 2014   #3
Total

Windows 10 Pro - 64 bit
 
 

Quote   Quote: Originally Posted by cyanna View Post
Funny, I am using an app that prevents the screen saver/sleep to start on my work PC.
What you propose to do is possible but not easy.
You could have a script that would create a scheduled task to run
Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation

Scripts to create scheduled tasks should be floating around the web. But then where do you want the script to run? If you want it to run in the context of another user you might need to have this run as part of a logon script.
Could you provide more details of what exactly you are trying to do?
at work , many of my co-workers forget to lock their computer when they leave , sensitive files are left unsecured . They also are inept in setting the lock screen with the screensaver .
My System SpecsSystem Spec
.

29 Aug 2014   #4
cyanna

windows 7 ultimate x64
 
 

So how do you plan to deploy your script? Manual instal for each user on each computer? Admin install on each computer and have it run for each user? Deploy over a domain?
Are you expected to provide IT maintenance and support?
My System SpecsSystem Spec
29 Aug 2014   #5
JDobbsy1987

Windows 8.1 Pro x64
 
 

Quote   Quote: Originally Posted by Total View Post
at work , many of my co-workers forget to lock their computer when they leave , sensitive files are left unsecured . They also are inept in setting the lock screen with the screensaver .
Are you on a domain?
Ideally this should be done through Group Policy, you will then be able to set lock/screen saver timeout as well as the screensaver you wish to run.

I don't know to much about Group Policy settings itself as that's not my area but i know thats where we manage it at work (as we do with many other desktop and user settings).

Regards,
Jamie
My System SpecsSystem Spec
29 Aug 2014   #6
pricetech

Windows 7 Professional 64 bit
 
 

If you're on a domain, group policy is best. Otherwise, I'd write a script to activate the screensaver and lock the computer in the user's registry. I can't tell you what keys you'll need to edit right offhand, but it should be easy enough to sort out by making the changes to your profile, then building the script according to the changes you see.

Have fun with it.
My System SpecsSystem Spec
29 Aug 2014   #7
Total

Windows 10 Pro - 64 bit
 
 

thanks people - The group policy will do the job . Appreciated ..
My System SpecsSystem Spec
Reply

 need script to set screensaver / lock out to 10 minutes




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Buggy screensaver - Doesn't lock
I can't figure out what's wrong with the screensaver settings. I've got it set to come on after 10 minutes, and I checked the box to display the lock screen or whatever it is where you enter your password to log into Windows...but it doesn't work right. During the day, if I walk away from the...
General Discussion
screensaver 3 minutes
its kinda weird my screensaver wont start after 3 min at 1 mintute it starts 2 mintutes it starts at 3 minutes it starts but after 3 minutes the screensaver wont start anyone can help me?
General Discussion
Trying to make .BAT to start screensaver and lock screen Win 7 pro 64
I am trying to make a shortcut to lock my screen and invoke the screensaver with one batch file. I came up with this: @echo off rem ScreenSaver cd %windir%\ start WLXPGSS.SCR rem LOCK cd %windir%\system32
Customization
Lock PC by Power Options not screensaver
Hello, I am unable to lock my PC via power options. Although I have set it as to lock PC, it is impossible to do it as per Windows XP. The only way to lock it is through the screensaver, but this is not an option for me as I work 10 hours at an office and I prefer the blank screensaver to...
Customization
Auto screen lock(NOT SCREENSAVER)
Screensaver is disabled. After a few minutes, 5 I think, Window 7 lcoks the computer and put up the password prompt. I have looked through user accounts, security menus, searched web, but can't find anything. How do I disable/control this? Screensaver is disabled.
System Security
How to lock PC without the need of a screensaver?
I've read somewhere here before that Windows 7 introduced a feature wherein you can lock your PC without the need of a screensaver. My question is how can I access this, or change this setting? Local Security Policy? GPedit? :confused:
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:10.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App