I'm trying to run a script that changes the screen lockout time in the registry. When I run the script by double clicking, the registry changes occur as expected. When I run the script through Kace's registry script, the job is successful, but the changes don't occur. 

Has anyone ran into this issue before? I have other registry scripts that occur fine.

Any help would be appreciated.
0 Comments   [ - ] Hide Comments


Please log in to comment

Community Chosen Answer


If the keys you are trying to modify are under hkcu you need to run batch script as current user after they are logged in so the registry is opened.  Scripts by default run as system.
Answered 08/21/2015 by: SMal.tmcc
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity


Screen timeout is indeed a user setting held in the HKCU hive, so cannot be changed using a script running under the default system account.
You should be able to set this value using group policy or via a login script.
Answered 08/21/2015 by: EdT
Red Belt

Please log in to comment
This content is currently hidden from public view.
Reason: Removed by member request
For more information, visit our FAQ's.

Thank you, makes sense now. It works fine when I changed the options.

Thanks for the help!
Answered 08/21/2015 by: ChrisMiller
Senior White Belt

Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja