Solved need script to set screensaver / lock out to 10 minutes

Total

Web Dude
Pro User
Local time
10:02 AM
Messages
365
need script to set screensaver / lock out to 10 minutes . Is such a think possible ? thanks
 

My Computer My Computer

At a glance

Windows 10 Pro - 64 bitIntel i7 2600K8 Gig ddr3 1600 mhz - viper extreme (Patriot)EVGA 980 TI
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro - 64 bit
CPU
Intel i7 2600K
Motherboard
Asus P8P67
Memory
8 Gig ddr3 1600 mhz - viper extreme (Patriot)
Graphics Card(s)
EVGA 980 TI
Monitor(s) Displays
2 - Lg 21" LED , sony 48 " bravia LED
Hard Drives
one - samsung 840 series 465.76 GB SSD
two - wd 2 tB black
one - wd 1.5 tb black
one - wb 1 tb black
PSU
1000 Watt Coolmaster : Silent Pro Gold
Case
antec 1200
Cooling
watercooled
Mouse
logitech wireless
Antivirus
Norton Security 2015
Other Info
powerware 3.1 KVA FERRUPS with 4 - 1000 Amp Deep cycle batteries ...
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 Computer My Computer

At a glance

windows 7 ultimate x64
Computer type
PC/Desktop
OS
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?

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 Computer My Computer

At a glance

Windows 10 Pro - 64 bitIntel i7 2600K8 Gig ddr3 1600 mhz - viper extreme (Patriot)EVGA 980 TI
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro - 64 bit
CPU
Intel i7 2600K
Motherboard
Asus P8P67
Memory
8 Gig ddr3 1600 mhz - viper extreme (Patriot)
Graphics Card(s)
EVGA 980 TI
Monitor(s) Displays
2 - Lg 21" LED , sony 48 " bravia LED
Hard Drives
one - samsung 840 series 465.76 GB SSD
two - wd 2 tB black
one - wd 1.5 tb black
one - wb 1 tb black
PSU
1000 Watt Coolmaster : Silent Pro Gold
Case
antec 1200
Cooling
watercooled
Mouse
logitech wireless
Antivirus
Norton Security 2015
Other Info
powerware 3.1 KVA FERRUPS with 4 - 1000 Amp Deep cycle batteries ...
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 Computer My Computer

At a glance

windows 7 ultimate x64
Computer type
PC/Desktop
OS
windows 7 ultimate x64
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 Computer My Computer

At a glance

Windows 8.1 Pro x64Intel Core i5-2500K @ 3.30GHz - S11558GB Corsair DDR3 XMS3, PC3-12800NVIDIA GeForce GTX 650
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 8.1 Pro x64
CPU
Intel Core i5-2500K @ 3.30GHz - S1155
Motherboard
Asus P8P67 LE Rev3, Intel P67, S115
Memory
8GB Corsair DDR3 XMS3, PC3-12800
Graphics Card(s)
NVIDIA GeForce GTX 650
Sound Card
On-Board
Monitor(s) Displays
3 x 24" {Extended Display}
Screen Resolution
1920 x 1080
Hard Drives
300GB Seagate Barracuda 7200
PSU
550W Coolermaster GX550
Case
Silverstone Precision PS04B
Cooling
Stock
Keyboard
Logitech K120
Mouse
World of Warcraft Cataclysm MMO Gaming Mouse
Internet Speed
80 MB
Antivirus
MSE / Windows Defender
Browser
Chrome
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 Computer My Computer

At a glance

Windows 7 Professional 64 bit4096
Computer Manufacturer/Model Number
Dell Optiplex
OS
Windows 7 Professional 64 bit
Memory
4096
thanks people - The group policy will do the job . Appreciated ..
 

My Computer My Computer

At a glance

Windows 10 Pro - 64 bitIntel i7 2600K8 Gig ddr3 1600 mhz - viper extreme (Patriot)EVGA 980 TI
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro - 64 bit
CPU
Intel i7 2600K
Motherboard
Asus P8P67
Memory
8 Gig ddr3 1600 mhz - viper extreme (Patriot)
Graphics Card(s)
EVGA 980 TI
Monitor(s) Displays
2 - Lg 21" LED , sony 48 " bravia LED
Hard Drives
one - samsung 840 series 465.76 GB SSD
two - wd 2 tB black
one - wd 1.5 tb black
one - wb 1 tb black
PSU
1000 Watt Coolmaster : Silent Pro Gold
Case
antec 1200
Cooling
watercooled
Mouse
logitech wireless
Antivirus
Norton Security 2015
Other Info
powerware 3.1 KVA FERRUPS with 4 - 1000 Amp Deep cycle batteries ...
Back
Top