Set/edit registry keys in Windows 10 x64

I’m trying to edit three existing registry keys and add another to Windows. According the action script guide, the syntax is:

regset “[HKEY_CURRENT_USER\Software\BigFix Inc.]” “testString”=“bob”

I changed it to suit the target registry keys and their desired values and ran the fixlet. Everything in the fixlet succeeded according to the log file, but the registry entries are not there. What else can I try? This works create if I do so in a batch script.

I’ve tried adding:

action uses wow64 redirection {not x64 of operating system}

That didn’t help. neither did replacing regset with regset64.

HKEY_CURRENT_USER keys are somewhat of a pain.

I’d recommend doing a search for that and see the various ways it’s been handled. A lot of people recommend using GPOs to set HKCU keys.

GPO isn’t an option here. The actual key I’m trying to manipulate is:

regset64 “[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]” “Setting”=“1”

Try this:

action uses wow64 redirection false

delete __appendfile
delete customreg.reg
appendfile Windows Registry Editor Version 5.00
appendfile
appendfile [{current user keys (logged on users; current users) of registries}\Software\BigFix Inc.]
appendfile “testString”=“bob”

move __appendfile customreg.reg
waithidden regedit /s “customreg.reg”

You will also want exists logged on users in fixlet relevance

That didn’t work. Here’s what I have in the fixlet:

action uses wow64 redirection false

delete __appendfile
delete customreg.reg
appendfile Windows Registry Editor Version 5.00
appendfile [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
appendfile “AutoAdminLogon”="1"
appendfile [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
appendfile “DefaultUserName”=“newuser"
appendfile [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
appendfile “DefaultDomainName”=”{computer name}"
appendfile [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
appendfile “DefaultPassword”=“password!”

move __appendfile customreg.reg
waithidden regedit /s “customreg.reg”

Thanks