locked
screensave disable for certain period of time RRS feed

  • General discussion

  • hello

    I am trying to write a script for Windows 7 that the screen saver get disable once the user logs on and automaticaly lock up after 8 pm at night

    I got he part that the screen saver does not lock up with a mouse movement 

    I have a At command 

    at 20:00 "rundll32.exe user32.dll, LockWorkStation hoping it will lock every day at 8pm but would rather have an scritp that does that any susggestion ???

    Tuesday, April 28, 2015 4:59 PM

All replies

  • What is the purpose? Just configure the GPO to automatically lock the computer after some period of inactivity.


    -- Bill Stewart [Bill_Stewart]

    Tuesday, April 28, 2015 5:09 PM
  • I can't as this is for specific group of computers only
    Tuesday, April 28, 2015 5:11 PM
  • I can't as this is for specific group of computers only

    So target the GPO to those computers only.


    Don't retire TechNet! - (Don't give up yet - 13,225+ strong and growing)

    Tuesday, April 28, 2015 5:18 PM
  • sorry this is not want we want if you cannot help guess will have to find it elsewhere

    Tuesday, April 28, 2015 5:23 PM
  • sorry this is not want we want if you cannot help guess will have to find it elsewhere

    We point out manageable solutions instead of hacks.

    If you want help with a script, you'll need to post it and exactly what you're having problems with.


    Don't retire TechNet! - (Don't give up yet - 13,225+ strong and growing)

    Tuesday, April 28, 2015 5:25 PM
  • understood

    I want to script this command

    at 20:00 "rundll32.exe user32.dll, LockWorkStation hoping it will lock every day at 8pm but would rather have an scritp that does that any susggestion ???

    I have gotten the rest

    Tuesday, April 28, 2015 5:27 PM
  • What is the purpose/goal, not the intended script workaround?

    -- Bill Stewart [Bill_Stewart]

    Tuesday, April 28, 2015 5:41 PM
  • the goal at the end it to have the screensaver disable once they logon and then by 8pm have it automatically kick in as they do not lock there screens by defaul due to the business purpose
    Tuesday, April 28, 2015 5:53 PM
  • I would recommend logging the user off rather than locking the workstation.

    You can search for ways to do this by using search terms such as "script automatic logoff".

    There may be some solutions in the repository as well.


    -- Bill Stewart [Bill_Stewart]

    Tuesday, April 28, 2015 6:05 PM
  • first of  all seems like you do not want to assist

    second I said lock the workstation not logoff as if they log off it will take 15-20 to restart all apps.

    now if you do not know how to do it I would rather have this as an answer then getting the felling of run around and NO we are going GPO

    Tuesday, April 28, 2015 6:12 PM
  • first of  all seems like you do not want to assist

    second I said lock the workstation not logoff as if they log off it will take 15-20 to restart all apps.

    now if you do not know how to do it I would rather have this as an answer then getting the felling of run around and NO we are going GPO

    You're not going to get someone to do your work for you.

    If that's what you want, you're in the wrong place.


    EDIT: Read this:

    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG


    Don't retire TechNet! - (Don't give up yet - 13,225+ strong and growing)

    Tuesday, April 28, 2015 6:12 PM
  • I am not as I have it almost done trying to get the at command to in the script maybe you should read all the threat before commenting
    Tuesday, April 28, 2015 6:25 PM
  • I am not as I have it almost done trying to get the at command to in the script maybe you should read all the threat before commenting

    This doesn't even make sense.

    Goodbye and good luck.


    Don't retire TechNet! - (Don't give up yet - 13,225+ strong and growing)

    Tuesday, April 28, 2015 6:31 PM
  • yup would not recommend this site to no one for help

    as right now I have it done just need the force lock screen script at 8 pm and if you think it does not make sense we had one script this way for XP and not playing nice with Win7 and desktop are lock down

    Get two thumbs down from me for your support

    Tuesday, April 28, 2015 6:35 PM
  • I can't understand either; sorry. There may be a language barrier.


    -- Bill Stewart [Bill_Stewart]

    Tuesday, April 28, 2015 6:37 PM
  • no I think you do not want to help simple

    I gotten my screen saver disable in win 7  I need it to reactivate after 8pm how stupid is this to understand

    Tuesday, April 28, 2015 6:41 PM