Hello, our GP set the screensavetimeout to 600s and this is locked down. It irritates the hell out of the teachers that using smartboards as they have to log in again in the middle of explaining something.
What I want is a script that they can run that will extend the timeout- say 30 mins /1800s
I DL'd a script that changed ScreenSaveTimeOut in another part of the registry but that is not the one that affects the timeout for out screensavers.
This is the key that sets the timeout.
HKEY_USERS\S-1-5-21-187661315-68905663-1388069909-20081\Software\Policies\Microsoft\Windows\Control Panel\Desktop\ScreenSaveTimeOut
I can change this manually.
and this is the code that will not work with that key, but does work on another key,
Set oShell = CreateObject("WScript.Shell")
oShell.RegWrite "HKEY_USERS\S-1-5-21-187661315-68905663-1388069909-20081\Software\Policies\Microsoft\Windows\Control Panel\Desktop", "ScreenSaveTimeOut", "1800"
oShell.run "c:\windows\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
Where am I going wrong here? is it a syntax error or not possible? but i can change it manually. I'm goung round and round in circles with this one. Any help would be greatly appreciated.
Thanks
What I want is a script that they can run that will extend the timeout- say 30 mins /1800s
I DL'd a script that changed ScreenSaveTimeOut in another part of the registry but that is not the one that affects the timeout for out screensavers.
This is the key that sets the timeout.
HKEY_USERS\S-1-5-21-187661315-68905663-1388069909-20081\Software\Policies\Microsoft\Windows\Control Panel\Desktop\ScreenSaveTimeOut
I can change this manually.
and this is the code that will not work with that key, but does work on another key,
Set oShell = CreateObject("WScript.Shell")
oShell.RegWrite "HKEY_USERS\S-1-5-21-187661315-68905663-1388069909-20081\Software\Policies\Microsoft\Windows\Control Panel\Desktop", "ScreenSaveTimeOut", "1800"
oShell.run "c:\windows\System32\RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters", 1, True
Where am I going wrong here? is it a syntax error or not possible? but i can change it manually. I'm goung round and round in circles with this one. Any help would be greatly appreciated.
Thanks