(imported topic written by GeeKman)
Hello all, I am modifying a fixlet from just checking and returning the value of a registry key to checking that its there and if it is make sure its what it is supposed to be, if not then it needs to set it.
here is what i have so far.
if ( name of operating system as lowercase starts with
"win" ) then (
if ( exists size of value
"legalnoticecaption" of keys
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\" of registry ) then (
if ( value
"legalnoticecaption" of keys
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\" of registry as string = "
" ) then (
"Not defined" )
else (
if ( value
"legalnoticecaption" of keys
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\" of registry as string != "This system and all network attached devices are property of Company Name.
" ) then ( regset
"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]"
"legalnoticecaption"=
"This system and all network attached devices are property of Company Name." )
else (
"some thing strange happened...." ) ) )
else (
"Not defined" ) )
else (
"N/A" )
I get an error with the relevance debuger: Error: This expression could not be parsed.
maybe im just not spotting the error.
thanks