Scripting Question
How can I get Kace to input a 64bit registry Key?
Using k1000 v8
When I try to use the registry script builder, it inputs the key in:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\
I need it to go to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
When I try and call it through a batch script, it does the same thing. When i run the reg file manually it goes in the right place. I am at a loss here.
Script:
@echo off
"MS Reg Entry.reg"
Reg file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat]
"cadca5fe-87d3-4b96-b7fb-a231484277cc"=dword:00000000
This is for the Spectre/Meltdown MS registry key entry. Any help would be great!
-Rob
0 Comments
[ + ] Show comments
All Answers
Please log in to answer
You can use the reg.exe command and use the /reg:64 flag.
-
When i run the script like this:
@echo off
reg add “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat” /v cadca5fe-87d3-4b96-b7fb-a231484277cc /t REG_DWORD /d 0 /f /reg:64
It hangs until i kill the process on the local box. It does the same thing when i run the command manually unless i have an elevated CMD window,
I've had good luck using this. The key is to use %windir%\sysnative
I believe something like this will work:

I believe something like this will work:

-
this still redirects it to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\QualityCompat-
Odd. It works great in my environment. The local users are not admins and I must run all scripts with local admin credentials.
-
I know its kind of late, but hopefully can help others. The program name is not regedit.exe it was regedt.exe
You can check it by launch cmd from %WINDIR%\SysWOW64\cmd.exe then cd into %WINDIR%\Sysnative
Notes: Sysnative folder doesnt only available from 32bit process
Comments