(imported topic written by ahousten91)
I tried to use the Windows Registry Wizard to create a task that will turn on the screen saver on Windows 7 PC. The key is HKEY_CURRENT_USER\Control Panel\Desktop\ScreenSaveActive and needs to be set to 1. The relevance created by the wizard is
(name of operating system = “Win7”) AND (exists value “ScreenSaveActive” whose (“1” != it) of key (“HKEY_USERS” & (string value of select ((“SID from win32_useraccount where NAME=’” & item 1 of it & “’ and DOMAIN=’” & item 0 of it & “’”) of (preceding text of first “” of it, following text of first “” of it) of (string values of selects “UserName from win32_computersystem” of it)) of wmi) & “\Control Panel\Desktop”) of native registry) AND (exists ((string values of selects “UserName from Win32_ComputerSystem” of wmi) , (members of local group “administrators” as string)) whose (item 0 of it = item 1 of it))
and the action script is
action uses wow64 redirection false
delete __createfile
delete wizardedit.reg
createfile until @end_create_reg_file
Windows Registry Editor Version 5.00
HKEY_CURRENT_USER\Control Panel\Desktop
“ScreenSaveActive”=“1”
@end_create_reg_file
move __createfile wizardedit.reg
prefetch RunAsCurrentUser.exe sha1:ee47505ebfb2790b9da8a20ed70e67158e9753d0 size:342528 http://software.bigfix.com/download/bes/util/RunAsCurrentUser-2.0.3.1.exe
utility __Download\RunAsCurrentUser.exe
waithidden “__Download\RunAsCurrentUser.exe” --w regedit /s “wizardedit.reg”
The problem is that it doesn’t show as relevant for ANY of the clients.
I also tried to deploy it to a specific machine where I know that registry key is set to 0 but it says it’s not relevant.
Any ideas?