We have a group policy that forces workstations to lock after X minutes. But from time to time I would like to suspend the law of the GPO. I already have a tiny Auto-It script that clicks the Control Key every two minutes and have looked at the registry changes that would need to be made to prevent the locking in a less obtrusive to the user way. With no time to spare on such efforts, I thought I would ask the wonderful serverfault community, has anyone run across a (preferably open source) utility that would prevent a workstation from locking?
Thanks
The REG file below disables the screen saver. Including the default Windows screen saver which always locks the screen and is engaged when the user's screen saver is set to "none".
To defeat Active Directory, these settings must be made each time AD refreshes and before the next screen saver time out.
Turns out, I was just struggling with the default screen saver and only had to remove the SCRNSAVE key, so I haven't pursued a good way to continually make these changes.
GPOs exist exactly for this purpose: enforce configuration settings on domain computers. They would be quite useless if they were avoidable.
If you can't modify the policy and/or various other domain parameters (OU of the user account you're logging on with, etc.), there's nothing you can do other than moving the mouse or hitting keys. Your only option is to log on to the workstation using a local user account, to which the domain's user policies (including screen saver ones) are not applied.
I took the opportunity to expand a bit on Nathan Hartley's excellent answer by producing a Powershell script that will clear the ScreenSaveActive setting every 10 seconds. Trivial to do in a single line but I obviously had to over-complicate it and gave it pretty progress bars for the wait time and such (feeping creaturism!).
It doesn't do exactly the number of seconds (which is why where is a Fudge Factor built in to adjust the interval timing closer to reality) and I didn't spend a ton of time to optimize every last detail.
Hopefully someone may find this of use down the line.
I always find this technology here quuuite useful.
Assuming that you let the users select which screensaver they can use, you could temporarily select "none" as your screensaver and the workstation won't lock.