Native Regset

(imported topic written by nberger91)

How do i write to the native registry using an action using embedded relevance ? (basically, how do i add another if statement for example, if {x64 of operating system} regset64 …

if {number of relevant fixlets whose (value of header “subject” of it as lowercase contains “CompanyName NAC” as lowercase) of sites whose (name of it as lowercase contains “Actionsite” as lowercase) > 0}

regset "

HKEY_LOCAL_MACHINE\Software\CompanyName\BigFix\NAC

" “value”=“Fail”

else

regset "

HKEY_LOCAL_MACHINE\Software\CompanyName\BigFix\NAC

" “value”=“Pass”

endif

(imported comment written by Lynnicus)

I sure wish someone had replied to your posting with a fix because I’m trying to use the following Action script code. And although in the console it says that each line was successful, no registry entry is created on my Windows 7 test machine.

If {x64 of operating system} 
    regset64 "[HKLM\Software\Desktop]" "Department_Abr"="FHC" 
 Else
   regset "[HKLM\Software\Desktop]" "Department_Abr"="FHC"

(imported comment written by cwmenard)

Try using this in your action script.

if {x64 of operating system}

action uses wow64 redirection false

endif

(imported comment written by SystemAdmin)

Having the same problem here. REGDELETE works fine and REGSET works if pointing to HKCU but not when targeting HKLM. This is only happening on Win7.

regdelete "

HKEY_CURRENT_USER\Environment

" “SNC_LIB”

if {(x64 of operating system)}

regset "

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

" “SNC_LIB”=“C:\Windows\SysWOW64\gsskrb5.dll”

else

regset "

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

" “SNC_LIB”=“C:\Windows\system32\gsskrb5.dll”

endif

(imported comment written by SystemAdmin)

Ignore missing brackets due to forum formating them wrong.