need script to set screensaver / lock out to 10 minutes


  1. Posts : 365
    Windows 10 Pro - 64 bit
       #1

    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 Computer


  2. Posts : 259
    windows 7 ultimate x64
       #2

    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


  3. Posts : 365
    Windows 10 Pro - 64 bit
    Thread Starter
       #3

    cyanna said:
    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


  4. Posts : 259
    windows 7 ultimate x64
       #4

    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


  5. Posts : 2,177
    Windows 8.1 Pro x64
       #5

    Total said:
    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


  6. Posts : 280
    Windows 7 Professional 64 bit
       #6

    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


  7. Posts : 365
    Windows 10 Pro - 64 bit
    Thread Starter
       #7

    thanks people - The group policy will do the job . Appreciated ..
      My Computer


 

  Related Discussions
Our Sites
Site Links
About 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 13:25.
Find Us